From 6543b6ac3862d4c1e561cafd3ddf43862c3f41f8 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 3 Apr 2023 08:21:00 +0000 Subject: [PATCH] CodeGen from PR 23400 in Azure/azure-rest-api-specs Merge b18026f8c89c01de1041e7f538d44f5784ba5845 into f790e624d0d080b89d962a3bd19c65bc6a6b2f5e --- common/config/rush/pnpm-lock.yaml | 13 +- .../arm-apimanagement/CHANGELOG.md | 266 +- .../arm-apimanagement/_meta.json | 8 +- .../arm-apimanagement/package.json | 22 +- .../review/arm-apimanagement.api.md | 1276 ++- .../src/apiManagementClient.ts | 100 +- .../arm-apimanagement/src/lroImpl.ts | 54 +- .../arm-apimanagement/src/models/index.ts | 3845 +++++--- .../arm-apimanagement/src/models/mappers.ts | 7833 +++++++++++------ .../src/models/parameters.ts | 355 +- .../arm-apimanagement/src/operations/api.ts | 57 +- .../src/operations/apiDiagnostic.ts | 20 +- .../src/operations/apiExport.ts | 2 +- .../src/operations/apiIssue.ts | 20 +- .../src/operations/apiIssueAttachment.ts | 16 +- .../src/operations/apiIssueComment.ts | 16 +- .../src/operations/apiManagementService.ts | 323 +- .../operations/apiManagementServiceSkus.ts | 6 +- .../src/operations/apiOperation.ts | 16 +- .../src/operations/apiOperationPolicy.ts | 10 +- .../src/operations/apiPolicy.ts | 10 +- .../src/operations/apiProduct.ts | 6 +- .../src/operations/apiRelease.ts | 16 +- .../src/operations/apiRevision.ts | 6 +- .../src/operations/apiSchema.ts | 58 +- .../src/operations/apiTagDescription.ts | 16 +- .../src/operations/apiVersionSet.ts | 20 +- .../src/operations/apiWiki.ts | 280 + .../src/operations/apiWikis.ts | 217 + .../src/operations/authorization.ts | 464 + .../operations/authorizationAccessPolicy.ts | 439 + .../src/operations/authorizationLoginLinks.ts | 91 + .../src/operations/authorizationProvider.ts | 366 + .../src/operations/authorizationServer.ts | 22 +- .../src/operations/backend.ts | 28 +- .../arm-apimanagement/src/operations/cache.ts | 20 +- .../src/operations/certificate.ts | 18 +- .../src/operations/contentItem.ts | 16 +- .../src/operations/contentType.ts | 14 +- .../src/operations/delegationSettings.ts | 14 +- .../src/operations/deletedServices.ts | 28 +- .../src/operations/diagnostic.ts | 20 +- .../src/operations/documentation.ts | 467 + .../src/operations/emailTemplate.ts | 20 +- .../src/operations/gateway.ts | 30 +- .../src/operations/gatewayApi.ts | 14 +- .../operations/gatewayCertificateAuthority.ts | 16 +- .../gatewayHostnameConfiguration.ts | 16 +- .../src/operations/globalSchema.ts | 51 +- .../src/operations/graphQLApiResolver.ts | 513 ++ .../operations/graphQLApiResolverPolicy.ts | 478 + .../arm-apimanagement/src/operations/group.ts | 20 +- .../src/operations/groupUser.ts | 12 +- .../src/operations/identityProvider.ts | 22 +- .../arm-apimanagement/src/operations/index.ts | 13 + .../arm-apimanagement/src/operations/issue.ts | 8 +- .../src/operations/logger.ts | 20 +- .../src/operations/namedValue.ts | 119 +- .../src/operations/networkStatus.ts | 4 +- .../src/operations/notification.ts | 10 +- .../operations/notificationRecipientEmail.ts | 8 +- .../operations/notificationRecipientUser.ts | 8 +- .../src/operations/openIdConnectProvider.ts | 22 +- .../src/operations/operationOperations.ts | 6 +- .../outboundNetworkDependenciesEndpoints.ts | 2 +- .../src/operations/policy.ts | 10 +- .../src/operations/policyDescription.ts | 2 +- .../src/operations/policyFragment.ts | 408 + .../src/operations/portalConfig.ts | 286 + .../src/operations/portalRevision.ts | 86 +- .../src/operations/portalSettings.ts | 2 +- .../privateEndpointConnectionOperations.ts | 67 +- .../src/operations/product.ts | 26 +- .../src/operations/productApi.ts | 12 +- .../src/operations/productGroup.ts | 12 +- .../src/operations/productPolicy.ts | 10 +- .../src/operations/productSubscriptions.ts | 6 +- .../src/operations/productWiki.ts | 287 + .../src/operations/productWikis.ts | 224 + .../src/operations/quotaByCounterKeys.ts | 6 +- .../src/operations/quotaByPeriodKeys.ts | 6 +- .../src/operations/region.ts | 6 +- .../src/operations/reports.ts | 68 +- .../src/operations/signInSettings.ts | 12 +- .../src/operations/signUpSettings.ts | 12 +- .../src/operations/subscription.ts | 26 +- .../arm-apimanagement/src/operations/tag.ts | 58 +- .../src/operations/tagResource.ts | 6 +- .../src/operations/tenantAccess.ts | 24 +- .../src/operations/tenantAccessGit.ts | 4 +- .../src/operations/tenantConfiguration.ts | 103 +- .../src/operations/tenantSettings.ts | 8 +- .../arm-apimanagement/src/operations/user.ts | 26 +- .../operations/userConfirmationPassword.ts | 2 +- .../src/operations/userGroup.ts | 6 +- .../src/operations/userIdentities.ts | 6 +- .../src/operations/userSubscription.ts | 8 +- .../src/operationsInterfaces/api.ts | 22 +- .../src/operationsInterfaces/apiDiagnostic.ts | 12 +- .../src/operationsInterfaces/apiExport.ts | 2 +- .../src/operationsInterfaces/apiIssue.ts | 12 +- .../apiIssueAttachment.ts | 10 +- .../operationsInterfaces/apiIssueComment.ts | 10 +- .../apiManagementService.ts | 87 +- .../apiManagementServiceSkus.ts | 2 +- .../src/operationsInterfaces/apiOperation.ts | 12 +- .../apiOperationPolicy.ts | 10 +- .../src/operationsInterfaces/apiPolicy.ts | 10 +- .../src/operationsInterfaces/apiProduct.ts | 2 +- .../src/operationsInterfaces/apiRelease.ts | 12 +- .../src/operationsInterfaces/apiRevision.ts | 2 +- .../src/operationsInterfaces/apiSchema.ts | 18 +- .../operationsInterfaces/apiTagDescription.ts | 10 +- .../src/operationsInterfaces/apiVersionSet.ts | 12 +- .../src/operationsInterfaces/apiWiki.ts | 100 + .../src/operationsInterfaces/apiWikis.ts | 28 + .../src/operationsInterfaces/authorization.ts | 106 + .../authorizationAccessPolicy.ts | 94 + .../authorizationLoginLinks.ts | 34 + .../authorizationProvider.ts | 78 + .../authorizationServer.ts | 14 +- .../src/operationsInterfaces/backend.ts | 18 +- .../src/operationsInterfaces/cache.ts | 12 +- .../src/operationsInterfaces/certificate.ts | 12 +- .../src/operationsInterfaces/contentItem.ts | 10 +- .../src/operationsInterfaces/contentType.ts | 8 +- .../delegationSettings.ts | 10 +- .../operationsInterfaces/deletedServices.ts | 4 +- .../src/operationsInterfaces/diagnostic.ts | 12 +- .../src/operationsInterfaces/documentation.ts | 119 + .../src/operationsInterfaces/emailTemplate.ts | 12 +- .../src/operationsInterfaces/gateway.ts | 18 +- .../src/operationsInterfaces/gatewayApi.ts | 8 +- .../gatewayCertificateAuthority.ts | 10 +- .../gatewayHostnameConfiguration.ts | 10 +- .../src/operationsInterfaces/globalSchema.ts | 18 +- .../graphQLApiResolver.ts | 137 + .../graphQLApiResolverPolicy.ts | 124 + .../src/operationsInterfaces/group.ts | 12 +- .../src/operationsInterfaces/groupUser.ts | 8 +- .../operationsInterfaces/identityProvider.ts | 14 +- .../src/operationsInterfaces/index.ts | 13 + .../src/operationsInterfaces/issue.ts | 4 +- .../src/operationsInterfaces/logger.ts | 12 +- .../src/operationsInterfaces/namedValue.ts | 36 +- .../src/operationsInterfaces/networkStatus.ts | 4 +- .../src/operationsInterfaces/notification.ts | 6 +- .../notificationRecipientEmail.ts | 8 +- .../notificationRecipientUser.ts | 8 +- .../openIdConnectProvider.ts | 14 +- .../operationOperations.ts | 2 +- .../outboundNetworkDependenciesEndpoints.ts | 2 +- .../src/operationsInterfaces/policy.ts | 10 +- .../operationsInterfaces/policyDescription.ts | 2 +- .../operationsInterfaces/policyFragment.ts | 128 + .../src/operationsInterfaces/portalConfig.ts | 98 + .../operationsInterfaces/portalRevision.ts | 24 +- .../operationsInterfaces/portalSettings.ts | 2 +- .../privateEndpointConnectionOperations.ts | 24 +- .../src/operationsInterfaces/product.ts | 14 +- .../src/operationsInterfaces/productApi.ts | 8 +- .../src/operationsInterfaces/productGroup.ts | 8 +- .../src/operationsInterfaces/productPolicy.ts | 10 +- .../productSubscriptions.ts | 2 +- .../src/operationsInterfaces/productWiki.ts | 100 + .../src/operationsInterfaces/productWikis.ts | 28 + .../quotaByCounterKeys.ts | 4 +- .../operationsInterfaces/quotaByPeriodKeys.ts | 4 +- .../src/operationsInterfaces/region.ts | 2 +- .../src/operationsInterfaces/reports.ts | 16 +- .../operationsInterfaces/signInSettings.ts | 8 +- .../operationsInterfaces/signUpSettings.ts | 8 +- .../src/operationsInterfaces/subscription.ts | 18 +- .../src/operationsInterfaces/tag.ts | 42 +- .../src/operationsInterfaces/tagResource.ts | 2 +- .../src/operationsInterfaces/tenantAccess.ts | 16 +- .../operationsInterfaces/tenantAccessGit.ts | 4 +- .../tenantConfiguration.ts | 28 +- .../operationsInterfaces/tenantSettings.ts | 4 +- .../src/operationsInterfaces/user.ts | 16 +- .../userConfirmationPassword.ts | 2 +- .../src/operationsInterfaces/userGroup.ts | 2 +- .../operationsInterfaces/userIdentities.ts | 2 +- .../operationsInterfaces/userSubscription.ts | 4 +- .../arm-apimanagement/test/sampleTest.ts | 43 + .../arm-apimanagement/tsconfig.json | 10 +- 186 files changed, 16597 insertions(+), 5611 deletions(-) create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.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 15e15ca9c583..34dbf4659f4e 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -734,6 +734,7 @@ packages: /@azure/ai-form-recognizer/3.1.0-beta.3: resolution: {integrity: sha512-+4QtFKNyxAmdqpcYjuAtmWKm/MuOe9kZsbpS9jA9h0YHzngNj5gc67AA4egV9BXOq9x+1phjYTNC/rxiOUr1uQ==} engines: {node: '>=8.0.0'} + deprecated: Please migrate to a supported (non-beta) version of this package dependencies: '@azure/core-auth': 1.4.0 '@azure/core-http': 1.2.6 @@ -3935,7 +3936,7 @@ packages: dependencies: semver: 7.3.8 shelljs: 0.8.5 - typescript: 5.1.0-dev.20230402 + typescript: 5.1.0-dev.20230403 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8783,8 +8784,8 @@ packages: hasBin: true dev: false - /typescript/5.1.0-dev.20230402: - resolution: {integrity: sha512-YivJhKi6iTmS5qfkSuv/p1NYZtlQLexIHIF25kXxYkpjcs6jEtbLEctviQYTrzGVMq+R0QCTRW5EQtp+NLwtnA==} + /typescript/5.1.0-dev.20230403: + resolution: {integrity: sha512-13wAf5PQCHJI5dJ945XBEp+63KzXWkazC4glwfzp1ODLQYVWUnHA6trbCpsMIQfvmiaNmzqRmpSrIqaWppST4g==} engines: {node: '>=12.20'} hasBin: true dev: false @@ -9972,7 +9973,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-7QKetm4kVPK0AGDxfp5v2NazQUKZ/7ZgpHoT2PzYAC4xszLaL5MZ8wdg00EscRs9BTNBz21gLppveM/cH/gj+g==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-gf8xKvjJHddxrcN2UAo8YuFdfdIFAKIy5q1RQBCYuq/ouYTtM8bDxkOCvo/7lqBa0tlioe9EvUe7CeepAiMtQA==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -9986,8 +9987,8 @@ packages: '@types/node': 14.18.41 chai: 4.3.7 cross-env: 7.0.3 - dotenv: 8.6.0 - mkdirp: 1.0.4 + dotenv: 16.0.3 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 diff --git a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md index 8403a1a309c5..acf099812677 100644 --- a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md @@ -1,15 +1,265 @@ # Release History + +## 10.0.0 (2023-04-03) + +**Features** -## 9.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group ApiWiki + - Added operation group ApiWikis + - Added operation group Authorization + - Added operation group AuthorizationAccessPolicy + - Added operation group AuthorizationLoginLinks + - Added operation group AuthorizationProvider + - Added operation group Documentation + - Added operation group GraphQLApiResolver + - Added operation group GraphQLApiResolverPolicy + - Added operation group PolicyFragment + - Added operation group PortalConfig + - Added operation group ProductWiki + - Added operation group ProductWikis + - Added operation ApiManagementService.beginMigrateToStv2 + - Added operation ApiManagementService.beginMigrateToStv2AndWait + - Added Interface ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders + - Added Interface ApiManagementServiceBackupHeaders + - Added Interface ApiManagementServiceMigrateToStv2Headers + - Added Interface ApiManagementServiceMigrateToStv2OptionalParams + - Added Interface ApiManagementServiceRestoreHeaders + - Added Interface ApiWikiCreateOrUpdateHeaders + - Added Interface ApiWikiCreateOrUpdateOptionalParams + - Added Interface ApiWikiDeleteOptionalParams + - Added Interface ApiWikiGetEntityTagHeaders + - Added Interface ApiWikiGetEntityTagOptionalParams + - Added Interface ApiWikiGetHeaders + - Added Interface ApiWikiGetOptionalParams + - Added Interface ApiWikisListNextOptionalParams + - Added Interface ApiWikisListOptionalParams + - Added Interface ApiWikiUpdateHeaders + - Added Interface ApiWikiUpdateOptionalParams + - Added Interface AuthorizationAccessPolicyCollection + - Added Interface AuthorizationAccessPolicyContract + - Added Interface AuthorizationAccessPolicyCreateOrUpdateHeaders + - Added Interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams + - Added Interface AuthorizationAccessPolicyDeleteOptionalParams + - Added Interface AuthorizationAccessPolicyGetHeaders + - Added Interface AuthorizationAccessPolicyGetOptionalParams + - Added Interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + - Added Interface AuthorizationAccessPolicyListByAuthorizationOptionalParams + - Added Interface AuthorizationCollection + - Added Interface AuthorizationConfirmConsentCodeHeaders + - Added Interface AuthorizationConfirmConsentCodeOptionalParams + - Added Interface AuthorizationConfirmConsentCodeRequestContract + - Added Interface AuthorizationContract + - Added Interface AuthorizationCreateOrUpdateHeaders + - Added Interface AuthorizationCreateOrUpdateOptionalParams + - Added Interface AuthorizationDeleteOptionalParams + - Added Interface AuthorizationError + - Added Interface AuthorizationGetHeaders + - Added Interface AuthorizationGetOptionalParams + - Added Interface AuthorizationListByAuthorizationProviderNextOptionalParams + - Added Interface AuthorizationListByAuthorizationProviderOptionalParams + - Added Interface AuthorizationLoginLinksPostHeaders + - Added Interface AuthorizationLoginLinksPostOptionalParams + - Added Interface AuthorizationLoginRequestContract + - Added Interface AuthorizationLoginResponseContract + - Added Interface AuthorizationProviderCollection + - Added Interface AuthorizationProviderContract + - Added Interface AuthorizationProviderCreateOrUpdateHeaders + - Added Interface AuthorizationProviderCreateOrUpdateOptionalParams + - Added Interface AuthorizationProviderDeleteOptionalParams + - Added Interface AuthorizationProviderGetHeaders + - Added Interface AuthorizationProviderGetOptionalParams + - Added Interface AuthorizationProviderListByServiceNextOptionalParams + - Added Interface AuthorizationProviderListByServiceOptionalParams + - Added Interface AuthorizationProviderOAuth2GrantTypes + - Added Interface AuthorizationProviderOAuth2Settings + - Added Interface DeletedServicesPurgeHeaders + - Added Interface DocumentationCollection + - Added Interface DocumentationContract + - Added Interface DocumentationCreateOrUpdateHeaders + - Added Interface DocumentationCreateOrUpdateOptionalParams + - Added Interface DocumentationDeleteOptionalParams + - Added Interface DocumentationGetEntityTagHeaders + - Added Interface DocumentationGetEntityTagOptionalParams + - Added Interface DocumentationGetHeaders + - Added Interface DocumentationGetOptionalParams + - Added Interface DocumentationListByServiceNextOptionalParams + - Added Interface DocumentationListByServiceOptionalParams + - Added Interface DocumentationUpdateContract + - Added Interface DocumentationUpdateHeaders + - Added Interface DocumentationUpdateOptionalParams + - Added Interface GraphQLApiResolverCreateOrUpdateHeaders + - Added Interface GraphQLApiResolverCreateOrUpdateOptionalParams + - Added Interface GraphQLApiResolverDeleteOptionalParams + - Added Interface GraphQLApiResolverGetEntityTagHeaders + - Added Interface GraphQLApiResolverGetEntityTagOptionalParams + - Added Interface GraphQLApiResolverGetHeaders + - Added Interface GraphQLApiResolverGetOptionalParams + - Added Interface GraphQLApiResolverListByApiNextOptionalParams + - Added Interface GraphQLApiResolverListByApiOptionalParams + - Added Interface GraphQLApiResolverPolicyCreateOrUpdateHeaders + - Added Interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + - Added Interface GraphQLApiResolverPolicyDeleteOptionalParams + - Added Interface GraphQLApiResolverPolicyGetEntityTagHeaders + - Added Interface GraphQLApiResolverPolicyGetEntityTagOptionalParams + - Added Interface GraphQLApiResolverPolicyGetHeaders + - Added Interface GraphQLApiResolverPolicyGetOptionalParams + - Added Interface GraphQLApiResolverPolicyListByResolverNextOptionalParams + - Added Interface GraphQLApiResolverPolicyListByResolverOptionalParams + - Added Interface GraphQLApiResolverUpdateHeaders + - Added Interface GraphQLApiResolverUpdateOptionalParams + - Added Interface PolicyFragmentCollection + - Added Interface PolicyFragmentContract + - Added Interface PolicyFragmentCreateOrUpdateHeaders + - Added Interface PolicyFragmentCreateOrUpdateOptionalParams + - Added Interface PolicyFragmentDeleteOptionalParams + - Added Interface PolicyFragmentGetEntityTagHeaders + - Added Interface PolicyFragmentGetEntityTagOptionalParams + - Added Interface PolicyFragmentGetHeaders + - Added Interface PolicyFragmentGetOptionalParams + - Added Interface PolicyFragmentListByServiceOptionalParams + - Added Interface PolicyFragmentListReferencesOptionalParams + - Added Interface PortalConfigCollection + - Added Interface PortalConfigContract + - Added Interface PortalConfigCorsProperties + - Added Interface PortalConfigCreateOrUpdateOptionalParams + - Added Interface PortalConfigCspProperties + - Added Interface PortalConfigDelegationProperties + - Added Interface PortalConfigGetEntityTagHeaders + - Added Interface PortalConfigGetEntityTagOptionalParams + - Added Interface PortalConfigGetHeaders + - Added Interface PortalConfigGetOptionalParams + - Added Interface PortalConfigListByServiceOptionalParams + - Added Interface PortalConfigPropertiesSignin + - Added Interface PortalConfigPropertiesSignup + - Added Interface PortalConfigTermsOfServiceProperties + - Added Interface PortalConfigUpdateOptionalParams + - Added Interface ProductWikiCreateOrUpdateHeaders + - Added Interface ProductWikiCreateOrUpdateOptionalParams + - Added Interface ProductWikiDeleteOptionalParams + - Added Interface ProductWikiGetEntityTagHeaders + - Added Interface ProductWikiGetEntityTagOptionalParams + - Added Interface ProductWikiGetHeaders + - Added Interface ProductWikiGetOptionalParams + - Added Interface ProductWikisListHeaders + - Added Interface ProductWikisListNextHeaders + - Added Interface ProductWikisListNextOptionalParams + - Added Interface ProductWikisListOptionalParams + - Added Interface ProductWikiUpdateHeaders + - Added Interface ProductWikiUpdateOptionalParams + - Added Interface ProxyResource + - Added Interface ResolverCollection + - Added Interface ResolverContract + - Added Interface ResolverResultContract + - Added Interface ResolverResultLogItemContract + - Added Interface ResolverUpdateContract + - Added Interface ResourceCollection + - Added Interface ResourceCollectionValueItem + - Added Interface WikiCollection + - Added Interface WikiContract + - Added Interface WikiDocumentationContract + - Added Interface WikiUpdateContract + - Added Type Alias ApiManagementServiceMigrateToStv2Response + - Added Type Alias ApiWikiCreateOrUpdateResponse + - Added Type Alias ApiWikiGetEntityTagResponse + - Added Type Alias ApiWikiGetResponse + - Added Type Alias ApiWikisListNextResponse + - Added Type Alias ApiWikisListResponse + - Added Type Alias ApiWikiUpdateResponse + - Added Type Alias AsyncResolverStatus + - Added Type Alias AuthorizationAccessPolicyCreateOrUpdateResponse + - Added Type Alias AuthorizationAccessPolicyGetResponse + - Added Type Alias AuthorizationAccessPolicyListByAuthorizationNextResponse + - Added Type Alias AuthorizationAccessPolicyListByAuthorizationResponse + - Added Type Alias AuthorizationConfirmConsentCodeResponse + - Added Type Alias AuthorizationCreateOrUpdateResponse + - Added Type Alias AuthorizationGetResponse + - Added Type Alias AuthorizationListByAuthorizationProviderNextResponse + - Added Type Alias AuthorizationListByAuthorizationProviderResponse + - Added Type Alias AuthorizationLoginLinksPostResponse + - Added Type Alias AuthorizationProviderCreateOrUpdateResponse + - Added Type Alias AuthorizationProviderGetResponse + - Added Type Alias AuthorizationProviderListByServiceNextResponse + - Added Type Alias AuthorizationProviderListByServiceResponse + - Added Type Alias AuthorizationType + - Added Type Alias DocumentationCreateOrUpdateResponse + - Added Type Alias DocumentationGetEntityTagResponse + - Added Type Alias DocumentationGetResponse + - Added Type Alias DocumentationListByServiceNextResponse + - Added Type Alias DocumentationListByServiceResponse + - Added Type Alias DocumentationUpdateResponse + - Added Type Alias GraphQLApiResolverCreateOrUpdateResponse + - Added Type Alias GraphQLApiResolverGetEntityTagResponse + - Added Type Alias GraphQLApiResolverGetResponse + - Added Type Alias GraphQLApiResolverListByApiNextResponse + - Added Type Alias GraphQLApiResolverListByApiResponse + - Added Type Alias GraphQLApiResolverPolicyCreateOrUpdateResponse + - Added Type Alias GraphQLApiResolverPolicyGetEntityTagResponse + - Added Type Alias GraphQLApiResolverPolicyGetResponse + - Added Type Alias GraphQLApiResolverPolicyListByResolverNextResponse + - Added Type Alias GraphQLApiResolverPolicyListByResolverResponse + - Added Type Alias GraphQLApiResolverUpdateResponse + - Added Type Alias NatGatewayState + - Added Type Alias OAuth2GrantType + - Added Type Alias PolicyFragmentContentFormat + - Added Type Alias PolicyFragmentCreateOrUpdateResponse + - Added Type Alias PolicyFragmentGetEntityTagResponse + - Added Type Alias PolicyFragmentGetResponse + - Added Type Alias PolicyFragmentListByServiceResponse + - Added Type Alias PolicyFragmentListReferencesResponse + - Added Type Alias PortalConfigCreateOrUpdateResponse + - Added Type Alias PortalConfigGetEntityTagResponse + - Added Type Alias PortalConfigGetResponse + - Added Type Alias PortalConfigListByServiceResponse + - Added Type Alias PortalConfigUpdateResponse + - Added Type Alias PortalSettingsCspMode + - Added Type Alias ProductWikiCreateOrUpdateResponse + - Added Type Alias ProductWikiGetEntityTagResponse + - Added Type Alias ProductWikiGetResponse + - Added Type Alias ProductWikisListNextResponse + - Added Type Alias ProductWikisListResponse + - Added Type Alias ProductWikiUpdateResponse + - Added Type Alias TranslateRequiredQueryParametersConduct + - Interface AdditionalLocation has a new optional parameter natGatewayState + - Interface AdditionalLocation has a new optional parameter outboundPublicIPAddresses + - Interface ApiCreateOrUpdateParameter has a new optional parameter translateRequiredQueryParametersConduct + - Interface ApiCreateOrUpdateProperties has a new optional parameter translateRequiredQueryParametersConduct + - Interface ApiManagementServiceBaseProperties has a new optional parameter natGatewayState + - Interface ApiManagementServiceBaseProperties has a new optional parameter outboundPublicIPAddresses + - Interface ApiManagementServiceResource has a new optional parameter natGatewayState + - Interface ApiManagementServiceResource has a new optional parameter outboundPublicIPAddresses + - Interface ApiManagementServiceUpdateParameters has a new optional parameter natGatewayState + - Interface ApiManagementServiceUpdateParameters has a new optional parameter outboundPublicIPAddresses + - Interface AuthenticationSettingsContract has a new optional parameter oAuth2AuthenticationSettings + - Interface AuthenticationSettingsContract has a new optional parameter openidAuthenticationSettings + - Interface AuthorizationServerContract has a new optional parameter useInApiDocumentation + - Interface AuthorizationServerContract has a new optional parameter useInTestConsole + - Interface AuthorizationServerContractProperties has a new optional parameter useInApiDocumentation + - Interface AuthorizationServerContractProperties has a new optional parameter useInTestConsole + - Interface AuthorizationServerUpdateContract has a new optional parameter useInApiDocumentation + - Interface AuthorizationServerUpdateContract has a new optional parameter useInTestConsole + - Interface AuthorizationServerUpdateContractProperties has a new optional parameter useInApiDocumentation + - Interface AuthorizationServerUpdateContractProperties has a new optional parameter useInTestConsole + - Interface IdentityProviderBaseParameters has a new optional parameter clientLibrary + - Interface IdentityProviderContract has a new optional parameter clientLibrary + - Interface IdentityProviderCreateContract has a new optional parameter clientLibrary + - Interface IdentityProviderUpdateParameters has a new optional parameter clientLibrary + - Interface OpenidConnectProviderContract has a new optional parameter useInApiDocumentation + - Interface OpenidConnectProviderContract has a new optional parameter useInTestConsole + - Interface OpenidConnectProviderUpdateContract has a new optional parameter useInApiDocumentation + - Interface OpenidConnectProviderUpdateContract has a new optional parameter useInTestConsole + - Added Enum KnownAuthorizationType + - Added Enum KnownNatGatewayState + - Added Enum KnownOAuth2GrantType + - Added Enum KnownPolicyFragmentContentFormat + - Added Enum KnownPortalSettingsCspMode + - Added Enum KnownTranslateRequiredQueryParametersConduct -### Other Changes +**Breaking Changes** + - Type of parameter versioningScheme of interface ApiVersionSetContractDetails is changed from ApiVersionSetContractDetailsVersioningScheme to VersioningScheme + - Removed Enum KnownApiVersionSetContractDetailsVersioningScheme + + ## 9.0.0 (2023-02-01) **Features** diff --git a/sdk/apimanagement/arm-apimanagement/_meta.json b/sdk/apimanagement/arm-apimanagement/_meta.json index d31dfe25fa38..ecf0667b797e 100644 --- a/sdk/apimanagement/arm-apimanagement/_meta.json +++ b/sdk/apimanagement/arm-apimanagement/_meta.json @@ -1,8 +1,8 @@ { - "commit": "78ec1b99699a4bf44869bd13f1b0ed7d92a99c27", + "commit": "1edfad6fb7e54ebee03d5b54665965780e70cb62", "readme": "specification/apimanagement/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.7 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.0", - "use": "@autorest/typescript@6.0.0-rc.7" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index f048e6767d07..4577f281ec5b 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ApiManagementClient.", - "version": "9.0.1", + "version": "10.0.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -33,13 +33,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^8.2.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement" +} \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md index de73184b9c87..cf1936a22b68 100644 --- a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md +++ b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md @@ -6,9 +6,9 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export type AccessIdName = string; @@ -21,7 +21,7 @@ export interface AccessInformationCollection { } // @public -export interface AccessInformationContract extends Resource { +export interface AccessInformationContract extends ProxyResource { enabled?: boolean; idPropertiesId?: string; principalId?: string; @@ -57,6 +57,8 @@ export interface AdditionalLocation { disableGateway?: boolean; readonly gatewayRegionalUrl?: string; location: string; + natGatewayState?: NatGatewayState; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly privateIPAddresses?: string[]; readonly publicIPAddresses?: string[]; @@ -71,7 +73,7 @@ export type AlwaysLog = string; // @public export interface Api { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise, ApiCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise, ApiCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiGetOptionalParams): Promise; @@ -96,7 +98,7 @@ export interface ApiContactInformation { } // @public -export interface ApiContract extends Resource { +export interface ApiContract extends ProxyResource { apiRevision?: string; apiRevisionDescription?: string; apiType?: ApiType; @@ -175,6 +177,7 @@ export interface ApiCreateOrUpdateParameter { subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; subscriptionRequired?: boolean; termsOfServiceUrl?: string; + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; value?: string; wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; } @@ -183,6 +186,7 @@ export interface ApiCreateOrUpdateParameter { export interface ApiCreateOrUpdateProperties extends ApiContractProperties { format?: ContentFormat; soapApiType?: SoapApiType; + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; value?: string; wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; } @@ -653,10 +657,22 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersionSet: ApiVersionSet; // (undocumented) + apiWiki: ApiWiki; + // (undocumented) + apiWikis: ApiWikis; + // (undocumented) + authorization: Authorization; + // (undocumented) + authorizationAccessPolicy: AuthorizationAccessPolicy; + // (undocumented) + authorizationLoginLinks: AuthorizationLoginLinks; + // (undocumented) + authorizationProvider: AuthorizationProvider; + // (undocumented) authorizationServer: AuthorizationServer; // (undocumented) backend: Backend; - beginPerformConnectivityCheckAsync(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise, PerformConnectivityCheckAsyncResponse>>; + beginPerformConnectivityCheckAsync(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise, PerformConnectivityCheckAsyncResponse>>; beginPerformConnectivityCheckAsyncAndWait(resourceGroupName: string, serviceName: string, connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams): Promise; // (undocumented) cache: Cache_2; @@ -673,6 +689,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) diagnostic: Diagnostic; // (undocumented) + documentation: Documentation; + // (undocumented) emailTemplate: EmailTemplate; // (undocumented) gateway: Gateway; @@ -685,6 +703,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) globalSchema: GlobalSchema; // (undocumented) + graphQLApiResolver: GraphQLApiResolver; + // (undocumented) + graphQLApiResolverPolicy: GraphQLApiResolverPolicy; + // (undocumented) group: Group; // (undocumented) groupUser: GroupUser; @@ -715,6 +737,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) policyDescription: PolicyDescription; // (undocumented) + policyFragment: PolicyFragment; + // (undocumented) + portalConfig: PortalConfig; + // (undocumented) portalRevision: PortalRevision; // (undocumented) portalSettings: PortalSettings; @@ -731,6 +757,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) productSubscriptions: ProductSubscriptions; // (undocumented) + productWiki: ProductWiki; + // (undocumented) + productWikis: ProductWikis; + // (undocumented) quotaByCounterKeys: QuotaByCounterKeys; // (undocumented) quotaByPeriodKeys: QuotaByPeriodKeys; @@ -798,17 +828,19 @@ export type ApiManagementOperationsListResponse = OperationListResult; // @public export interface ApiManagementService { - beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams): Promise, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse>>; + beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams): Promise, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse>>; beginApplyNetworkConfigurationUpdatesAndWait(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams): Promise; - beginBackup(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams): Promise, ApiManagementServiceBackupResponse>>; + beginBackup(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams): Promise, ApiManagementServiceBackupResponse>>; beginBackupAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams): Promise; - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams): Promise, ApiManagementServiceCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams): Promise, ApiManagementServiceCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise; - beginRestore(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams): Promise, ApiManagementServiceRestoreResponse>>; + beginMigrateToStv2(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceMigrateToStv2OptionalParams): Promise, ApiManagementServiceMigrateToStv2Response>>; + beginMigrateToStv2AndWait(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceMigrateToStv2OptionalParams): Promise; + beginRestore(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams): Promise, ApiManagementServiceRestoreResponse>>; beginRestoreAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams): Promise; - beginUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams): Promise, ApiManagementServiceUpdateResponse>>; + beginUpdate(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams): Promise, ApiManagementServiceUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams): Promise; checkNameAvailability(parameters: ApiManagementServiceCheckNameAvailabilityParameters, options?: ApiManagementServiceCheckNameAvailabilityOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceGetOptionalParams): Promise; @@ -823,6 +855,12 @@ export interface ApiManagementServiceApplyNetworkConfigurationParameters { location?: string; } +// @public +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams extends coreClient.OperationOptions { parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; @@ -833,6 +871,12 @@ export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalPar // @public export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource; +// @public +export interface ApiManagementServiceBackupHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementServiceBackupOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -868,7 +912,9 @@ export interface ApiManagementServiceBaseProperties { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; readonly managementApiUrl?: string; + natGatewayState?: NatGatewayState; notificationSenderEmail?: string; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly portalUrl?: string; privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; @@ -986,6 +1032,21 @@ export interface ApiManagementServiceListResult { value: ApiManagementServiceResource[]; } +// @public +export interface ApiManagementServiceMigrateToStv2Headers { + // (undocumented) + location?: string; +} + +// @public +export interface ApiManagementServiceMigrateToStv2OptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; + // @public export interface ApiManagementServiceNameAvailabilityResult { readonly message?: string; @@ -1018,7 +1079,9 @@ export interface ApiManagementServiceResource extends ApimResource { identity?: ApiManagementServiceIdentity; location: string; readonly managementApiUrl?: string; + natGatewayState?: NatGatewayState; notificationSenderEmail?: string; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly portalUrl?: string; privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; @@ -1039,6 +1102,12 @@ export interface ApiManagementServiceResource extends ApimResource { zones?: string[]; } +// @public +export interface ApiManagementServiceRestoreHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementServiceRestoreOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1097,7 +1166,9 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; readonly managementApiUrl?: string; + natGatewayState?: NatGatewayState; notificationSenderEmail?: string; + readonly outboundPublicIPAddresses?: string[]; readonly platformVersion?: PlatformVersion; readonly portalUrl?: string; privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; @@ -1475,7 +1546,7 @@ export interface ApiReleaseCollection { } // @public -export interface ApiReleaseContract extends Resource { +export interface ApiReleaseContract extends ProxyResource { apiId?: string; readonly createdDateTime?: Date; notes?: string; @@ -1603,7 +1674,7 @@ export type ApiRevisionListByServiceResponse = ApiRevisionCollection; // @public export interface ApiSchema { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams): Promise, ApiSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams): Promise, ApiSchemaCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, ifMatch: string, options?: ApiSchemaDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, options?: ApiSchemaGetOptionalParams): Promise; @@ -1809,7 +1880,7 @@ export interface ApiVersionSetCollection { } // @public -export interface ApiVersionSetContract extends Resource { +export interface ApiVersionSetContract extends ProxyResource { description?: string; displayName?: string; versionHeaderName?: string; @@ -1823,13 +1894,10 @@ export interface ApiVersionSetContractDetails { id?: string; name?: string; versionHeaderName?: string; - versioningScheme?: ApiVersionSetContractDetailsVersioningScheme; + versioningScheme?: VersioningScheme; versionQueryName?: string; } -// @public -export type ApiVersionSetContractDetailsVersioningScheme = string; - // @public export interface ApiVersionSetContractProperties extends ApiVersionSetEntityBase { displayName: string; @@ -1928,6 +1996,90 @@ export interface ApiVersionSetUpdateParametersProperties extends ApiVersionSetEn // @public export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & ApiVersionSetContract; +// @public +export interface ApiWiki { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: WikiContract, options?: ApiWikiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiWikiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikiGetEntityTagOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, parameters: WikiUpdateContract, options?: ApiWikiUpdateOptionalParams): Promise; +} + +// @public +export interface ApiWikiCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface ApiWikiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & WikiContract; + +// @public +export interface ApiWikiDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ApiWikiGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface ApiWikiGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; + +// @public +export interface ApiWikiGetHeaders { + eTag?: string; +} + +// @public +export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; + +// @public +export interface ApiWikis { + list(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikisListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ApiWikisListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiWikisListNextResponse = WikiCollection; + +// @public +export interface ApiWikisListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ApiWikisListResponse = WikiCollection; + +// @public +export interface ApiWikiUpdateHeaders { + eTag?: string; +} + +// @public +export interface ApiWikiUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; + // @public export type AppType = string; @@ -1937,22 +2089,300 @@ export interface ArmIdWrapper { } // @public -export interface AssociationContract extends Resource { +export interface AssociationContract extends ProxyResource { provisioningState?: "created"; } // @public export type AsyncOperationStatus = "Started" | "InProgress" | "Succeeded" | "Failed"; +// @public +export type AsyncResolverStatus = "Started" | "InProgress" | "Succeeded" | "Failed"; + // @public export interface AuthenticationSettingsContract { oAuth2?: OAuth2AuthenticationSettingsContract; + oAuth2AuthenticationSettings?: OAuth2AuthenticationSettingsContract[]; openid?: OpenIdAuthenticationSettingsContract; + openidAuthenticationSettings?: OpenIdAuthenticationSettingsContract[]; +} + +// @public +export interface Authorization { + confirmConsentCode(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, parameters: AuthorizationConfirmConsentCodeRequestContract, options?: AuthorizationConfirmConsentCodeOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, parameters: AuthorizationContract, options?: AuthorizationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, ifMatch: string, options?: AuthorizationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, options?: AuthorizationGetOptionalParams): Promise; + listByAuthorizationProvider(resourceGroupName: string, serviceName: string, authorizationProviderId: string, options?: AuthorizationListByAuthorizationProviderOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AuthorizationAccessPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, parameters: AuthorizationAccessPolicyContract, options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, ifMatch: string, options?: AuthorizationAccessPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, options?: AuthorizationAccessPolicyGetOptionalParams): Promise; + listByAuthorization(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AuthorizationAccessPolicyCollection { + count?: number; + nextLink?: string; + value?: AuthorizationAccessPolicyContract[]; +} + +// @public +export interface AuthorizationAccessPolicyContract extends ProxyResource { + objectId?: string; + tenantId?: string; +} + +// @public +export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & AuthorizationAccessPolicyContract; + +// @public +export interface AuthorizationAccessPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AuthorizationAccessPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationAccessPolicyGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & AuthorizationAccessPolicyContract; + +// @public +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; + +// @public +export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; + +// @public +export interface AuthorizationCollection { + count?: number; + nextLink?: string; + value?: AuthorizationContract[]; +} + +// @public +export interface AuthorizationConfirmConsentCodeHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationConfirmConsentCodeOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AuthorizationConfirmConsentCodeRequestContract { + consentCode?: string; +} + +// @public +export type AuthorizationConfirmConsentCodeResponse = AuthorizationConfirmConsentCodeHeaders; + +// @public +export interface AuthorizationContract extends ProxyResource { + authorizationType?: AuthorizationType; + error?: AuthorizationError; + oAuth2GrantType?: OAuth2GrantType; + parameters?: { + [propertyName: string]: string; + }; + status?: string; +} + +// @public +export interface AuthorizationCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type AuthorizationCreateOrUpdateResponse = AuthorizationCreateOrUpdateHeaders & AuthorizationContract; + +// @public +export interface AuthorizationDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AuthorizationError { + code?: string; + message?: string; +} + +// @public +export interface AuthorizationGetHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationGetResponse = AuthorizationGetHeaders & AuthorizationContract; + +// @public +export interface AuthorizationListByAuthorizationProviderNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; + +// @public +export interface AuthorizationListByAuthorizationProviderOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type AuthorizationListByAuthorizationProviderResponse = AuthorizationCollection; + +// @public +export interface AuthorizationLoginLinks { + post(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, parameters: AuthorizationLoginRequestContract, options?: AuthorizationLoginLinksPostOptionalParams): Promise; +} + +// @public +export interface AuthorizationLoginLinksPostHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationLoginLinksPostOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & AuthorizationLoginResponseContract; + +// @public +export interface AuthorizationLoginRequestContract { + postLoginRedirectUrl?: string; +} + +// @public +export interface AuthorizationLoginResponseContract { + loginLink?: string; } // @public export type AuthorizationMethod = "HEAD" | "OPTIONS" | "TRACE" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; +// @public +export interface AuthorizationProvider { + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, parameters: AuthorizationProviderContract, options?: AuthorizationProviderCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, ifMatch: string, options?: AuthorizationProviderDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, options?: AuthorizationProviderGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: AuthorizationProviderListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AuthorizationProviderCollection { + nextLink?: string; + value?: AuthorizationProviderContract[]; +} + +// @public +export interface AuthorizationProviderContract extends ProxyResource { + displayName?: string; + identityProvider?: string; + oauth2?: AuthorizationProviderOAuth2Settings; +} + +// @public +export interface AuthorizationProviderCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type AuthorizationProviderCreateOrUpdateResponse = AuthorizationProviderCreateOrUpdateHeaders & AuthorizationProviderContract; + +// @public +export interface AuthorizationProviderDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AuthorizationProviderGetHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationProviderGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & AuthorizationProviderContract; + +// @public +export interface AuthorizationProviderListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; + +// @public +export interface AuthorizationProviderListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; + +// @public +export interface AuthorizationProviderOAuth2GrantTypes { + authorizationCode?: { + [propertyName: string]: string; + }; + clientCredentials?: { + [propertyName: string]: string; + }; +} + +// @public +export interface AuthorizationProviderOAuth2Settings { + grantTypes?: AuthorizationProviderOAuth2GrantTypes; + redirectUrl?: string; +} + // @public export interface AuthorizationServer { createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: AuthorizationServerContract, options?: AuthorizationServerCreateOrUpdateOptionalParams): Promise; @@ -1972,7 +2402,7 @@ export interface AuthorizationServerCollection { } // @public -export interface AuthorizationServerContract extends Resource { +export interface AuthorizationServerContract extends ProxyResource { authorizationEndpoint?: string; authorizationMethods?: AuthorizationMethod[]; bearerTokenSendingMethods?: BearerTokenSendingMethod[]; @@ -1989,6 +2419,8 @@ export interface AuthorizationServerContract extends Resource { supportState?: boolean; tokenBodyParameters?: TokenBodyParameterContract[]; tokenEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -2013,6 +2445,8 @@ export interface AuthorizationServerContractProperties extends AuthorizationServ clientSecret?: string; displayName: string; grantTypes: GrantType[]; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -2093,7 +2527,7 @@ export interface AuthorizationServerSecretsContract { } // @public -export interface AuthorizationServerUpdateContract extends Resource { +export interface AuthorizationServerUpdateContract extends ProxyResource { authorizationEndpoint?: string; authorizationMethods?: AuthorizationMethod[]; bearerTokenSendingMethods?: BearerTokenSendingMethod[]; @@ -2110,6 +2544,8 @@ export interface AuthorizationServerUpdateContract extends Resource { supportState?: boolean; tokenBodyParameters?: TokenBodyParameterContract[]; tokenEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -2120,6 +2556,8 @@ export interface AuthorizationServerUpdateContractProperties extends Authorizati clientSecret?: string; displayName?: string; grantTypes?: GrantType[]; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -2134,6 +2572,9 @@ export interface AuthorizationServerUpdateOptionalParams extends coreClient.Oper // @public export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & AuthorizationServerContract; +// @public +export type AuthorizationType = string; + // @public export interface Backend { createOrUpdate(resourceGroupName: string, serviceName: string, backendId: string, parameters: BackendContract, options?: BackendCreateOrUpdateOptionalParams): Promise; @@ -2170,7 +2611,7 @@ export interface BackendCollection { } // @public -export interface BackendContract extends Resource { +export interface BackendContract extends ProxyResource { credentials?: BackendCredentialsContract; description?: string; properties?: BackendProperties; @@ -2275,7 +2716,7 @@ export interface BackendProxyContract { } // @public -export interface BackendReconnectContract extends Resource { +export interface BackendReconnectContract extends ProxyResource { after?: string; } @@ -2361,7 +2802,7 @@ export interface CacheCollection { } // @public -export interface CacheContract extends Resource { +export interface CacheContract extends ProxyResource { connectionString?: string; description?: string; resourceId?: string; @@ -2474,7 +2915,7 @@ export interface CertificateConfiguration { export type CertificateConfigurationStoreName = string; // @public -export interface CertificateContract extends Resource { +export interface CertificateContract extends ProxyResource { expirationDate?: Date; keyVault?: KeyVaultContractProperties; subject?: string; @@ -2689,7 +3130,7 @@ export interface ContentItemCollection { } // @public -export interface ContentItemContract extends Resource { +export interface ContentItemContract extends ProxyResource { properties?: { [propertyName: string]: any; }; @@ -2765,7 +3206,7 @@ export interface ContentTypeCollection { } // @public -export interface ContentTypeContract extends Resource { +export interface ContentTypeContract extends ProxyResource { description?: string; idPropertiesId?: string; namePropertiesName?: string; @@ -2887,7 +3328,7 @@ export interface DelegationSettingsUpdateOptionalParams extends coreClient.Opera } // @public -export interface DeletedServiceContract extends Resource { +export interface DeletedServiceContract extends ProxyResource { deletionDate?: Date; readonly location?: string; scheduledPurgeDate?: Date; @@ -2896,7 +3337,7 @@ export interface DeletedServiceContract extends Resource { // @public export interface DeletedServices { - beginPurge(serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams): Promise, void>>; + beginPurge(serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams): Promise, void>>; beginPurgeAndWait(serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams): Promise; getByName(serviceName: string, location: string, options?: DeletedServicesGetByNameOptionalParams): Promise; listBySubscription(options?: DeletedServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -2929,6 +3370,12 @@ export interface DeletedServicesListBySubscriptionOptionalParams extends coreCli // @public export type DeletedServicesListBySubscriptionResponse = DeletedServicesCollection; +// @public +export interface DeletedServicesPurgeHeaders { + // (undocumented) + location?: string; +} + // @public export interface DeletedServicesPurgeOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2959,7 +3406,7 @@ export interface DiagnosticCollection { } // @public -export interface DiagnosticContract extends Resource { +export interface DiagnosticContract extends ProxyResource { alwaysLog?: AlwaysLog; backend?: PipelineDiagnosticSettings; frontend?: PipelineDiagnosticSettings; @@ -3042,6 +3489,104 @@ export interface DiagnosticUpdateOptionalParams extends coreClient.OperationOpti // @public export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & DiagnosticContract; +// @public +export interface Documentation { + createOrUpdate(resourceGroupName: string, serviceName: string, documentationId: string, parameters: DocumentationContract, options?: DocumentationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, documentationId: string, ifMatch: string, options?: DocumentationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, documentationId: string, options?: DocumentationGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, documentationId: string, options?: DocumentationGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: DocumentationListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, documentationId: string, ifMatch: string, parameters: DocumentationUpdateContract, options?: DocumentationUpdateOptionalParams): Promise; +} + +// @public +export interface DocumentationCollection { + readonly nextLink?: string; + readonly value?: DocumentationContract[]; +} + +// @public +export interface DocumentationContract extends ProxyResource { + content?: string; + title?: string; +} + +// @public +export interface DocumentationCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface DocumentationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & DocumentationContract; + +// @public +export interface DocumentationDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DocumentationGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface DocumentationGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; + +// @public +export interface DocumentationGetHeaders { + eTag?: string; +} + +// @public +export interface DocumentationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DocumentationGetResponse = DocumentationGetHeaders & DocumentationContract; + +// @public +export interface DocumentationListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DocumentationListByServiceNextResponse = DocumentationCollection; + +// @public +export interface DocumentationListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type DocumentationListByServiceResponse = DocumentationCollection; + +// @public +export interface DocumentationUpdateContract { + content?: string; + title?: string; +} + +// @public +export interface DocumentationUpdateHeaders { + eTag?: string; +} + +// @public +export interface DocumentationUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DocumentationUpdateResponse = DocumentationUpdateHeaders & DocumentationContract; + // @public export interface EmailTemplate { createOrUpdate(resourceGroupName: string, serviceName: string, templateName: TemplateName, parameters: EmailTemplateUpdateParameters, options?: EmailTemplateCreateOrUpdateOptionalParams): Promise; @@ -3060,7 +3605,7 @@ export interface EmailTemplateCollection { } // @public -export interface EmailTemplateContract extends Resource { +export interface EmailTemplateContract extends ProxyResource { body?: string; description?: string; readonly isDefault?: boolean; @@ -3270,7 +3815,7 @@ export interface GatewayCertificateAuthorityCollection { } // @public -export interface GatewayCertificateAuthorityContract extends Resource { +export interface GatewayCertificateAuthorityContract extends ProxyResource { isTrusted?: boolean; } @@ -3340,7 +3885,7 @@ export interface GatewayCollection { } // @public -export interface GatewayContract extends Resource { +export interface GatewayContract extends ProxyResource { description?: string; locationData?: ResourceLocationDataContract; } @@ -3409,7 +3954,7 @@ export interface GatewayHostnameConfigurationCollection { } // @public -export interface GatewayHostnameConfigurationContract extends Resource { +export interface GatewayHostnameConfigurationContract extends ProxyResource { certificateId?: string; hostname?: string; http2Enabled?: boolean; @@ -3553,7 +4098,7 @@ export function getContinuationToken(page: unknown): string | undefined; // @public export interface GlobalSchema { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise, GlobalSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise, GlobalSchemaCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, serviceName: string, schemaId: string, ifMatch: string, options?: GlobalSchemaDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetOptionalParams): Promise; @@ -3569,7 +4114,7 @@ export interface GlobalSchemaCollection { } // @public -export interface GlobalSchemaContract extends Resource { +export interface GlobalSchemaContract extends ProxyResource { description?: string; document?: Record; schemaType?: SchemaType; @@ -3639,6 +4184,151 @@ export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; // @public export type GrantType = string; +// @public +export interface GraphQLApiResolver { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, parameters: ResolverContract, options?: GraphQLApiResolverCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, ifMatch: string, options?: GraphQLApiResolverDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, options?: GraphQLApiResolverGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, options?: GraphQLApiResolverGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: GraphQLApiResolverListByApiOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, ifMatch: string, parameters: ResolverUpdateContract, options?: GraphQLApiResolverUpdateOptionalParams): Promise; +} + +// @public +export interface GraphQLApiResolverCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & ResolverContract; + +// @public +export interface GraphQLApiResolverDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GraphQLApiResolverGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; + +// @public +export interface GraphQLApiResolverGetHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & ResolverContract; + +// @public +export interface GraphQLApiResolverListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; + +// @public +export interface GraphQLApiResolverListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type GraphQLApiResolverListByApiResponse = ResolverCollection; + +// @public +export interface GraphQLApiResolverPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, ifMatch: string, options?: GraphQLApiResolverPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, options?: GraphQLApiResolverPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, policyId: PolicyIdName, options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams): Promise; + listByResolver(resourceGroupName: string, serviceName: string, apiId: string, resolverId: string, options?: GraphQLApiResolverPolicyListByResolverOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GraphQLApiResolverPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface GraphQLApiResolverPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GraphQLApiResolverPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; + +// @public +export interface GraphQLApiResolverPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & PolicyContract; + +// @public +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; + +// @public +export interface GraphQLApiResolverPolicyListByResolverOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; + +// @public +export interface GraphQLApiResolverUpdateHeaders { + eTag?: string; +} + +// @public +export interface GraphQLApiResolverUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & ResolverContract; + // @public export interface Group { createOrUpdate(resourceGroupName: string, serviceName: string, groupId: string, parameters: GroupCreateParameters, options?: GroupCreateOrUpdateOptionalParams): Promise; @@ -3657,7 +4347,7 @@ export interface GroupCollection { } // @public -export interface GroupContract extends Resource { +export interface GroupContract extends ProxyResource { readonly builtIn?: boolean; description?: string; displayName?: string; @@ -3857,6 +4547,7 @@ export interface IdentityProvider { export interface IdentityProviderBaseParameters { allowedTenants?: string[]; authority?: string; + clientLibrary?: string; passwordResetPolicyName?: string; profileEditingPolicyName?: string; signinPolicyName?: string; @@ -3866,10 +4557,11 @@ export interface IdentityProviderBaseParameters { } // @public -export interface IdentityProviderContract extends Resource { +export interface IdentityProviderContract extends ProxyResource { allowedTenants?: string[]; authority?: string; clientId?: string; + clientLibrary?: string; clientSecret?: string; passwordResetPolicyName?: string; profileEditingPolicyName?: string; @@ -3886,10 +4578,11 @@ export interface IdentityProviderContractProperties extends IdentityProviderBase } // @public -export interface IdentityProviderCreateContract extends Resource { +export interface IdentityProviderCreateContract extends ProxyResource { allowedTenants?: string[]; authority?: string; clientId?: string; + clientLibrary?: string; clientSecret?: string; passwordResetPolicyName?: string; profileEditingPolicyName?: string; @@ -3996,6 +4689,7 @@ export interface IdentityProviderUpdateParameters { allowedTenants?: string[]; authority?: string; clientId?: string; + clientLibrary?: string; clientSecret?: string; passwordResetPolicyName?: string; profileEditingPolicyName?: string; @@ -4028,7 +4722,7 @@ export interface IssueAttachmentCollection { } // @public -export interface IssueAttachmentContract extends Resource { +export interface IssueAttachmentContract extends ProxyResource { content?: string; contentFormat?: string; title?: string; @@ -4049,14 +4743,14 @@ export interface IssueCommentCollection { } // @public -export interface IssueCommentContract extends Resource { +export interface IssueCommentContract extends ProxyResource { createdDate?: Date; text?: string; userId?: string; } // @public -export interface IssueContract extends Resource { +export interface IssueContract extends ProxyResource { apiId?: string; createdDate?: Date; description?: string; @@ -4184,19 +4878,17 @@ export enum KnownApiType { Websocket = "websocket" } -// @public -export enum KnownApiVersionSetContractDetailsVersioningScheme { - Header = "Header", - Query = "Query", - Segment = "Segment" -} - // @public export enum KnownAppType { DeveloperPortal = "developerPortal", Portal = "portal" } +// @public +export enum KnownAuthorizationType { + OAuth2 = "OAuth2" +} + // @public export enum KnownBackendProtocol { Http = "http", @@ -4386,6 +5078,12 @@ export enum KnownMethod { Post = "POST" } +// @public +export enum KnownNatGatewayState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownNotificationName { AccountClosedPublisher = "AccountClosedPublisher", @@ -4397,6 +5095,12 @@ export enum KnownNotificationName { RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage" } +// @public +export enum KnownOAuth2GrantType { + AuthorizationCode = "AuthorizationCode", + ClientCredentials = "ClientCredentials" +} + // @public export enum KnownOperationNameFormat { Name = "Name", @@ -4432,6 +5136,12 @@ export enum KnownPolicyExportFormat { Xml = "xml" } +// @public +export enum KnownPolicyFragmentContentFormat { + Rawxml = "rawxml", + Xml = "xml" +} + // @public export enum KnownPolicyIdName { Policy = "policy" @@ -4445,6 +5155,13 @@ export enum KnownPortalRevisionStatus { Publishing = "publishing" } +// @public +export enum KnownPortalSettingsCspMode { + Disabled = "disabled", + Enabled = "enabled", + ReportOnly = "reportOnly" +} + // @public export enum KnownPreferredIPVersion { IPv4 = "IPv4" @@ -4553,6 +5270,12 @@ export enum KnownTemplateName { RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage" } +// @public +export enum KnownTranslateRequiredQueryParametersConduct { + Query = "query", + Template = "template" +} + // @public export enum KnownUserState { Active = "active", @@ -4600,7 +5323,7 @@ export interface LoggerCollection { } // @public -export interface LoggerContract extends Resource { +export interface LoggerContract extends ProxyResource { credentials?: { [propertyName: string]: string; }; @@ -4701,11 +5424,11 @@ export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; // @public export interface NamedValue { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams): Promise, NamedValueCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams): Promise, NamedValueCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams): Promise; - beginRefreshSecret(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueRefreshSecretOptionalParams): Promise, NamedValueRefreshSecretResponse>>; + beginRefreshSecret(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueRefreshSecretOptionalParams): Promise, NamedValueRefreshSecretResponse>>; beginRefreshSecretAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueRefreshSecretOptionalParams): Promise; - beginUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams): Promise, NamedValueUpdateResponse>>; + beginUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams): Promise, NamedValueUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams): Promise; delete(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, options?: NamedValueDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, namedValueId: string, options?: NamedValueGetOptionalParams): Promise; @@ -4722,7 +5445,7 @@ export interface NamedValueCollection { } // @public -export interface NamedValueContract extends Resource { +export interface NamedValueContract extends ProxyResource { displayName?: string; keyVault?: KeyVaultContractProperties; secret?: boolean; @@ -4738,7 +5461,7 @@ export interface NamedValueContractProperties extends NamedValueEntityBaseParame } // @public -export interface NamedValueCreateContract extends Resource { +export interface NamedValueCreateContract extends ProxyResource { displayName?: string; keyVault?: KeyVaultContractCreateProperties; secret?: boolean; @@ -4881,6 +5604,9 @@ export interface NamedValueUpdateParameters { // @public export type NamedValueUpdateResponse = NamedValueUpdateHeaders & NamedValueContract; +// @public +export type NatGatewayState = string; + // @public export interface NetworkStatus { listByLocation(resourceGroupName: string, serviceName: string, locationName: string, options?: NetworkStatusListByLocationOptionalParams): Promise; @@ -4929,7 +5655,7 @@ export interface NotificationCollection { } // @public -export interface NotificationContract extends Resource { +export interface NotificationContract extends ProxyResource { description?: string; recipients?: RecipientsContractProperties; title?: string; @@ -5045,6 +5771,9 @@ export interface OAuth2AuthenticationSettingsContract { scope?: string; } +// @public +export type OAuth2GrantType = string; + // @public export interface OpenIdAuthenticationSettingsContract { bearerTokenSendingMethods?: BearerTokenSendingMethods[]; @@ -5070,12 +5799,14 @@ export interface OpenIdConnectProviderCollection { } // @public -export interface OpenidConnectProviderContract extends Resource { +export interface OpenidConnectProviderContract extends ProxyResource { clientId?: string; clientSecret?: string; description?: string; displayName?: string; metadataEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -5155,6 +5886,8 @@ export interface OpenidConnectProviderUpdateContract { description?: string; displayName?: string; metadataEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -5185,7 +5918,7 @@ export interface OperationCollection { } // @public -export interface OperationContract extends Resource { +export interface OperationContract extends ProxyResource { description?: string; displayName?: string; method?: string; @@ -5253,7 +5986,7 @@ export interface OperationOperations { } // @public -export interface OperationResultContract extends Resource { +export interface OperationResultContract extends ProxyResource { readonly actionLog?: OperationResultLogItemContract[]; error?: ErrorResponseBody; idPropertiesId?: string; @@ -5389,7 +6122,7 @@ export interface PolicyCollection { export type PolicyContentFormat = string; // @public -export interface PolicyContract extends Resource { +export interface PolicyContract extends ProxyResource { format?: PolicyContentFormat; value?: string; } @@ -5423,7 +6156,7 @@ export interface PolicyDescriptionCollection { } // @public -export interface PolicyDescriptionContract extends Resource { +export interface PolicyDescriptionContract extends ProxyResource { readonly description?: string; readonly scope?: number; } @@ -5439,6 +6172,98 @@ export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection // @public export type PolicyExportFormat = string; +// @public +export interface PolicyFragment { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, id: string, parameters: PolicyFragmentContract, options?: PolicyFragmentCreateOrUpdateOptionalParams): Promise, PolicyFragmentCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, id: string, parameters: PolicyFragmentContract, options?: PolicyFragmentCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, id: string, ifMatch: string, options?: PolicyFragmentDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): Promise; + listReferences(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentListReferencesOptionalParams): Promise; +} + +// @public +export interface PolicyFragmentCollection { + count?: number; + nextLink?: string; + value?: PolicyFragmentContract[]; +} + +// @public +export type PolicyFragmentContentFormat = string; + +// @public +export interface PolicyFragmentContract extends ProxyResource { + description?: string; + format?: PolicyFragmentContentFormat; + value?: string; +} + +// @public +export interface PolicyFragmentCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface PolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; + +// @public +export interface PolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PolicyFragmentGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; + +// @public +export interface PolicyFragmentGetHeaders { + eTag?: string; +} + +// @public +export interface PolicyFragmentGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyFragmentContentFormat; +} + +// @public +export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & PolicyFragmentContract; + +// @public +export interface PolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; + +// @public +export interface PolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type PolicyFragmentListReferencesResponse = ResourceCollection; + // @public export interface PolicyGetEntityTagHeaders { eTag?: string; @@ -5478,7 +6303,115 @@ export type PolicyListByServiceResponse = PolicyCollection; export type PolicyScopeContract = "Tenant" | "Product" | "Api" | "Operation" | "All"; // @public -export interface PortalDelegationSettings extends Resource { +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; + update(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigUpdateOptionalParams): Promise; +} + +// @public +export interface PortalConfigCollection { + readonly nextLink?: string; + value?: PortalConfigContract[]; +} + +// @public +export interface PortalConfigContract extends ProxyResource { + cors?: PortalConfigCorsProperties; + csp?: PortalConfigCspProperties; + delegation?: PortalConfigDelegationProperties; + enableBasicAuth?: boolean; + // (undocumented) + signin?: PortalConfigPropertiesSignin; + // (undocumented) + signup?: PortalConfigPropertiesSignup; +} + +// @public +export interface PortalConfigCorsProperties { + allowedOrigins?: string[]; +} + +// @public +export interface PortalConfigCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; + +// @public +export interface PortalConfigCspProperties { + allowedSources?: string[]; + mode?: PortalSettingsCspMode; + reportUri?: string[]; +} + +// @public (undocumented) +export interface PortalConfigDelegationProperties { + delegateRegistration?: boolean; + delegateSubscription?: boolean; + delegationUrl?: string; + validationKey?: string; +} + +// @public +export interface PortalConfigGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface PortalConfigGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; + +// @public +export interface PortalConfigGetHeaders { + eTag?: string; +} + +// @public +export interface PortalConfigGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigGetResponse = PortalConfigGetHeaders & PortalConfigContract; + +// @public +export interface PortalConfigListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigListByServiceResponse = PortalConfigCollection; + +// @public (undocumented) +export interface PortalConfigPropertiesSignin { + require?: boolean; +} + +// @public (undocumented) +export interface PortalConfigPropertiesSignup { + termsOfService?: PortalConfigTermsOfServiceProperties; +} + +// @public +export interface PortalConfigTermsOfServiceProperties { + requireConsent?: boolean; + text?: string; +} + +// @public +export interface PortalConfigUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigUpdateResponse = PortalConfigContract; + +// @public +export interface PortalDelegationSettings extends ProxyResource { subscriptions?: SubscriptionsDelegationSettingsProperties; url?: string; userRegistration?: RegistrationDelegationSettingsProperties; @@ -5487,9 +6420,9 @@ export interface PortalDelegationSettings extends Resource { // @public export interface PortalRevision { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams): Promise, PortalRevisionCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams): Promise, PortalRevisionCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, portalRevisionId: string, parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams): Promise; - beginUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams): Promise, PortalRevisionUpdateResponse>>; + beginUpdate(resourceGroupName: string, serviceName: string, portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams): Promise, PortalRevisionUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serviceName: string, portalRevisionId: string, ifMatch: string, parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, portalRevisionId: string, options?: PortalRevisionGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, portalRevisionId: string, options?: PortalRevisionGetEntityTagOptionalParams): Promise; @@ -5503,7 +6436,7 @@ export interface PortalRevisionCollection { } // @public -export interface PortalRevisionContract extends Resource { +export interface PortalRevisionContract extends ProxyResource { readonly createdDateTime?: Date; description?: string; isCurrent?: boolean; @@ -5596,7 +6529,7 @@ export interface PortalSettingsCollection { } // @public -export interface PortalSettingsContract extends Resource { +export interface PortalSettingsContract extends ProxyResource { enabled?: boolean; subscriptions?: SubscriptionsDelegationSettingsProperties; termsOfService?: TermsOfServiceProperties; @@ -5605,6 +6538,9 @@ export interface PortalSettingsContract extends Resource { validationKey?: string; } +// @public +export type PortalSettingsCspMode = string; + // @public export interface PortalSettingsListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -5618,12 +6554,12 @@ export interface PortalSettingValidationKeyContract { } // @public -export interface PortalSigninSettings extends Resource { +export interface PortalSigninSettings extends ProxyResource { enabled?: boolean; } // @public -export interface PortalSignupSettings extends Resource { +export interface PortalSignupSettings extends ProxyResource { enabled?: boolean; termsOfService?: TermsOfServiceProperties; } @@ -5693,9 +6629,9 @@ export interface PrivateEndpointConnectionListResult { // @public export interface PrivateEndpointConnectionOperations { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise, PrivateEndpointConnectionCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise; getByName(resourceGroupName: string, serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionGetByNameOptionalParams): Promise; getPrivateLinkResource(resourceGroupName: string, serviceName: string, privateLinkSubResourceName: string, options?: PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams): Promise; @@ -5803,7 +6739,7 @@ export interface ProductCollection { } // @public -export interface ProductContract extends Resource { +export interface ProductContract extends ProxyResource { approvalRequired?: boolean; description?: string; displayName?: string; @@ -6069,9 +7005,107 @@ export interface ProductUpdateProperties extends ProductEntityBaseParameters { // @public export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; +// @public +export interface ProductWiki { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: WikiContract, options?: ProductWikiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, options?: ProductWikiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, options?: ProductWikiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, productId: string, options?: ProductWikiGetEntityTagOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, parameters: WikiUpdateContract, options?: ProductWikiUpdateOptionalParams): Promise; +} + +// @public +export interface ProductWikiCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type ProductWikiCreateOrUpdateResponse = ProductWikiCreateOrUpdateHeaders & WikiContract; + +// @public +export interface ProductWikiDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductWikiGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; + +// @public +export interface ProductWikiGetHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; + +// @public +export interface ProductWikis { + list(resourceGroupName: string, serviceName: string, productId: string, options?: ProductWikisListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductWikisListHeaders { + eTag?: string; +} + +// @public +export interface ProductWikisListNextHeaders { + eTag?: string; +} + +// @public +export interface ProductWikisListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikisListNextResponse = ProductWikisListNextHeaders & WikiCollection; + +// @public +export interface ProductWikisListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; + +// @public +export interface ProductWikiUpdateHeaders { + eTag?: string; +} + +// @public +export interface ProductWikiUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; + // @public export type Protocol = string; +// @public +export interface ProxyResource extends Resource { +} + // @public export type PublicNetworkAccess = string; @@ -6157,7 +7191,7 @@ export interface RecipientEmailCollection { } // @public -export interface RecipientEmailContract extends Resource { +export interface RecipientEmailContract extends ProxyResource { email?: string; } @@ -6175,7 +7209,7 @@ export interface RecipientUserCollection { } // @public -export interface RecipientUserContract extends Resource { +export interface RecipientUserContract extends ProxyResource { userId?: string; } @@ -6451,6 +7485,45 @@ export interface RequestReportRecordContract { readonly userId?: string; } +// @public +export interface ResolverCollection { + count?: number; + readonly nextLink?: string; + readonly value?: ResolverContract[]; +} + +// @public +export interface ResolverContract extends ProxyResource { + description?: string; + displayName?: string; + path?: string; +} + +// @public +export interface ResolverResultContract extends ProxyResource { + readonly actionLog?: ResolverResultLogItemContract[]; + error?: ErrorResponseBody; + idPropertiesId?: string; + resultInfo?: string; + started?: Date; + status?: AsyncResolverStatus; + updated?: Date; +} + +// @public +export interface ResolverResultLogItemContract { + action?: string; + objectKey?: string; + objectType?: string; +} + +// @public +export interface ResolverUpdateContract { + description?: string; + displayName?: string; + path?: string; +} + // @public export interface Resource { readonly id?: string; @@ -6458,6 +7531,17 @@ export interface Resource { readonly type?: string; } +// @public +export interface ResourceCollection { + count?: number; + nextLink?: string; + value?: ResourceCollectionValueItem[]; +} + +// @public (undocumented) +export interface ResourceCollectionValueItem extends ProxyResource { +} + // @public export interface ResourceLocationDataContract { city?: string; @@ -6526,7 +7610,7 @@ export interface SchemaCollection { } // @public -export interface SchemaContract extends Resource { +export interface SchemaContract extends ProxyResource { components?: Record; contentType?: string; definitions?: Record; @@ -6660,7 +7744,7 @@ export interface SubscriptionCollection { } // @public -export interface SubscriptionContract extends Resource { +export interface SubscriptionContract extends ProxyResource { allowTracing?: boolean; readonly createdDate?: Date; displayName?: string; @@ -6883,7 +7967,7 @@ export interface TagCollection { } // @public -export interface TagContract extends Resource { +export interface TagContract extends ProxyResource { displayName?: string; } @@ -6924,7 +8008,7 @@ export interface TagDescriptionCollection { } // @public -export interface TagDescriptionContract extends Resource { +export interface TagDescriptionContract extends ProxyResource { description?: string; displayName?: string; externalDocsDescription?: string; @@ -7291,11 +8375,11 @@ export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & AccessInfor // @public export interface TenantConfiguration { - beginDeploy(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams): Promise, TenantConfigurationDeployResponse>>; + beginDeploy(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams): Promise, TenantConfigurationDeployResponse>>; beginDeployAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams): Promise; - beginSave(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams): Promise, TenantConfigurationSaveResponse>>; + beginSave(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams): Promise, TenantConfigurationSaveResponse>>; beginSaveAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams): Promise; - beginValidate(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams): Promise, TenantConfigurationValidateResponse>>; + beginValidate(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams): Promise, TenantConfigurationValidateResponse>>; beginValidateAndWait(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams): Promise; getSyncState(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, options?: TenantConfigurationGetSyncStateOptionalParams): Promise; } @@ -7326,7 +8410,7 @@ export interface TenantConfigurationSaveOptionalParams extends coreClient.Operat export type TenantConfigurationSaveResponse = OperationResultContract; // @public -export interface TenantConfigurationSyncStateContract extends Resource { +export interface TenantConfigurationSyncStateContract extends ProxyResource { branch?: string; commitId?: string; configurationChangeDate?: Date; @@ -7359,7 +8443,7 @@ export interface TenantSettingsCollection { } // @public -export interface TenantSettingsContract extends Resource { +export interface TenantSettingsContract extends ProxyResource { settings?: { [propertyName: string]: string; }; @@ -7405,6 +8489,9 @@ export interface TokenBodyParameterContract { value: string; } +// @public +export type TranslateRequiredQueryParametersConduct = string; + // @public export interface User { createOrUpdate(resourceGroupName: string, serviceName: string, userId: string, parameters: UserCreateParameters, options?: UserCreateOrUpdateOptionalParams): Promise; @@ -7435,7 +8522,7 @@ export interface UserConfirmationPasswordSendOptionalParams extends coreClient.O } // @public -export interface UserContract extends Resource { +export interface UserContract extends ProxyResource { email?: string; firstName?: string; readonly groups?: GroupContractProperties[]; @@ -7718,6 +8805,27 @@ export interface VirtualNetworkConfiguration { // @public export type VirtualNetworkType = string; +// @public +export interface WikiCollection { + readonly nextLink?: string; + readonly value?: WikiContract[]; +} + +// @public +export interface WikiContract extends ProxyResource { + documents?: WikiDocumentationContract[]; +} + +// @public +export interface WikiDocumentationContract { + documentationId?: string; +} + +// @public +export interface WikiUpdateContract { + documents?: WikiDocumentationContract[]; +} + // @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 6c22a4e01e78..260b04e9b645 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -14,8 +14,12 @@ import { SendRequest } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "./lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "./lroImpl"; import { ApiImpl, ApiRevisionImpl, @@ -23,6 +27,8 @@ import { ApiOperationImpl, ApiOperationPolicyImpl, TagImpl, + GraphQLApiResolverImpl, + GraphQLApiResolverPolicyImpl, ApiProductImpl, ApiPolicyImpl, ApiSchemaImpl, @@ -32,9 +38,15 @@ import { ApiIssueAttachmentImpl, ApiTagDescriptionImpl, OperationOperationsImpl, + ApiWikiImpl, + ApiWikisImpl, ApiExportImpl, ApiVersionSetImpl, AuthorizationServerImpl, + AuthorizationProviderImpl, + AuthorizationImpl, + AuthorizationLoginLinksImpl, + AuthorizationAccessPolicyImpl, BackendImpl, CacheImpl, CertificateImpl, @@ -64,6 +76,8 @@ import { OutboundNetworkDependenciesEndpointsImpl, PolicyImpl, PolicyDescriptionImpl, + PolicyFragmentImpl, + PortalConfigImpl, PortalRevisionImpl, PortalSettingsImpl, SignInSettingsImpl, @@ -75,6 +89,8 @@ import { ProductGroupImpl, ProductSubscriptionsImpl, ProductPolicyImpl, + ProductWikiImpl, + ProductWikisImpl, QuotaByCounterKeysImpl, QuotaByPeriodKeysImpl, RegionImpl, @@ -91,7 +107,8 @@ import { UserGroupImpl, UserSubscriptionImpl, UserIdentitiesImpl, - UserConfirmationPasswordImpl + UserConfirmationPasswordImpl, + DocumentationImpl } from "./operations"; import { Api, @@ -100,6 +117,8 @@ import { ApiOperation, ApiOperationPolicy, Tag, + GraphQLApiResolver, + GraphQLApiResolverPolicy, ApiProduct, ApiPolicy, ApiSchema, @@ -109,9 +128,15 @@ import { ApiIssueAttachment, ApiTagDescription, OperationOperations, + ApiWiki, + ApiWikis, ApiExport, ApiVersionSet, AuthorizationServer, + AuthorizationProvider, + Authorization, + AuthorizationLoginLinks, + AuthorizationAccessPolicy, Backend, Cache, Certificate, @@ -141,6 +166,8 @@ import { OutboundNetworkDependenciesEndpoints, Policy, PolicyDescription, + PolicyFragment, + PortalConfig, PortalRevision, PortalSettings, SignInSettings, @@ -152,6 +179,8 @@ import { ProductGroup, ProductSubscriptions, ProductPolicy, + ProductWiki, + ProductWikis, QuotaByCounterKeys, QuotaByPeriodKeys, Region, @@ -168,7 +197,8 @@ import { UserGroup, UserSubscription, UserIdentities, - UserConfirmationPassword + UserConfirmationPassword, + Documentation } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -187,8 +217,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the ApiManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. - * The subscription ID forms part of the URI for every service call. + * @param subscriptionId The ID of the target subscription. * @param options The parameter options */ constructor( @@ -212,7 +241,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-apimanagement/9.0.1`; + const packageDetails = `azsdk-js-arm-apimanagement/10.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -265,13 +294,15 @@ export class ApiManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-08-01"; + this.apiVersion = options.apiVersion || "2022-08-01"; this.api = new ApiImpl(this); this.apiRevision = new ApiRevisionImpl(this); this.apiRelease = new ApiReleaseImpl(this); this.apiOperation = new ApiOperationImpl(this); this.apiOperationPolicy = new ApiOperationPolicyImpl(this); this.tag = new TagImpl(this); + this.graphQLApiResolver = new GraphQLApiResolverImpl(this); + this.graphQLApiResolverPolicy = new GraphQLApiResolverPolicyImpl(this); this.apiProduct = new ApiProductImpl(this); this.apiPolicy = new ApiPolicyImpl(this); this.apiSchema = new ApiSchemaImpl(this); @@ -281,9 +312,15 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiIssueAttachment = new ApiIssueAttachmentImpl(this); this.apiTagDescription = new ApiTagDescriptionImpl(this); this.operationOperations = new OperationOperationsImpl(this); + this.apiWiki = new ApiWikiImpl(this); + this.apiWikis = new ApiWikisImpl(this); this.apiExport = new ApiExportImpl(this); this.apiVersionSet = new ApiVersionSetImpl(this); this.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.backend = new BackendImpl(this); this.cache = new CacheImpl(this); this.certificate = new CertificateImpl(this); @@ -319,6 +356,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { ); this.policy = new PolicyImpl(this); this.policyDescription = new PolicyDescriptionImpl(this); + this.policyFragment = new PolicyFragmentImpl(this); + this.portalConfig = new PortalConfigImpl(this); this.portalRevision = new PortalRevisionImpl(this); this.portalSettings = new PortalSettingsImpl(this); this.signInSettings = new SignInSettingsImpl(this); @@ -332,6 +371,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.productGroup = new ProductGroupImpl(this); this.productSubscriptions = new ProductSubscriptionsImpl(this); this.productPolicy = new ProductPolicyImpl(this); + this.productWiki = new ProductWikiImpl(this); + this.productWikis = new ProductWikisImpl(this); this.quotaByCounterKeys = new QuotaByCounterKeysImpl(this); this.quotaByPeriodKeys = new QuotaByPeriodKeysImpl(this); this.region = new RegionImpl(this); @@ -349,6 +390,7 @@ 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.addCustomApiVersionPolicy(options.apiVersion); } @@ -383,7 +425,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Performs a connectivity check between the API Management service and a given destination, and * returns metrics for the connection, as well as errors encountered while trying to establish it. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param connectivityCheckRequestParams Connectivity Check request parameters. * @param options The options parameters. @@ -394,8 +436,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { connectivityCheckRequestParams: ConnectivityCheckRequest, options?: PerformConnectivityCheckAsyncOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PerformConnectivityCheckAsyncResponse > > { @@ -405,7 +447,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { ): Promise => { return this.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -438,20 +480,23 @@ export class ApiManagementClient extends coreClient.ServiceClient { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, connectivityCheckRequestParams, options }, - performConnectivityCheckAsyncOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: performConnectivityCheckAsyncOperationSpec + }); + const poller = await createHttpPoller< + PerformConnectivityCheckAsyncResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -460,7 +505,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Performs a connectivity check between the API Management service and a given destination, and * returns metrics for the connection, as well as errors encountered while trying to establish it. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param connectivityCheckRequestParams Connectivity Check request parameters. * @param options The options parameters. @@ -486,6 +531,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiOperation: ApiOperation; apiOperationPolicy: ApiOperationPolicy; tag: Tag; + graphQLApiResolver: GraphQLApiResolver; + graphQLApiResolverPolicy: GraphQLApiResolverPolicy; apiProduct: ApiProduct; apiPolicy: ApiPolicy; apiSchema: ApiSchema; @@ -495,9 +542,15 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiIssueAttachment: ApiIssueAttachment; apiTagDescription: ApiTagDescription; operationOperations: OperationOperations; + apiWiki: ApiWiki; + apiWikis: ApiWikis; apiExport: ApiExport; apiVersionSet: ApiVersionSet; authorizationServer: AuthorizationServer; + authorizationProvider: AuthorizationProvider; + authorization: Authorization; + authorizationLoginLinks: AuthorizationLoginLinks; + authorizationAccessPolicy: AuthorizationAccessPolicy; backend: Backend; cache: Cache; certificate: Certificate; @@ -527,6 +580,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { outboundNetworkDependenciesEndpoints: OutboundNetworkDependenciesEndpoints; policy: Policy; policyDescription: PolicyDescription; + policyFragment: PolicyFragment; + portalConfig: PortalConfig; portalRevision: PortalRevision; portalSettings: PortalSettings; signInSettings: SignInSettings; @@ -538,6 +593,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { productGroup: ProductGroup; productSubscriptions: ProductSubscriptions; productPolicy: ProductPolicy; + productWiki: ProductWiki; + productWikis: ProductWikis; quotaByCounterKeys: QuotaByCounterKeys; quotaByPeriodKeys: QuotaByPeriodKeys; region: Region; @@ -555,6 +612,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { userSubscription: UserSubscription; userIdentities: UserIdentities; userConfirmationPassword: UserConfirmationPassword; + documentation: Documentation; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); diff --git a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts +++ b/sdk/apimanagement/arm-apimanagement/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; } diff --git a/sdk/apimanagement/arm-apimanagement/src/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index 0696e3f8c99d..cf945f643915 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/index.ts @@ -33,7 +33,7 @@ export interface ApiVersionSetContractDetails { /** Description of API Version Set. */ description?: string; /** An value that determines where the API Version identifier will be located in a HTTP request. */ - versioningScheme?: ApiVersionSetContractDetailsVersioningScheme; + versioningScheme?: VersioningScheme; /** Name of query parameter that indicates the API Version if versioningScheme is set to `query`. */ versionQueryName?: string; /** Name of HTTP header parameter that indicates the API Version if versioningScheme is set to `header`. */ @@ -83,6 +83,10 @@ export interface AuthenticationSettingsContract { oAuth2?: OAuth2AuthenticationSettingsContract; /** OpenID Connect Authentication Settings */ openid?: OpenIdAuthenticationSettingsContract; + /** Collection of OAuth2 authentication settings included into this API. */ + oAuth2AuthenticationSettings?: OAuth2AuthenticationSettingsContract[]; + /** Collection of Open ID Connect authentication settings included into this API. */ + openidAuthenticationSettings?: OpenIdAuthenticationSettingsContract[]; } /** API OAuth2 Authentication settings details. */ @@ -237,6 +241,8 @@ export interface ApiCreateOrUpdateParameter { * * `graphql` creates GraphQL API. */ soapApiType?: SoapApiType; + /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ + translateRequiredQueryParametersConduct?: TranslateRequiredQueryParametersConduct; } /** Criteria to limit import of WSDL to a subset of the document. */ @@ -510,6 +516,32 @@ export interface TagCollection { nextLink?: string; } +/** Paged Resolver list representation. */ +export interface ResolverCollection { + /** + * Page values. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ResolverContract[]; + /** Total record count number across all pages. */ + count?: number; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** GraphQL API Resolver Update Contract details. */ +export interface ResolverUpdateContract { + /** Resolver Name. */ + displayName?: string; + /** Path is type/field being resolved. */ + path?: string; + /** Description of the resolver. May include HTML formatting tags. */ + description?: string; +} + /** Paged Products list representation. */ export interface ProductCollection { /** Page values. */ @@ -783,6 +815,32 @@ export interface OperationTagResourceContractProperties { readonly urlTemplate?: string; } +/** Wiki documentation details. */ +export interface WikiDocumentationContract { + /** Documentation Identifier */ + documentationId?: string; +} + +/** Wiki update contract details. */ +export interface WikiUpdateContract { + /** Collection wiki documents included into this wiki. */ + documents?: WikiDocumentationContract[]; +} + +/** Paged Wiki list representation. */ +export interface WikiCollection { + /** + * Page values. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: WikiContract[]; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + /** API Export result. */ export interface ApiExportResult { /** ResourceId of the API which was exported. */ @@ -885,6 +943,76 @@ export interface AuthorizationServerSecretsContract { resourceOwnerPassword?: string; } +/** Paged Authorization Provider list representation. */ +export interface AuthorizationProviderCollection { + /** Page values. */ + value?: AuthorizationProviderContract[]; + /** Next page link if any. */ + nextLink?: string; +} + +/** OAuth2 settings details */ +export interface AuthorizationProviderOAuth2Settings { + /** Redirect URL to be set in the OAuth application. */ + redirectUrl?: string; + /** OAuth2 settings */ + grantTypes?: AuthorizationProviderOAuth2GrantTypes; +} + +/** Authorization Provider oauth2 grant types settings */ +export interface AuthorizationProviderOAuth2GrantTypes { + /** OAuth2 authorization code grant parameters */ + authorizationCode?: { [propertyName: string]: string }; + /** OAuth2 client credential grant parameters */ + clientCredentials?: { [propertyName: string]: string }; +} + +/** Paged Authorization list representation. */ +export interface AuthorizationCollection { + /** Page values. */ + value?: AuthorizationContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Authorization error details. */ +export interface AuthorizationError { + /** Error code */ + code?: string; + /** Error message */ + message?: string; +} + +/** Authorization login request contract. */ +export interface AuthorizationLoginRequestContract { + /** The redirect URL after login has completed. */ + postLoginRedirectUrl?: string; +} + +/** Authorization login response contract. */ +export interface AuthorizationLoginResponseContract { + /** The login link */ + loginLink?: string; +} + +/** Authorization confirm consent code request contract. */ +export interface AuthorizationConfirmConsentCodeRequestContract { + /** The consent code from the authorization server after authorizing and consenting. */ + consentCode?: string; +} + +/** Paged Authorization Access Policy list representation. */ +export interface AuthorizationAccessPolicyCollection { + /** Page values. */ + value?: AuthorizationAccessPolicyContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged Backend list representation. */ export interface BackendCollection { /** Backend values. */ @@ -901,13 +1029,13 @@ export interface BackendBaseParameters { title?: string; /** Backend Description. */ description?: string; - /** Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ + /** Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ resourceId?: string; /** Backend Properties contract */ properties?: BackendProperties; /** Backend Credentials Contract Properties */ credentials?: BackendCredentialsContract; - /** Backend Proxy Contract Properties */ + /** Backend gateway Contract Properties */ proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; @@ -989,13 +1117,13 @@ export interface BackendUpdateParameters { title?: string; /** Backend Description. */ description?: string; - /** Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ + /** Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps. */ resourceId?: string; /** Backend Properties contract */ properties?: BackendProperties; /** Backend Credentials Contract Properties */ credentials?: BackendCredentialsContract; - /** Backend Proxy Contract Properties */ + /** Backend gateway Contract Properties */ proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; @@ -1435,12 +1563,19 @@ export interface ApiManagementServiceBaseProperties { virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ additionalLocations?: AdditionalLocation[]; - /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

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

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

You can disable any of the following ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them.
Note: The following ciphers can't be disabled since they are required by internal platform components: TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 */ + customProperties?: { [propertyName: string]: string }; + /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ + certificates?: CertificateConfiguration[]; + /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ + enableClientCertificate?: boolean; + /** Property can be used to enable NAT Gateway for this API Management service. */ + natGatewayState?: NatGatewayState; /** - * The private link resource required member names. + * Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; - /** The private link resource Private link DNS zone name. */ - requiredZoneNames?: string[]; + readonly outboundPublicIPAddresses?: string[]; + /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ + disableGateway?: boolean; + /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ + virtualNetworkType?: VirtualNetworkType; + /** Control Plane Apis version constraint for the API Management service. */ + apiVersionConstraint?: ApiVersionConstraint; + /** Undelete Api Management Service if it was previously soft-deleted. If this flag is specified and set to True all other properties will be ignored. */ + restore?: boolean; + /** List of Private Endpoint Connections of this service. */ + privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; + /** + * Compute Platform Version running the service in this location. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly platformVersion?: PlatformVersion; + /** Publisher email. */ + publisherEmail: string; + /** Publisher name. */ + publisherName: string; } -/** Subscription details. */ -export interface SubscriptionContract extends Resource { - /** The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{userId} where {userId} is a user identifier. */ - ownerId?: string; - /** Scope like /products/{productId} or /apis or /apis/{apiId}. */ - scope?: string; - /** The name of the subscription, or null if the subscription has no name. */ - displayName?: string; - /** Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. */ - state?: SubscriptionState; +/** Parameter supplied to Update Api Management Service. */ +export interface ApiManagementServiceUpdateParameters extends ApimResource { + /** SKU properties of the API Management service. */ + sku?: ApiManagementServiceSkuProperties; + /** Managed service identity of the Api Management service. */ + identity?: ApiManagementServiceIdentity; /** - * Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * ETag of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdDate?: Date; + readonly etag?: string; + /** A list of availability zones denoting where the resource needs to come from. */ + zones?: string[]; + /** Email address from which the notification will be sent. */ + notificationSenderEmail?: string; /** - * Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - startDate?: Date; + readonly provisioningState?: string; /** - * Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * The provisioning state of the API Management service, which is targeted by the long running operation started on the service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - expirationDate?: Date; + readonly targetProvisioningState?: string; /** - * Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - endDate?: Date; + readonly createdAtUtc?: Date; /** - * Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * Gateway URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - notificationDate?: Date; - /** Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - primaryKey?: string; - /** Subscription secondary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - secondaryKey?: string; - /** Optional subscription comment added by an administrator when the state is changed to the 'rejected'. */ - stateComment?: string; - /** Determines whether tracing is enabled */ - allowTracing?: boolean; -} - -/** Global Schema Contract details. */ -export interface GlobalSchemaContract extends Resource { - /** Schema Type. Immutable. */ - schemaType?: SchemaType; - /** Free-form schema entity description. */ - description?: string; - /** Json-encoded string for non json-based schema. */ - value?: any; - /** Global Schema document object for json-based schema formats(e.g. json schema). */ - document?: Record; -} - -/** Tenant Settings. */ -export interface TenantSettingsContract extends Resource { - /** Tenant settings */ - settings?: { [propertyName: string]: string }; -} - -/** Tenant Settings. */ -export interface AccessInformationContract extends Resource { - /** Access Information type ('access' or 'gitAccess') */ - idPropertiesId?: string; - /** Principal (User) Identifier. */ - principalId?: string; - /** Determines whether direct access is enabled. */ - enabled?: boolean; -} - -/** Long Running Git Operation Results. */ -export interface OperationResultContract extends Resource { - /** Operation result identifier. */ - idPropertiesId?: string; - /** Status of an async operation. */ - status?: AsyncOperationStatus; + readonly gatewayUrl?: string; /** - * Start time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * Gateway URL of the API Management service in the Default Region. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - started?: Date; + readonly gatewayRegionalUrl?: string; /** - * Last update time of an async operation. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * Publisher portal endpoint Url of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - updated?: Date; - /** Optional result info. */ - resultInfo?: string; - /** Error Body Contract */ - error?: ErrorResponseBody; + readonly portalUrl?: string; /** - * This property if only provided as part of the TenantConfiguration_Validate operation. It contains the log the entities which will be updated/created/deleted as part of the TenantConfiguration_Deploy operation. + * Management API endpoint URL of the API Management service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionLog?: OperationResultLogItemContract[]; -} - -/** Result of Tenant Configuration Sync State. */ -export interface TenantConfigurationSyncStateContract extends Resource { - /** The name of Git branch. */ - branch?: string; - /** The latest commit Id. */ - commitId?: string; - /** value indicating if last sync was save (true) or deploy (false) operation. */ - isExport?: boolean; - /** value indicating if last synchronization was later than the configuration change. */ - isSynced?: boolean; - /** value indicating whether Git configuration access is enabled. */ - isGitEnabled?: boolean; + readonly managementApiUrl?: string; /** - * 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. - * + * SCM endpoint URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - syncDate?: Date; + readonly scmUrl?: string; /** - * The date of the latest configuration change. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * - */ - configurationChangeDate?: Date; - /** Most recent tenant configuration operation identifier */ - lastOperationId?: string; -} - -/** Operation Contract Properties */ -export interface OperationContractProperties - extends OperationEntityBaseContract { - /** Operation Name. */ - displayName: string; - /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ - method: string; - /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ - urlTemplate: string; -} - -/** Operation Update Contract Properties. */ -export interface OperationUpdateContractProperties - extends OperationEntityBaseContract { - /** Operation Name. */ - displayName?: string; - /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ - method?: string; - /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ - urlTemplate?: string; -} - -/** Product profile. */ -export interface ProductContractProperties extends ProductEntityBaseParameters { - /** Product name. */ - displayName: string; -} - -/** Product profile. */ -export interface ProductTagResourceContractProperties - extends ProductEntityBaseParameters { - /** Identifier of the product in the form of /products/{productId} */ - id?: string; - /** Product name. */ - name: string; -} - -/** Parameters supplied to the Update Product operation. */ -export interface ProductUpdateProperties extends ProductEntityBaseParameters { - /** Product name. */ - displayName?: string; -} - -/** Issue contract Properties. */ -export interface IssueContractProperties extends IssueContractBaseProperties { - /** The issue title. */ - title: string; - /** Text describing the issue. */ - description: string; - /** A resource identifier for the user created the issue. */ - userId: string; -} - -/** Issue contract Update Properties. */ -export interface IssueUpdateContractProperties - extends IssueContractBaseProperties { - /** The issue title. */ - title?: string; - /** Text describing the issue. */ - description?: string; - /** A resource identifier for the user created the issue. */ - userId?: string; -} - -/** TagDescription contract Properties. */ -export interface TagDescriptionContractProperties - extends TagDescriptionBaseProperties { - /** Identifier of the tag in the form of /tags/{tagId} */ - tagId?: string; - /** Tag name. */ - displayName?: string; -} - -/** Properties of an API Version Set. */ -export interface ApiVersionSetContractProperties - extends ApiVersionSetEntityBase { - /** Name of API Version Set */ - displayName: string; - /** An value that determines where the API Version identifier will be located in a HTTP request. */ - versioningScheme: VersioningScheme; -} - -/** Properties used to create or update an API Version Set. */ -export interface ApiVersionSetUpdateParametersProperties - extends ApiVersionSetEntityBase { - /** Name of API Version Set */ - displayName?: string; - /** An value that determines where the API Version identifier will be located in a HTTP request. */ - versioningScheme?: VersioningScheme; -} - -/** External OAuth authorization server settings Properties. */ -export interface AuthorizationServerContractProperties - extends AuthorizationServerContractBaseProperties { - /** User-friendly authorization server name. */ - displayName: string; - /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ - clientRegistrationEndpoint: string; - /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ - authorizationEndpoint: string; - /** Form of an authorization grant, which the client uses to request the access token. */ - grantTypes: GrantType[]; - /** Client or app id registered with this authorization server. */ - clientId: string; - /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; -} - -/** External OAuth authorization server Update settings contract. */ -export interface AuthorizationServerUpdateContractProperties - extends AuthorizationServerContractBaseProperties { - /** User-friendly authorization server name. */ - displayName?: string; - /** Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced. */ - clientRegistrationEndpoint?: string; - /** OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. */ - authorizationEndpoint?: string; - /** Form of an authorization grant, which the client uses to request the access token. */ - grantTypes?: GrantType[]; - /** Client or app id registered with this authorization server. */ - clientId?: string; - /** Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; -} - -/** Parameters supplied to the Create Backend operation. */ -export interface BackendContractProperties extends BackendBaseParameters { - /** Runtime Url of the Backend. */ - url: string; - /** Backend communication protocol. */ - protocol: BackendProtocol; -} - -/** Parameters supplied to the Update Backend operation. */ -export interface BackendUpdateParameterProperties - extends BackendBaseParameters { - /** Runtime Url of the Backend. */ - url?: string; - /** Backend communication protocol. */ - protocol?: BackendProtocol; -} - -/** KeyVault contract details. */ -export interface KeyVaultContractProperties - extends KeyVaultContractCreateProperties { - /** Last time sync and refresh status of secret from key vault. */ - lastStatus?: KeyVaultLastAccessStatusContractProperties; -} - -/** Properties of an API Management service resource description. */ -export interface ApiManagementServiceProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail: string; - /** Publisher name. */ - publisherName: string; -} - -/** Properties of an API Management service resource description. */ -export interface ApiManagementServiceUpdateProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail?: string; - /** Publisher name. */ - publisherName?: string; -} - -/** A single API Management service resource in List or Get response. */ -export interface ApiManagementServiceResource extends ApimResource { - /** SKU properties of the API Management service. */ - sku: ApiManagementServiceSkuProperties; - /** Managed service identity of the Api Management service. */ - identity?: ApiManagementServiceIdentity; - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** Resource location. */ - location: string; - /** - * ETag of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly etag?: string; - /** A list of availability zones denoting where the resource needs to come from. */ - zones?: string[]; - /** Email address from which the notification will be sent. */ - notificationSenderEmail?: string; - /** - * The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The provisioning state of the API Management service, which is targeted by the long running operation started on the service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetProvisioningState?: string; - /** - * Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdAtUtc?: Date; - /** - * Gateway URL of the API Management service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly gatewayUrl?: string; - /** - * Gateway URL of the API Management service in the Default Region. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly gatewayRegionalUrl?: string; - /** - * Publisher portal endpoint Url of the API Management service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly portalUrl?: string; - /** - * Management API endpoint URL of the API Management service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managementApiUrl?: string; - /** - * SCM endpoint URL of the API Management service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scmUrl?: string; - /** - * DEveloper Portal endpoint URL of the API Management service. - * NOTE: This property will not be serialized. It can only be populated by the server. + * DEveloper Portal endpoint URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly developerPortalUrl?: string; /** Custom hostname configuration of the API Management service. */ @@ -4108,12 +3672,19 @@ export interface ApiManagementServiceResource extends ApimResource { virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ additionalLocations?: AdditionalLocation[]; - /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

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

You can disable any of the following ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them.
Note: The following ciphers can't be disabled since they are required by internal platform components: TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 */ customProperties?: { [propertyName: string]: string }; /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ certificates?: CertificateConfiguration[]; /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ enableClientCertificate?: boolean; + /** Property can be used to enable NAT Gateway for this API Management service. */ + natGatewayState?: NatGatewayState; + /** + * Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly outboundPublicIPAddresses?: string[]; /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ disableGateway?: boolean; /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ @@ -4130,244 +3701,1083 @@ export interface ApiManagementServiceResource extends ApimResource { */ readonly platformVersion?: PlatformVersion; /** Publisher email. */ - publisherEmail: string; + publisherEmail?: string; /** Publisher name. */ - publisherName: string; + publisherName?: string; } -/** Parameter supplied to Update Api Management Service. */ -export interface ApiManagementServiceUpdateParameters extends ApimResource { - /** SKU properties of the API Management service. */ - sku?: ApiManagementServiceSkuProperties; - /** Managed service identity of the Api Management service. */ - identity?: ApiManagementServiceIdentity; - /** - * ETag of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly etag?: string; - /** A list of availability zones denoting where the resource needs to come from. */ - zones?: string[]; - /** Email address from which the notification will be sent. */ - notificationSenderEmail?: string; +/** User profile. */ +export interface UserContractProperties extends UserEntityBaseParameters { + /** First name. */ + firstName?: string; + /** Last name. */ + lastName?: string; + /** Email address. */ + email?: string; /** - * The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * */ - readonly provisioningState?: string; + registrationDate?: Date; /** - * The provisioning state of the API Management service, which is targeted by the long running operation started on the service. + * Collection of groups user is part of. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly targetProvisioningState?: string; + readonly groups?: GroupContractProperties[]; +} + +/** Parameters supplied to the Create User operation. */ +export interface UserCreateParameterProperties + extends UserEntityBaseParameters { + /** Email address. Must not be empty and must be unique within the service instance. */ + email: string; + /** First name. */ + firstName: string; + /** Last name. */ + lastName: string; + /** User Password. If no value is provided, a default password is generated. */ + password?: string; + /** Determines the type of application which send the create user request. Default is legacy portal. */ + appType?: AppType; + /** Determines the type of confirmation e-mail that will be sent to the newly created user. */ + confirmation?: Confirmation; +} + +/** Parameters supplied to the Update User operation. */ +export interface UserUpdateParametersProperties + extends UserEntityBaseParameters { + /** Email address. Must not be empty and must be unique within the service instance. */ + email?: string; + /** User Password. */ + password?: string; + /** First name. */ + firstName?: string; + /** Last name. */ + lastName?: string; +} + +/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ +export interface IdentityProviderContractProperties + extends IdentityProviderBaseParameters { + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret?: string; +} + +/** The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users. */ +export interface IdentityProviderCreateContractProperties + extends IdentityProviderBaseParameters { + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + clientSecret: string; +} + +/** Parameters supplied to the Update Identity Provider operation. */ +export interface IdentityProviderUpdateProperties + extends IdentityProviderBaseParameters { + /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ + clientId?: string; + /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. */ + clientSecret?: string; +} + +/** NamedValue Contract properties. */ +export interface NamedValueContractProperties + extends NamedValueEntityBaseParameters { + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractProperties; +} + +/** NamedValue Contract properties. */ +export interface NamedValueCreateContractProperties + extends NamedValueEntityBaseParameters { + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractCreateProperties; +} + +/** NamedValue Contract properties. */ +export interface NamedValueUpdateParameterProperties + extends NamedValueEntityBaseParameters { + /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ + displayName?: string; + /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. */ + value?: string; + /** KeyVault location details of the namedValue. */ + keyVault?: KeyVaultContractCreateProperties; +} + +/** 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; +} + +/** 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. */ + 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; + /** 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[]; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; + /** 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; /** - * Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * 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 createdAtUtc?: Date; + 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; /** - * Gateway URL of the API Management service. + * 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 gatewayUrl?: string; + 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; +} + +/** Association entity details. */ +export interface AssociationContract extends ProxyResource { + /** Provisioning state. */ + provisioningState?: "created"; +} + +/** Gateway certificate authority details. */ +export interface GatewayCertificateAuthorityContract extends ProxyResource { + /** Determines whether certificate authority is trusted. */ + isTrusted?: boolean; +} + +/** Contract details. */ +export interface GroupContract extends ProxyResource { + /** Group name. */ + displayName?: string; + /** Group description. Can contain HTML formatting tags. */ + description?: string; /** - * Gateway URL of the API Management service in the Default Region. + * 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 gatewayRegionalUrl?: string; + readonly builtIn?: boolean; + /** Group type. */ + typePropertiesType?: GroupType; + /** For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null. */ + externalId?: string; +} + +/** User details. */ +export interface UserContract extends 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[]; +} + +/** 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; +} + +/** 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; +} + +/** Logger details. */ +export interface LoggerContract extends ProxyResource { + /** Logger type. */ + loggerType?: LoggerType; + /** Logger description. */ + description?: string; /** - * Publisher portal endpoint Url of the API Management service. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The name and SendRule connection string of the event hub for azureEventHub logger. + * Instrumentation key for applicationInsights logger. */ - readonly portalUrl?: string; + credentials?: { [propertyName: string]: string }; + /** Whether records are buffered in the logger before publishing. Default is assumed to be true. */ + isBuffered?: boolean; + /** Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource). */ + resourceId?: string; +} + +/** NamedValue details. */ +export interface NamedValueContract extends 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; +} + +/** 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; +} + +/** Notification details. */ +export interface NotificationContract extends ProxyResource { + /** Title of the Notification. */ + title?: string; + /** Description of the Notification. */ + description?: string; + /** Recipient Parameter values. */ + recipients?: RecipientsContractProperties; +} + +/** Recipient User details. */ +export interface RecipientUserContract extends ProxyResource { + /** API Management UserId subscribed to notification. */ + userId?: string; +} + +/** Recipient Email details. */ +export interface RecipientEmailContract extends ProxyResource { + /** User Email subscribed to notification. */ + email?: 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; +} + +/** Policy description details. */ +export interface PolicyDescriptionContract extends ProxyResource { /** - * Management API endpoint URL of the API Management service. + * Policy description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managementApiUrl?: string; + readonly description?: string; /** - * SCM endpoint URL of the API Management service. + * Binary OR value of the Snippet scope. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scmUrl?: string; + 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; +} + +/** Portal Revision's contract details. */ +export interface PortalRevisionContract extends ProxyResource { + /** Portal revision description. */ + description?: string; /** - * DEveloper Portal endpoint URL of the API Management service. + * Portal revision publishing status details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly developerPortalUrl?: string; - /** Custom hostname configuration of the API Management service. */ - hostnameConfigurations?: HostnameConfiguration[]; + readonly statusDetails?: string; /** - * Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard, Premium and Isolated SKU. + * Status of the portal's revision. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicIPAddresses?: string[]; + readonly status?: PortalRevisionStatus; + /** Indicates if the portal's revision is public. */ + isCurrent?: boolean; /** - * Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. + * Portal's revision creation date and time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateIPAddresses?: string[]; - /** Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the region. Supported only for Developer and Premium SKU being deployed in Virtual Network. */ - publicIpAddressId?: string; - /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ - publicNetworkAccess?: PublicNetworkAccess; - /** Virtual network configuration of the API Management service. */ - virtualNetworkConfiguration?: VirtualNetworkConfiguration; - /** Additional datacenter locations of the API Management service. */ - additionalLocations?: AdditionalLocation[]; - /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them. Note: next ciphers can't be disabled since they are required by Azure CloudService internal components: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ - customProperties?: { [propertyName: string]: string }; - /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ - certificates?: CertificateConfiguration[]; - /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ - enableClientCertificate?: boolean; - /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ - disableGateway?: boolean; - /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ - virtualNetworkType?: VirtualNetworkType; - /** Control Plane Apis version constraint for the API Management service. */ - apiVersionConstraint?: ApiVersionConstraint; - /** Undelete Api Management Service if it was previously soft-deleted. If this flag is specified and set to True all other properties will be ignored. */ - restore?: boolean; - /** List of Private Endpoint Connections of this service. */ - privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; + readonly createdDateTime?: Date; /** - * Compute Platform Version running the service in this location. + * Last updated date and time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly platformVersion?: PlatformVersion; - /** Publisher email. */ - publisherEmail?: string; - /** Publisher name. */ - publisherName?: string; + readonly updatedDateTime?: Date; } -/** User profile. */ -export interface UserContractProperties extends UserEntityBaseParameters { - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; - /** Email address. */ - email?: 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; +} + +/** Sign-In settings for the Developer Portal. */ +export interface PortalSigninSettings extends ProxyResource { + /** Redirect Anonymous users to the Sign-In page. */ + enabled?: boolean; +} + +/** 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; +} + +/** 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; +} + +/** 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; /** - * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * 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. */ - registrationDate?: Date; + readonly createdDate?: Date; /** - * Collection of groups user is part of. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. + * */ - readonly groups?: GroupContractProperties[]; -} - -/** Parameters supplied to the Create User operation. */ -export interface UserCreateParameterProperties - extends UserEntityBaseParameters { - /** Email address. Must not be empty and must be unique within the service instance. */ - email: string; - /** First name. */ - firstName: string; - /** Last name. */ - lastName: string; - /** User Password. If no value is provided, a default password is generated. */ - password?: string; - /** Determines the type of application which send the create user request. Default is legacy portal. */ - appType?: AppType; - /** Determines the type of confirmation e-mail that will be sent to the newly created user. */ - confirmation?: Confirmation; -} - -/** Parameters supplied to the Update User operation. */ -export interface UserUpdateParametersProperties - extends UserEntityBaseParameters { - /** Email address. Must not be empty and must be unique within the service instance. */ - email?: string; - /** User Password. */ - password?: string; - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; + 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; } -/** 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; +/** 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 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; +/** Tenant Settings. */ +export interface TenantSettingsContract extends ProxyResource { + /** Tenant settings */ + settings?: { [propertyName: string]: 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; +/** 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; } -/** NamedValue Contract properties. */ -export interface NamedValueContractProperties - extends NamedValueEntityBaseParameters { - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ - displayName: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractProperties; +/** 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[]; } -/** 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; +/** 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; } -/** 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; +/** Markdown documentation details. */ +export interface DocumentationContract extends ProxyResource { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: 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. */ - format?: ContentFormat; - /** Criteria to limit import of WSDL to a subset of the document. */ - wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; +/** Long Running Git Resolver Results. */ +export interface ResolverResultContract extends ProxyResource { + /** Resolver result identifier. */ + idPropertiesId?: string; + /** Status of an async resolver. */ + status?: AsyncResolverStatus; /** - * 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. + * 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. + * */ - soapApiType?: SoapApiType; + 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 Api_getEntityTag operation. */ @@ -4526,6 +4936,48 @@ export interface TagUpdateHeaders { eTag?: 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; +} + +/** 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 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 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 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 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 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 ApiPolicy_getEntityTag operation. */ export interface ApiPolicyGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -4664,56 +5116,128 @@ export interface ApiTagDescriptionCreateOrUpdateHeaders { eTag?: string; } -/** Defines headers for ApiVersionSet_getEntityTag operation. */ -export interface ApiVersionSetGetEntityTagHeaders { +/** 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 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 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 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 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 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 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 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 AuthorizationServer_getEntityTag operation. */ +export interface AuthorizationServerGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for AuthorizationServer_get operation. */ +export interface AuthorizationServerGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for AuthorizationServer_createOrUpdate operation. */ +export interface AuthorizationServerCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for AuthorizationServer_update operation. */ +export interface AuthorizationServerUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for AuthorizationServer_listSecrets operation. */ +export interface AuthorizationServerListSecretsHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for ApiVersionSet_get operation. */ -export interface ApiVersionSetGetHeaders { +/** 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 ApiVersionSet_createOrUpdate operation. */ -export interface ApiVersionSetCreateOrUpdateHeaders { +/** 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 ApiVersionSet_update operation. */ -export interface ApiVersionSetUpdateHeaders { +/** 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 AuthorizationServer_getEntityTag operation. */ -export interface AuthorizationServerGetEntityTagHeaders { +/** 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 AuthorizationServer_get operation. */ -export interface AuthorizationServerGetHeaders { +/** 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 AuthorizationServer_createOrUpdate operation. */ -export interface AuthorizationServerCreateOrUpdateHeaders { +/** 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 AuthorizationServer_update operation. */ -export interface AuthorizationServerUpdateHeaders { +/** 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 AuthorizationServer_listSecrets operation. */ -export interface AuthorizationServerListSecretsHeaders { +/** 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; } @@ -4820,6 +5344,31 @@ export interface ContentItemCreateOrUpdateHeaders { 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 { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5102,6 +5651,36 @@ export interface PolicyCreateOrUpdateHeaders { eTag?: string; } +/** 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 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; +} + +/** Defines headers for PolicyFragment_createOrUpdate operation. */ +export interface PolicyFragmentCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: string; +} + +/** Defines headers for PortalConfig_getEntityTag operation. */ +export interface PortalConfigGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for PortalConfig_get operation. */ +export interface PortalConfigGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for PortalRevision_getEntityTag operation. */ export interface PortalRevisionGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5204,6 +5783,42 @@ export interface ProductPolicyCreateOrUpdateHeaders { eTag?: string; } +/** 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 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; +} + +/** 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 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; +} + +/** 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 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; +} + /** 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. */ @@ -5318,6 +5933,30 @@ export interface UserSubscriptionGetHeaders { eTag?: string; } +/** Defines headers for Documentation_getEntityTag operation. */ +export interface DocumentationGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_get operation. */ +export interface DocumentationGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_createOrUpdate operation. */ +export interface DocumentationCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_update operation. */ +export interface DocumentationUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Known values of {@link Protocol} that the service accepts. */ export enum KnownProtocol { /** Http */ @@ -5342,26 +5981,26 @@ export enum KnownProtocol { */ export type Protocol = string; -/** Known values of {@link ApiVersionSetContractDetailsVersioningScheme} that the service accepts. */ -export enum KnownApiVersionSetContractDetailsVersioningScheme { - /** Segment */ +/** Known values of {@link VersioningScheme} that the service accepts. */ +export enum KnownVersioningScheme { + /** The API Version is passed in a path segment. */ Segment = "Segment", - /** Query */ + /** The API Version is passed in a query parameter. */ Query = "Query", - /** Header */ + /** The API Version is passed in a HTTP header. */ Header = "Header" } /** - * Defines values for ApiVersionSetContractDetailsVersioningScheme. \ - * {@link KnownApiVersionSetContractDetailsVersioningScheme} can be used interchangeably with ApiVersionSetContractDetailsVersioningScheme, + * 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** \ - * **Query** \ - * **Header** + * **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; +export type VersioningScheme = string; /** Known values of {@link BearerTokenSendingMethods} that the service accepts. */ export enum KnownBearerTokenSendingMethods { @@ -5415,7 +6054,7 @@ export enum KnownContentFormat { 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. */ + /** 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", @@ -5474,15 +6113,33 @@ export enum KnownSoapApiType { */ 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. */ + /** 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. */ + /** The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ RawxmlLink = "rawxml-link" } @@ -5492,9 +6149,9 @@ export enum KnownPolicyContentFormat { * 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. \ + * **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. + * **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; @@ -5583,9 +6240,9 @@ export type DataMaskingMode = string; 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. */ + /** 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. */ + /** Inject Trace Context headers. See https:\//w3c.github.io\/trace-context. */ W3C = "W3C" } @@ -5732,36 +6389,15 @@ export enum KnownExportResultFormat { */ 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 GrantType} that the service accepts. */ export enum KnownGrantType { - /** Authorization Code Grant flow as described https://tools.ietf.org/html/rfc6749#section-4.1. */ + /** 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 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. */ + /** 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. */ + /** Client Credentials Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.4. */ ClientCredentials = "clientCredentials" } @@ -5813,6 +6449,39 @@ export enum KnownBearerTokenSendingMethod { */ export type BearerTokenSendingMethod = 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 BackendProtocol} that the service accepts. */ export enum KnownBackendProtocol { /** The Backend is a RESTful service. */ @@ -6149,6 +6818,24 @@ export enum KnownPublicNetworkAccess { */ export type PublicNetworkAccess = string; +/** Known values of {@link NatGatewayState} that the service accepts. */ +export enum KnownNatGatewayState { + /** Nat Gateway is enabled for the service. */ + Enabled = "Enabled", + /** Nat Gateway is disabled for the service. */ + Disabled = "Disabled" +} + +/** + * Defines values for NatGatewayState. \ + * {@link KnownNatGatewayState} can be used interchangeably with NatGatewayState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Nat Gateway is enabled for the service. \ + * **Disabled**: Nat Gateway is disabled for the service. + */ +export type NatGatewayState = string; + /** Known values of {@link PlatformVersion} that the service accepts. */ export enum KnownPlatformVersion { /** Platform version cannot be determined, as compute platform is not deployed. */ @@ -6464,6 +7151,45 @@ export enum KnownNotificationName { */ export type NotificationName = string; +/** Known values of {@link PolicyFragmentContentFormat} that the service accepts. */ +export enum KnownPolicyFragmentContentFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml" +} + +/** + * Defines values for PolicyFragmentContentFormat. \ + * {@link KnownPolicyFragmentContentFormat} can be used interchangeably with PolicyFragmentContentFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: The contents are inline and Content type is an XML document. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. + */ +export type PolicyFragmentContentFormat = string; + +/** Known values of {@link PortalSettingsCspMode} that the service accepts. */ +export enum KnownPortalSettingsCspMode { + /** The browser will block requests not matching allowed origins. */ + Enabled = "enabled", + /** The browser will not apply the origin restrictions. */ + Disabled = "disabled", + /** The browser will report requests not matching allowed origins without blocking them. */ + ReportOnly = "reportOnly" +} + +/** + * Defines values for PortalSettingsCspMode. \ + * {@link KnownPortalSettingsCspMode} can be used interchangeably with PortalSettingsCspMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled**: The browser will block requests not matching allowed origins. \ + * **disabled**: The browser will not apply the origin restrictions. \ + * **reportOnly**: The browser will report requests not matching allowed origins without blocking them. + */ +export type PortalSettingsCspMode = string; + /** Known values of {@link PortalRevisionStatus} that the service accepts. */ export enum KnownPortalRevisionStatus { /** Portal's revision has been queued. */ @@ -6514,7 +7240,7 @@ export type PrivateEndpointConnectionProvisioningState = string; /** Known values of {@link SchemaType} that the service accepts. */ export enum KnownSchemaType { - /** Xml schema type. */ + /** XML schema type. */ Xml = "xml", /** Json schema type. */ Json = "json" @@ -6525,7 +7251,7 @@ export enum KnownSchemaType { * {@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. \ + * **xml**: XML schema type. \ * **json**: Json schema type. */ export type SchemaType = string; @@ -6660,6 +7386,12 @@ export type AsyncOperationStatus = | "InProgress" | "Succeeded" | "Failed"; +/** Defines values for AsyncResolverStatus. */ +export type AsyncResolverStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; /** Optional parameters. */ export interface ApiListByServiceOptionalParams @@ -7046,80 +7778,186 @@ export interface TagDetachFromProductOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagListByServiceOptionalParams +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 |
*/ + /** | 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; - /** Scope like 'apis', 'products' or 'apis/{apiId} */ - scope?: string; } -/** Contains response data for the listByService operation. */ -export type TagListByServiceResponse = TagCollection; +/** Contains response data for the listByApi operation. */ +export type GraphQLApiResolverListByApiResponse = ResolverCollection; /** Optional parameters. */ -export interface TagGetEntityStateOptionalParams +export interface GraphQLApiResolverGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityState operation. */ -export type TagGetEntityStateResponse = TagGetEntityStateHeaders; +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetOptionalParams extends coreClient.OperationOptions {} +export interface GraphQLApiResolverGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TagGetResponse = TagGetHeaders & TagContract; +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & + ResolverContract; /** Optional parameters. */ -export interface TagCreateOrUpdateOptionalParams +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 TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; +export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & + ResolverContract; /** Optional parameters. */ -export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} +export interface GraphQLApiResolverUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type TagUpdateResponse = TagUpdateHeaders & TagContract; +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & + ResolverContract; /** Optional parameters. */ -export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} +export interface GraphQLApiResolverDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagListByOperationNextOptionalParams +export interface GraphQLApiResolverListByApiNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByOperationNext operation. */ -export type TagListByOperationNextResponse = TagCollection; +/** Contains response data for the listByApiNext operation. */ +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; /** Optional parameters. */ -export interface TagListByApiNextOptionalParams +export interface GraphQLApiResolverPolicyListByResolverOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type TagListByApiNextResponse = TagCollection; +/** Contains response data for the listByResolver operation. */ +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; /** Optional parameters. */ -export interface TagListByProductNextOptionalParams +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type TagListByProductNextResponse = TagCollection; +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface TagListByServiceNextOptionalParams +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 {} -/** Contains response data for the listByServiceNext operation. */ -export type TagListByServiceNextResponse = TagCollection; +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolverNext operation. */ +export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; /** Optional parameters. */ export interface ApiProductListByApisOptionalParams @@ -7520,31 +8358,257 @@ export interface OperationListByTagsOptionalParams top?: number; /** Number of records to skip. */ skip?: number; - /** Include not tagged Operations. */ - includeNotTaggedOperations?: boolean; + /** 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 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 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 listByTags operation. */ -export type OperationListByTagsResponse = TagResourceCollection; +/** Contains response data for the listByService operation. */ +export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; /** Optional parameters. */ -export interface OperationListByTagsNextOptionalParams +export interface AuthorizationProviderGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type OperationListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the get operation. */ +export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & + AuthorizationProviderContract; /** Optional parameters. */ -export interface ApiExportGetOptionalParams +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 {} -/** Contains response data for the get operation. */ -export type ApiExportGetResponse = ApiExportResult; +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; /** Optional parameters. */ -export interface ApiVersionSetListByServiceOptionalParams +export interface AuthorizationListByAuthorizationProviderOptionalParams 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 |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7552,56 +8616,56 @@ export interface ApiVersionSetListByServiceOptionalParams 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; +/** Contains response data for the listByAuthorizationProvider operation. */ +export type AuthorizationListByAuthorizationProviderResponse = AuthorizationCollection; /** Optional parameters. */ -export interface ApiVersionSetGetOptionalParams +export interface AuthorizationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & - ApiVersionSetContract; +export type AuthorizationGetResponse = AuthorizationGetHeaders & + AuthorizationContract; /** Optional parameters. */ -export interface ApiVersionSetCreateOrUpdateOptionalParams +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 ApiVersionSetCreateOrUpdateResponse = ApiVersionSetCreateOrUpdateHeaders & - ApiVersionSetContract; +export type AuthorizationCreateOrUpdateResponse = AuthorizationCreateOrUpdateHeaders & + AuthorizationContract; /** Optional parameters. */ -export interface ApiVersionSetUpdateOptionalParams +export interface AuthorizationDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & - ApiVersionSetContract; +/** Optional parameters. */ +export interface AuthorizationConfirmConsentCodeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the confirmConsentCode operation. */ +export type AuthorizationConfirmConsentCodeResponse = AuthorizationConfirmConsentCodeHeaders; /** Optional parameters. */ -export interface ApiVersionSetDeleteOptionalParams +export interface AuthorizationListByAuthorizationProviderNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByAuthorizationProviderNext operation. */ +export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; + /** Optional parameters. */ -export interface ApiVersionSetListByServiceNextOptionalParams +export interface AuthorizationLoginLinksPostOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; +/** Contains response data for the post operation. */ +export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & + AuthorizationLoginResponseContract; /** Optional parameters. */ -export interface AuthorizationServerListByServiceOptionalParams +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; @@ -7611,61 +8675,38 @@ export interface AuthorizationServerListByServiceOptionalParams 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; +/** Contains response data for the listByAuthorization operation. */ +export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; /** Optional parameters. */ -export interface AuthorizationServerGetOptionalParams +export interface AuthorizationAccessPolicyGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & - AuthorizationServerContract; +export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & + AuthorizationAccessPolicyContract; /** Optional parameters. */ -export interface AuthorizationServerCreateOrUpdateOptionalParams +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 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 {} +export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & + AuthorizationAccessPolicyContract; /** Optional parameters. */ -export interface AuthorizationServerListSecretsOptionalParams +export interface AuthorizationAccessPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & - AuthorizationServerSecretsContract; - /** Optional parameters. */ -export interface AuthorizationServerListByServiceNextOptionalParams +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; +/** Contains response data for the listByAuthorizationNext operation. */ +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; /** Optional parameters. */ export interface BackendListByServiceOptionalParams @@ -8060,6 +9101,18 @@ export interface ApiManagementServiceDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface ApiManagementServiceMigrateToStv2OptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the migrateToStv2 operation. */ +export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; + /** Optional parameters. */ export interface ApiManagementServiceListByResourceGroupOptionalParams extends coreClient.OperationOptions {} @@ -9014,6 +10067,107 @@ export interface PolicyDescriptionListByServiceOptionalParams /** 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 PolicyFragmentListByServiceResponse = PolicyFragmentCollection; + +/** Optional parameters. */ +export interface PolicyFragmentGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface PolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} + +/** Contains response data for the get operation. */ +export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & + PolicyFragmentContract; + +/** Optional parameters. */ +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 PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & + PolicyFragmentContract; + +/** Optional parameters. */ +export interface PolicyFragmentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PolicyFragmentListReferencesOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listReferences operation. */ +export type PolicyFragmentListReferencesResponse = ResourceCollection; + +/** Optional parameters. */ +export interface PortalConfigListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type PortalConfigListByServiceResponse = PortalConfigCollection; + +/** Optional parameters. */ +export interface PortalConfigGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; + +/** Optional parameters. */ +export interface PortalConfigGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PortalConfigGetResponse = PortalConfigGetHeaders & + PortalConfigContract; + +/** Optional parameters. */ +export interface PortalConfigUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type PortalConfigUpdateResponse = PortalConfigContract; + +/** Optional parameters. */ +export interface PortalConfigCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; + /** Optional parameters. */ export interface PortalRevisionListByServiceOptionalParams extends coreClient.OperationOptions { @@ -9462,6 +10616,64 @@ export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHea export interface ProductPolicyDeleteOptionalParams extends coreClient.OperationOptions {} +/** Optional parameters. */ +export interface ProductWikiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ProductWikiGetOptionalParams + 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; + +/** Optional parameters. */ +export interface ProductWikiUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; + +/** Optional parameters. */ +export interface ProductWikiDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ProductWikisListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; + +/** Optional parameters. */ +export interface ProductWikisListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ProductWikisListNextResponse = ProductWikisListNextHeaders & + WikiCollection; + /** Optional parameters. */ export interface QuotaByCounterKeysListByServiceOptionalParams extends coreClient.OperationOptions {} @@ -10133,6 +11345,65 @@ export interface UserConfirmationPasswordSendOptionalParams appType?: AppType; } +/** 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; +} + +/** Contains response data for the listByService operation. */ +export type DocumentationListByServiceResponse = DocumentationCollection; + +/** Optional parameters. */ +export interface DocumentationGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; + +/** 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; +} + +/** Contains response data for the createOrUpdate operation. */ +export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & + DocumentationContract; + +/** 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 ApiManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts index c52a89b3a64d..8234e98b768a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts @@ -254,6 +254,34 @@ export const AuthenticationSettingsContract: coreClient.CompositeMapper = { name: "Composite", className: "OpenIdAuthenticationSettingsContract" } + }, + oAuth2AuthenticationSettings: { + serializedName: "oAuth2AuthenticationSettings", + xmlName: "oAuth2AuthenticationSettings", + xmlElementName: "OAuth2AuthenticationSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OAuth2AuthenticationSettingsContract" + } + } + } + }, + openidAuthenticationSettings: { + serializedName: "openidAuthenticationSettings", + xmlName: "openidAuthenticationSettings", + xmlElementName: "OpenIdAuthenticationSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenIdAuthenticationSettingsContract" + } + } + } } } } @@ -749,6 +777,13 @@ export const ApiCreateOrUpdateParameter: coreClient.CompositeMapper = { type: { name: "String" } + }, + translateRequiredQueryParametersConduct: { + serializedName: "properties.translateRequiredQueryParameters", + xmlName: "properties.translateRequiredQueryParameters", + type: { + name: "String" + } } } } @@ -1678,6 +1713,88 @@ export const TagCollection: coreClient.CompositeMapper = { } }; +export const ResolverCollection: coreClient.CompositeMapper = { + serializedName: "ResolverCollection", + type: { + name: "Composite", + className: "ResolverCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "ResolverContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResolverContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResolverUpdateContract: coreClient.CompositeMapper = { + serializedName: "ResolverUpdateContract", + type: { + name: "Composite", + className: "ResolverUpdateContract", + modelProperties: { + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + path: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.path", + xmlName: "properties.path", + type: { + name: "String" + } + }, + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + } + } + } +}; + export const ProductCollection: coreClient.CompositeMapper = { serializedName: "ProductCollection", type: { @@ -2515,6 +2632,80 @@ export const OperationTagResourceContractProperties: coreClient.CompositeMapper } }; +export const WikiDocumentationContract: coreClient.CompositeMapper = { + serializedName: "WikiDocumentationContract", + type: { + name: "Composite", + className: "WikiDocumentationContract", + modelProperties: { + documentationId: { + serializedName: "documentationId", + xmlName: "documentationId", + type: { + name: "String" + } + } + } + } +}; + +export const WikiUpdateContract: coreClient.CompositeMapper = { + serializedName: "WikiUpdateContract", + type: { + name: "Composite", + className: "WikiUpdateContract", + modelProperties: { + documents: { + serializedName: "properties.documents", + xmlName: "properties.documents", + xmlElementName: "WikiDocumentationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiDocumentationContract" + } + } + } + } + } + } +}; + +export const WikiCollection: coreClient.CompositeMapper = { + serializedName: "WikiCollection", + type: { + name: "Composite", + className: "WikiCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "WikiContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ApiExportResult: coreClient.CompositeMapper = { serializedName: "ApiExportResult", type: { @@ -2908,33 +3099,26 @@ export const AuthorizationServerSecretsContract: coreClient.CompositeMapper = { } }; -export const BackendCollection: coreClient.CompositeMapper = { - serializedName: "BackendCollection", +export const AuthorizationProviderCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderCollection", type: { name: "Composite", - className: "BackendCollection", + className: "AuthorizationProviderCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "BackendContract", + xmlElementName: "AuthorizationProviderContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "BackendContract" + className: "AuthorizationProviderContract" } } } }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } - }, nextLink: { serializedName: "nextLink", xmlName: "nextLink", @@ -2946,88 +3130,328 @@ export const BackendCollection: coreClient.CompositeMapper = { } }; -export const BackendBaseParameters: coreClient.CompositeMapper = { - serializedName: "BackendBaseParameters", +export const AuthorizationProviderOAuth2Settings: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderOAuth2Settings", type: { name: "Composite", - className: "BackendBaseParameters", + className: "AuthorizationProviderOAuth2Settings", modelProperties: { - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "title", - xmlName: "title", + redirectUrl: { + serializedName: "redirectUrl", + xmlName: "redirectUrl", type: { name: "String" } }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "description", - xmlName: "description", + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", type: { - name: "String" + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes" } - }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "resourceId", - xmlName: "resourceId", + } + } + } +}; + +export const AuthorizationProviderOAuth2GrantTypes: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderOAuth2GrantTypes", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes", + modelProperties: { + authorizationCode: { + serializedName: "authorizationCode", + xmlName: "authorizationCode", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - properties: { - serializedName: "properties", - xmlName: "properties", + clientCredentials: { + serializedName: "clientCredentials", + xmlName: "clientCredentials", type: { - name: "Composite", - className: "BackendProperties" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - credentials: { - serializedName: "credentials", - xmlName: "credentials", + } + } + } +}; + +export const AuthorizationCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationCollection", + type: { + name: "Composite", + className: "AuthorizationCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationContract", type: { - name: "Composite", - className: "BackendCredentialsContract" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationContract" + } + } } }, - proxy: { - serializedName: "proxy", - xmlName: "proxy", + count: { + serializedName: "count", + xmlName: "count", type: { - name: "Composite", - className: "BackendProxyContract" + name: "Number" } }, - tls: { - serializedName: "tls", - xmlName: "tls", + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", type: { - name: "Composite", - className: "BackendTlsProperties" + name: "String" } } } } }; -export const BackendProperties: coreClient.CompositeMapper = { - serializedName: "BackendProperties", +export const AuthorizationError: coreClient.CompositeMapper = { + serializedName: "AuthorizationError", type: { name: "Composite", - className: "BackendProperties", + className: "AuthorizationError", modelProperties: { - serviceFabricCluster: { + code: { + serializedName: "code", + xmlName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + xmlName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginRequestContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginRequestContract", + type: { + name: "Composite", + className: "AuthorizationLoginRequestContract", + modelProperties: { + postLoginRedirectUrl: { + serializedName: "postLoginRedirectUrl", + xmlName: "postLoginRedirectUrl", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginResponseContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginResponseContract", + type: { + name: "Composite", + className: "AuthorizationLoginResponseContract", + modelProperties: { + loginLink: { + serializedName: "loginLink", + xmlName: "loginLink", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationConfirmConsentCodeRequestContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationConfirmConsentCodeRequestContract", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeRequestContract", + modelProperties: { + consentCode: { + serializedName: "consentCode", + xmlName: "consentCode", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationAccessPolicyCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyCollection", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationAccessPolicyContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationAccessPolicyContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const BackendCollection: coreClient.CompositeMapper = { + serializedName: "BackendCollection", + type: { + name: "Composite", + className: "BackendCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "BackendContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const BackendBaseParameters: coreClient.CompositeMapper = { + serializedName: "BackendBaseParameters", + type: { + name: "Composite", + className: "BackendBaseParameters", + 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" + } + }, + resourceId: { + 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", + type: { + name: "Composite", + className: "BackendCredentialsContract" + } + }, + proxy: { + serializedName: "proxy", + xmlName: "proxy", + type: { + name: "Composite", + className: "BackendProxyContract" + } + }, + tls: { + serializedName: "tls", + xmlName: "tls", + type: { + name: "Composite", + className: "BackendTlsProperties" + } + } + } + } +}; + +export const BackendProperties: coreClient.CompositeMapper = { + serializedName: "BackendProperties", + type: { + name: "Composite", + className: "BackendProperties", + modelProperties: { + serviceFabricCluster: { serializedName: "serviceFabricCluster", xmlName: "serviceFabricCluster", type: { @@ -4578,6 +5002,28 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { name: "Boolean" } }, + natGatewayState: { + serializedName: "natGatewayState", + xmlName: "natGatewayState", + type: { + name: "String" + } + }, + outboundPublicIPAddresses: { + serializedName: "outboundPublicIPAddresses", + readOnly: true, + xmlName: "outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, disableGateway: { defaultValue: false, serializedName: "disableGateway", @@ -4886,6 +5332,27 @@ export const AdditionalLocation: coreClient.CompositeMapper = { name: "String" } }, + natGatewayState: { + serializedName: "natGatewayState", + xmlName: "natGatewayState", + type: { + name: "String" + } + }, + outboundPublicIPAddresses: { + serializedName: "outboundPublicIPAddresses", + readOnly: true, + xmlName: "outboundPublicIPAddresses", + xmlElementName: "AdditionalLocationOutboundPublicIPAddressesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, disableGateway: { defaultValue: false, serializedName: "disableGateway", @@ -6192,6 +6659,16 @@ export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { type: { name: "String" } + }, + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "clientLibrary", + xmlName: "clientLibrary", + type: { + name: "String" + } } } } @@ -6280,6 +6757,16 @@ export const IdentityProviderUpdateParameters: coreClient.CompositeMapper = { name: "String" } }, + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", + type: { + name: "String" + } + }, clientId: { constraints: { MinLength: 1 @@ -6916,6 +7403,20 @@ export const OpenidConnectProviderUpdateContract: coreClient.CompositeMapper = { type: { name: "String" } + }, + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean" + } + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean" + } } } } @@ -7071,11 +7572,287 @@ export const PolicyDescriptionCollection: coreClient.CompositeMapper = { } }; -export const PortalRevisionCollection: coreClient.CompositeMapper = { - serializedName: "PortalRevisionCollection", +export const PolicyFragmentCollection: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentCollection", type: { name: "Composite", - className: "PortalRevisionCollection", + className: "PolicyFragmentCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PolicyFragmentContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyFragmentContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceCollection: coreClient.CompositeMapper = { + serializedName: "ResourceCollection", + type: { + name: "Composite", + className: "ResourceCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ResourceCollectionValueItem", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceCollectionValueItem" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigCollection: coreClient.CompositeMapper = { + serializedName: "PortalConfigCollection", + type: { + name: "Composite", + className: "PortalConfigCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PortalConfigContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PortalConfigContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigPropertiesSignin: coreClient.CompositeMapper = { + serializedName: "PortalConfigPropertiesSignin", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignin", + modelProperties: { + require: { + defaultValue: false, + serializedName: "require", + xmlName: "require", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PortalConfigPropertiesSignup: coreClient.CompositeMapper = { + serializedName: "PortalConfigPropertiesSignup", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignup", + modelProperties: { + termsOfService: { + serializedName: "termsOfService", + xmlName: "termsOfService", + type: { + name: "Composite", + className: "PortalConfigTermsOfServiceProperties" + } + } + } + } +}; + +export const PortalConfigTermsOfServiceProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigTermsOfServiceProperties", + type: { + name: "Composite", + className: "PortalConfigTermsOfServiceProperties", + modelProperties: { + text: { + serializedName: "text", + xmlName: "text", + type: { + name: "String" + } + }, + requireConsent: { + defaultValue: false, + serializedName: "requireConsent", + xmlName: "requireConsent", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PortalConfigDelegationProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigDelegationProperties", + type: { + name: "Composite", + className: "PortalConfigDelegationProperties", + modelProperties: { + delegateRegistration: { + defaultValue: false, + serializedName: "delegateRegistration", + xmlName: "delegateRegistration", + type: { + name: "Boolean" + } + }, + delegateSubscription: { + defaultValue: false, + serializedName: "delegateSubscription", + xmlName: "delegateSubscription", + type: { + name: "Boolean" + } + }, + delegationUrl: { + serializedName: "delegationUrl", + xmlName: "delegationUrl", + type: { + name: "String" + } + }, + validationKey: { + serializedName: "validationKey", + xmlName: "validationKey", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigCorsProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigCorsProperties", + type: { + name: "Composite", + className: "PortalConfigCorsProperties", + modelProperties: { + allowedOrigins: { + serializedName: "allowedOrigins", + xmlName: "allowedOrigins", + xmlElementName: "PortalConfigCorsPropertiesAllowedOriginsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PortalConfigCspProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigCspProperties", + type: { + name: "Composite", + className: "PortalConfigCspProperties", + modelProperties: { + mode: { + defaultValue: "disabled", + serializedName: "mode", + xmlName: "mode", + type: { + name: "String" + } + }, + reportUri: { + serializedName: "reportUri", + xmlName: "reportUri", + xmlElementName: "PortalConfigCspPropertiesReportUriItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + allowedSources: { + serializedName: "allowedSources", + xmlName: "allowedSources", + xmlElementName: "PortalConfigCspPropertiesAllowedSourcesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PortalRevisionCollection: coreClient.CompositeMapper = { + serializedName: "PortalRevisionCollection", + type: { + name: "Composite", + className: "PortalRevisionCollection", modelProperties: { value: { serializedName: "value", @@ -9290,25 +10067,82 @@ export const UserTokenResult: coreClient.CompositeMapper = { } }; -export const ApiRevisionInfoContract: coreClient.CompositeMapper = { - serializedName: "ApiRevisionInfoContract", +export const DocumentationCollection: coreClient.CompositeMapper = { + serializedName: "DocumentationCollection", type: { name: "Composite", - className: "ApiRevisionInfoContract", + className: "DocumentationCollection", modelProperties: { - sourceApiId: { - serializedName: "sourceApiId", - xmlName: "sourceApiId", + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "DocumentationContract", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DocumentationContract" + } + } } }, - apiVersionName: { - constraints: { - MaxLength: 100 - }, - serializedName: "apiVersionName", - xmlName: "apiVersionName", + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationUpdateContract: coreClient.CompositeMapper = { + serializedName: "DocumentationUpdateContract", + type: { + name: "Composite", + className: "DocumentationUpdateContract", + modelProperties: { + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", + type: { + name: "String" + } + } + } + } +}; + +export const 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" } @@ -9359,6 +10193,37 @@ export const QuotaCounterValueContract: coreClient.CompositeMapper = { } }; +export const ResolverResultLogItemContract: coreClient.CompositeMapper = { + serializedName: "ResolverResultLogItemContract", + type: { + name: "Composite", + className: "ResolverResultLogItemContract", + modelProperties: { + objectType: { + serializedName: "objectType", + xmlName: "objectType", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + xmlName: "action", + type: { + name: "String" + } + }, + objectKey: { + serializedName: "objectKey", + xmlName: "objectKey", + type: { + name: "String" + } + } + } + } +}; + export const ApiContractProperties: coreClient.CompositeMapper = { serializedName: "ApiContractProperties", type: { @@ -9549,232 +10414,248 @@ export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { } }; -export const ApiContract: coreClient.CompositeMapper = { - serializedName: "ApiContract", +export const ProxyResource: coreClient.CompositeMapper = { + serializedName: "ProxyResource", type: { name: "Composite", - className: "ApiContract", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", modelProperties: { ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + privateEndpoint: { + serializedName: "properties.privateEndpoint", + xmlName: "properties.privateEndpoint", type: { - name: "String" + name: "Composite", + className: "PrivateEndpoint" } }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + xmlName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "AuthenticationSettingsContract" + className: "PrivateLinkServiceConnectionState" } }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" + name: "String" } - }, - apiType: { - serializedName: "properties.type", - xmlName: "properties.type", + } + } + } +}; + +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" } }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, + xmlName: "properties.requiredMembers", + xmlElementName: "PrivateLinkResourcePropertiesRequiredMembersItem", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - apiVersion: { + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + xmlName: "properties.requiredZoneNames", + xmlElementName: "PrivateLinkResourcePropertiesRequiredZoneNamesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const OperationContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationContractProperties", + type: { + name: "Composite", + className: "OperationContractProperties", + modelProperties: { + ...OperationEntityBaseContract.type.modelProperties, + displayName: { constraints: { - MaxLength: 100 + MaxLength: 300, + MinLength: 1 }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", - type: { - name: "Boolean" - } - }, - isOnline: { - serializedName: "properties.isOnline", - readOnly: true, - xmlName: "properties.isOnline", + method: { + serializedName: "method", + required: true, + xmlName: "method", type: { - name: "Boolean" + name: "String" } }, - apiRevisionDescription: { + urlTemplate: { constraints: { - MaxLength: 256 + MaxLength: 1000, + MinLength: 1 }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", + serializedName: "urlTemplate", + required: true, + xmlName: "urlTemplate", type: { name: "String" } - }, - apiVersionDescription: { + } + } + } +}; + +export const OperationUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationUpdateContractProperties", + type: { + name: "Composite", + className: "OperationUpdateContractProperties", + modelProperties: { + ...OperationEntityBaseContract.type.modelProperties, + displayName: { constraints: { - MaxLength: 256 + MaxLength: 300, + MinLength: 1 }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", - xmlName: "properties.apiVersionSetId", + method: { + serializedName: "method", + xmlName: "method", type: { name: "String" } }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", - type: { - name: "Boolean" - } - }, - termsOfServiceUrl: { - serializedName: "properties.termsOfServiceUrl", - xmlName: "properties.termsOfServiceUrl", + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "urlTemplate", + xmlName: "urlTemplate", type: { name: "String" } - }, - contact: { - serializedName: "properties.contact", - xmlName: "properties.contact", - type: { - name: "Composite", - className: "ApiContactInformation" - } - }, - license: { - serializedName: "properties.license", - xmlName: "properties.license", - type: { - name: "Composite", - className: "ApiLicenseInformation" - } - }, - sourceApiId: { - serializedName: "properties.sourceApiId", - xmlName: "properties.sourceApiId", - type: { - name: "String" - } - }, + } + } + } +}; + +export const ProductContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductContractProperties", + type: { + name: "Composite", + className: "ProductContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, displayName: { constraints: { MaxLength: 300, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } - }, - serviceUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", + } + } + } +}; + +export const ProductTagResourceContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductTagResourceContractProperties", + type: { + name: "Composite", + className: "ProductTagResourceContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", type: { name: "String" } }, - path: { + name: { constraints: { - MaxLength: 400 + MaxLength: 300, + MinLength: 1 }, - serializedName: "properties.path", - xmlName: "properties.path", + serializedName: "name", + required: true, + xmlName: "name", type: { name: "String" } - }, - protocols: { - serializedName: "properties.protocols", - xmlName: "properties.protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", - xmlName: "properties.apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } } } } }; -export const ApiReleaseContract: coreClient.CompositeMapper = { - serializedName: "ApiReleaseContract", +export const ProductUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ProductUpdateProperties", type: { name: "Composite", - className: "ApiReleaseContract", + className: "ProductUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", - type: { - name: "String" - } - }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", - type: { - name: "DateTime" - } - }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", - type: { - name: "DateTime" - } - }, - notes: { - serializedName: "properties.notes", - xmlName: "properties.notes", + ...ProductEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } @@ -9783,91 +10664,65 @@ export const ApiReleaseContract: coreClient.CompositeMapper = { } }; -export const OperationContract: coreClient.CompositeMapper = { - serializedName: "OperationContract", +export const IssueContractProperties: coreClient.CompositeMapper = { + serializedName: "IssueContractProperties", type: { name: "Composite", - className: "OperationContract", + className: "IssueContractProperties", modelProperties: { - ...Resource.type.modelProperties, - templateParameters: { - serializedName: "properties.templateParameters", - xmlName: "properties.templateParameters", - xmlElementName: "ParameterContract", + ...IssueContractBaseProperties.type.modelProperties, + title: { + serializedName: "title", + required: true, + xmlName: "title", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ParameterContract" - } - } + name: "String" } }, description: { - constraints: { - MaxLength: 1000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "description", + required: true, + xmlName: "description", type: { name: "String" } }, - request: { - serializedName: "properties.request", - xmlName: "properties.request", - type: { - name: "Composite", - className: "RequestContract" - } - }, - responses: { - serializedName: "properties.responses", - xmlName: "properties.responses", - xmlElementName: "ResponseContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResponseContract" - } - } - } - }, - policies: { - serializedName: "properties.policies", - xmlName: "properties.policies", + userId: { + serializedName: "userId", + required: true, + xmlName: "userId", type: { name: "String" } - }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + } + } + } +}; + +export const IssueUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "IssueUpdateContractProperties", + type: { + name: "Composite", + className: "IssueUpdateContractProperties", + modelProperties: { + ...IssueContractBaseProperties.type.modelProperties, + title: { + serializedName: "title", + xmlName: "title", type: { name: "String" } }, - method: { - serializedName: "properties.method", - xmlName: "properties.method", + description: { + serializedName: "description", + xmlName: "description", type: { name: "String" } }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "properties.urlTemplate", - xmlName: "properties.urlTemplate", + userId: { + serializedName: "userId", + xmlName: "userId", type: { name: "String" } @@ -9876,24 +10731,27 @@ export const OperationContract: coreClient.CompositeMapper = { } }; -export const PolicyContract: coreClient.CompositeMapper = { - serializedName: "PolicyContract", +export const TagDescriptionContractProperties: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContractProperties", type: { name: "Composite", - className: "PolicyContract", + className: "TagDescriptionContractProperties", modelProperties: { - ...Resource.type.modelProperties, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + ...TagDescriptionBaseProperties.type.modelProperties, + tagId: { + serializedName: "tagId", + xmlName: "tagId", type: { name: "String" } }, - format: { - defaultValue: "xml", - serializedName: "properties.format", - xmlName: "properties.format", + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } @@ -9902,20 +10760,29 @@ export const PolicyContract: coreClient.CompositeMapper = { } }; -export const TagContract: coreClient.CompositeMapper = { - serializedName: "TagContract", +export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContractProperties", type: { name: "Composite", - className: "TagContract", + className: "ApiVersionSetContractProperties", modelProperties: { - ...Resource.type.modelProperties, + ...ApiVersionSetEntityBase.type.modelProperties, displayName: { constraints: { - MaxLength: 160, + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + required: true, + xmlName: "displayName", + type: { + name: "String" + } + }, + versioningScheme: { + serializedName: "versioningScheme", + required: true, + xmlName: "versioningScheme", type: { name: "String" } @@ -9924,276 +10791,298 @@ export const TagContract: coreClient.CompositeMapper = { } }; -export const ProductContract: coreClient.CompositeMapper = { - serializedName: "ProductContract", +export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetUpdateParametersProperties", type: { name: "Composite", - className: "ProductContract", + className: "ApiVersionSetUpdateParametersProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { + ...ApiVersionSetEntityBase.type.modelProperties, + displayName: { constraints: { - MaxLength: 1000 + MaxLength: 100, + MinLength: 1 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - terms: { - serializedName: "properties.terms", - xmlName: "properties.terms", + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", type: { name: "String" } - }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + } + } + } +}; + +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: "Boolean" + name: "String" } }, - approvalRequired: { - serializedName: "properties.approvalRequired", - xmlName: "properties.approvalRequired", + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", type: { name: "Boolean" } }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", - xmlName: "properties.subscriptionsLimit", - type: { - name: "Number" - } - }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", type: { - name: "Enum", - allowedValues: ["notPublished", "published"] + name: "Boolean" } }, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + required: true, + xmlName: "clientRegistrationEndpoint", type: { name: "String" } - } - } - } -}; - -export const SchemaContract: coreClient.CompositeMapper = { - serializedName: "SchemaContract", - type: { - name: "Composite", - className: "SchemaContract", - modelProperties: { - ...Resource.type.modelProperties, - contentType: { - serializedName: "properties.contentType", - xmlName: "properties.contentType", + }, + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + required: true, + xmlName: "authorizationEndpoint", type: { name: "String" } }, - value: { - serializedName: "properties.document.value", - xmlName: "properties.document.value", + grantTypes: { + serializedName: "grantTypes", + required: true, + xmlName: "grantTypes", + xmlElementName: "GrantType", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - definitions: { - serializedName: "properties.document.definitions", - xmlName: "properties.document.definitions", + clientId: { + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - components: { - serializedName: "properties.document.components", - xmlName: "properties.document.components", + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } } } } }; -export const DiagnosticContract: coreClient.CompositeMapper = { - serializedName: "DiagnosticContract", +export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContractProperties", type: { name: "Composite", - className: "DiagnosticContract", + className: "AuthorizationServerUpdateContractProperties", modelProperties: { - ...Resource.type.modelProperties, - alwaysLog: { - serializedName: "properties.alwaysLog", - xmlName: "properties.alwaysLog", - type: { - name: "String" - } - }, - loggerId: { - serializedName: "properties.loggerId", - xmlName: "properties.loggerId", + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - sampling: { - serializedName: "properties.sampling", - xmlName: "properties.sampling", - type: { - name: "Composite", - className: "SamplingSettings" - } - }, - frontend: { - serializedName: "properties.frontend", - xmlName: "properties.frontend", + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", type: { - name: "Composite", - className: "PipelineDiagnosticSettings" + name: "Boolean" } }, - backend: { - serializedName: "properties.backend", - xmlName: "properties.backend", + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", type: { - name: "Composite", - className: "PipelineDiagnosticSettings" + name: "Boolean" } }, - logClientIp: { - serializedName: "properties.logClientIp", - xmlName: "properties.logClientIp", + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + xmlName: "clientRegistrationEndpoint", type: { - name: "Boolean" + name: "String" } }, - httpCorrelationProtocol: { - serializedName: "properties.httpCorrelationProtocol", - xmlName: "properties.httpCorrelationProtocol", + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + xmlName: "authorizationEndpoint", type: { name: "String" } }, - verbosity: { - serializedName: "properties.verbosity", - xmlName: "properties.verbosity", + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", + xmlElementName: "GrantType", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - operationNameFormat: { - serializedName: "properties.operationNameFormat", - xmlName: "properties.operationNameFormat", + clientId: { + serializedName: "clientId", + xmlName: "clientId", type: { name: "String" } }, - metrics: { - serializedName: "properties.metrics", - xmlName: "properties.metrics", + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { - name: "Boolean" + name: "String" } } } } }; -export const IssueContract: coreClient.CompositeMapper = { - serializedName: "IssueContract", +export const BackendContractProperties: coreClient.CompositeMapper = { + serializedName: "BackendContractProperties", type: { name: "Composite", - className: "IssueContract", + className: "BackendContractProperties", modelProperties: { - ...Resource.type.modelProperties, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", + ...BackendBaseParameters.type.modelProperties, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "url", + required: true, + xmlName: "url", type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "String" - } - }, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + protocol: { + serializedName: "protocol", + required: true, + xmlName: "protocol", type: { name: "String" } - }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + } + } + } +}; + +export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "BackendUpdateParameterProperties", + type: { + name: "Composite", + className: "BackendUpdateParameterProperties", + modelProperties: { + ...BackendBaseParameters.type.modelProperties, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "url", + xmlName: "url", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + protocol: { + serializedName: "protocol", + xmlName: "protocol", type: { name: "String" } - }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + } + } + } +}; + +export const KeyVaultContractProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultContractProperties", + type: { + name: "Composite", + className: "KeyVaultContractProperties", + modelProperties: { + ...KeyVaultContractCreateProperties.type.modelProperties, + lastStatus: { + serializedName: "lastStatus", + xmlName: "lastStatus", type: { - name: "String" + name: "Composite", + className: "KeyVaultLastAccessStatusContractProperties" } } } } }; -export const IssueCommentContract: coreClient.CompositeMapper = { - serializedName: "IssueCommentContract", +export const ApiManagementServiceProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceProperties", type: { name: "Composite", - className: "IssueCommentContract", + className: "ApiManagementServiceProperties", modelProperties: { - ...Resource.type.modelProperties, - text: { - serializedName: "properties.text", - xmlName: "properties.text", + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherEmail", + required: true, + xmlName: "publisherEmail", type: { name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherName", + required: true, + xmlName: "publisherName", type: { name: "String" } @@ -10202,30 +11091,29 @@ export const IssueCommentContract: coreClient.CompositeMapper = { } }; -export const IssueAttachmentContract: coreClient.CompositeMapper = { - serializedName: "IssueAttachmentContract", +export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceUpdateProperties", type: { name: "Composite", - className: "IssueAttachmentContract", + className: "ApiManagementServiceUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } - }, - contentFormat: { - serializedName: "properties.contentFormat", - xmlName: "properties.contentFormat", + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherEmail", + xmlName: "publisherEmail", type: { name: "String" } }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "publisherName", + xmlName: "publisherName", type: { name: "String" } @@ -10234,158 +11122,168 @@ export const IssueAttachmentContract: coreClient.CompositeMapper = { } }; -export const TagDescriptionContract: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContract", +export const ApiManagementServiceResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceResource", type: { name: "Composite", - className: "TagDescriptionContract", + className: "ApiManagementServiceResource", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", type: { - name: "String" + name: "Composite", + className: "ApiManagementServiceSkuProperties" } }, - externalDocsUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.externalDocsUrl", - xmlName: "properties.externalDocsUrl", + identity: { + serializedName: "identity", + xmlName: "identity", type: { - name: "String" + name: "Composite", + className: "ApiManagementServiceIdentity" } }, - externalDocsDescription: { - serializedName: "properties.externalDocsDescription", - xmlName: "properties.externalDocsDescription", + systemData: { + serializedName: "systemData", + xmlName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - tagId: { - serializedName: "properties.tagId", - xmlName: "properties.tagId", + location: { + serializedName: "location", + required: true, + xmlName: "location", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 160, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", type: { name: "String" } - } - } - } -}; - -export const ApiVersionSetContract: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContract", - type: { - name: "Composite", - className: "ApiVersionSetContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + }, + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceResourceZonesItem", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - versionQueryName: { + notificationSenderEmail: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.versionQueryName", - xmlName: "properties.versionQueryName", + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", type: { name: "String" } }, - versionHeaderName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.versionHeaderName", - xmlName: "properties.versionHeaderName", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", type: { name: "String" } }, - versioningScheme: { - serializedName: "properties.versioningScheme", - xmlName: "properties.versioningScheme", + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const AuthorizationServerContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContract", - type: { - name: "Composite", - className: "AuthorizationServerContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + }, + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", type: { name: "String" } }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + 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: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] + name: "Composite", + className: "HostnameConfiguration" } } } }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", type: { name: "Sequence", element: { @@ -10395,97 +11293,100 @@ export const AuthorizationServerContract: coreClient.CompositeMapper = { } } }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "TokenBodyParameterContract" + name: "String" } } } }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", type: { name: "String" } }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", type: { - name: "Boolean" + name: "String" } }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", type: { - name: "String" + name: "Composite", + className: "VirtualNetworkConfiguration" } }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AdditionalLocation" } } } }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } } }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", type: { - name: "String" + name: "Boolean" } }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", type: { name: "String" } }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", type: { name: "Sequence", element: { @@ -10495,113 +11396,121 @@ export const AuthorizationServerContract: coreClient.CompositeMapper = { } } }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", type: { - name: "String" + name: "Boolean" } }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", type: { name: "String" } - } - } - } -}; - -export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContract", - type: { - name: "Composite", - className: "AuthorizationServerUpdateContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", type: { - name: "String" + name: "Composite", + className: "ApiVersionConstraint" } }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + 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: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper" } } } }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + publisherEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.publisherEmail", + required: true, + xmlName: "properties.publisherEmail", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } + name: "String" } }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + 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" + } }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + identity: { + serializedName: "identity", + xmlName: "identity", type: { - name: "Boolean" + name: "Composite", + className: "ApiManagementServiceIdentity" } }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", type: { name: "String" } }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", type: { name: "Sequence", element: { @@ -10611,231 +11520,290 @@ export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { } } }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", + notificationSenderEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", type: { name: "String" } }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", type: { name: "String" } }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", type: { - name: "String" + name: "DateTime" } }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", type: { name: "String" } }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", type: { name: "String" } }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", type: { name: "String" } - } - } - } -}; - -export const BackendContract: coreClient.CompositeMapper = { - serializedName: "BackendContract", - type: { - name: "Composite", - className: "BackendContract", - modelProperties: { - ...Resource.type.modelProperties, - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.title", - xmlName: "properties.title", + }, + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", type: { name: "String" } }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.description", - xmlName: "properties.description", + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", type: { name: "String" } }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", type: { name: "String" } }, - properties: { - serializedName: "properties.properties", - xmlName: "properties.properties", + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", type: { - name: "Composite", - className: "BackendProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration" + } + } } }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", type: { - name: "Composite", - className: "BackendCredentialsContract" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - proxy: { - serializedName: "properties.proxy", - xmlName: "properties.proxy", + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", type: { - name: "Composite", - className: "BackendProxyContract" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - tls: { - serializedName: "properties.tls", - xmlName: "properties.tls", + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", type: { - name: "Composite", - className: "BackendTlsProperties" + name: "String" } }, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.url", - xmlName: "properties.url", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", type: { name: "String" } }, - protocol: { - serializedName: "properties.protocol", - xmlName: "properties.protocol", + 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" } - } - } - } -}; - -export const BackendReconnectContract: coreClient.CompositeMapper = { - serializedName: "BackendReconnectContract", - type: { - name: "Composite", - className: "BackendReconnectContract", - modelProperties: { - ...Resource.type.modelProperties, - after: { - serializedName: "properties.after", - xmlName: "properties.after", + }, + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const CacheContract: coreClient.CompositeMapper = { - serializedName: "CacheContract", - type: { - name: "Composite", - className: "CacheContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", + type: { + name: "Boolean" + } + }, + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", type: { name: "String" } }, - connectionString: { - constraints: { - MaxLength: 300 - }, - serializedName: "properties.connectionString", - xmlName: "properties.connectionString", + 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" } }, - useFromLocation: { + publisherEmail: { constraints: { - MaxLength: 256 + MaxLength: 100 }, - serializedName: "properties.useFromLocation", - xmlName: "properties.useFromLocation", + serializedName: "properties.publisherEmail", + xmlName: "properties.publisherEmail", type: { name: "String" } }, - resourceId: { + publisherName: { constraints: { - MaxLength: 2000 + MaxLength: 100 }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + serializedName: "properties.publisherName", + xmlName: "properties.publisherName", type: { name: "String" } @@ -10844,241 +11812,267 @@ export const CacheContract: coreClient.CompositeMapper = { } }; -export const CertificateContract: coreClient.CompositeMapper = { - serializedName: "CertificateContract", +export const UserContractProperties: coreClient.CompositeMapper = { + serializedName: "UserContractProperties", type: { name: "Composite", - className: "CertificateContract", + className: "UserContractProperties", modelProperties: { - ...Resource.type.modelProperties, - subject: { - serializedName: "properties.subject", - xmlName: "properties.subject", + ...UserEntityBaseParameters.type.modelProperties, + firstName: { + serializedName: "firstName", + xmlName: "firstName", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - xmlName: "properties.thumbprint", + lastName: { + serializedName: "lastName", + xmlName: "lastName", type: { name: "String" } }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + email: { + serializedName: "email", + xmlName: "email", + type: { + name: "String" + } + }, + registrationDate: { + serializedName: "registrationDate", + xmlName: "registrationDate", type: { name: "DateTime" } }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + groups: { + serializedName: "groups", + readOnly: true, + xmlName: "groups", + xmlElementName: "GroupContractProperties", type: { - name: "Composite", - className: "KeyVaultContractProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupContractProperties" + } + } } } } } }; -export const ContentTypeContract: coreClient.CompositeMapper = { - serializedName: "ContentTypeContract", +export const UserCreateParameterProperties: coreClient.CompositeMapper = { + serializedName: "UserCreateParameterProperties", type: { name: "Composite", - className: "ContentTypeContract", + className: "UserCreateParameterProperties", modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + ...UserEntityBaseParameters.type.modelProperties, + email: { + constraints: { + MaxLength: 254, + MinLength: 1 + }, + serializedName: "email", + required: true, + xmlName: "email", type: { name: "String" } }, - namePropertiesName: { - serializedName: "properties.name", - xmlName: "properties.name", + firstName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "firstName", + required: true, + xmlName: "firstName", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "lastName", + required: true, + xmlName: "lastName", type: { name: "String" } }, - schema: { - serializedName: "properties.schema", - xmlName: "properties.schema", + password: { + serializedName: "password", + xmlName: "password", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - version: { - serializedName: "properties.version", - xmlName: "properties.version", + appType: { + serializedName: "appType", + xmlName: "appType", type: { name: "String" } - } - } - } -}; - -export const ContentItemContract: coreClient.CompositeMapper = { - serializedName: "ContentItemContract", - type: { - name: "Composite", - className: "ContentItemContract", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - xmlName: "properties", + }, + confirmation: { + serializedName: "confirmation", + xmlName: "confirmation", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } } } } }; -export const DeletedServiceContract: coreClient.CompositeMapper = { - serializedName: "DeletedServiceContract", +export const UserUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "UserUpdateParametersProperties", type: { name: "Composite", - className: "DeletedServiceContract", + className: "UserUpdateParametersProperties", modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", - readOnly: true, - xmlName: "location", + ...UserEntityBaseParameters.type.modelProperties, + email: { + constraints: { + MaxLength: 254, + MinLength: 1 + }, + serializedName: "email", + xmlName: "email", type: { name: "String" } }, - serviceId: { - serializedName: "properties.serviceId", - xmlName: "properties.serviceId", + password: { + serializedName: "password", + xmlName: "password", type: { name: "String" } }, - scheduledPurgeDate: { - serializedName: "properties.scheduledPurgeDate", - xmlName: "properties.scheduledPurgeDate", + firstName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "firstName", + xmlName: "firstName", type: { - name: "DateTime" + name: "String" } }, - deletionDate: { - serializedName: "properties.deletionDate", - xmlName: "properties.deletionDate", + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "lastName", + xmlName: "lastName", type: { - name: "DateTime" + name: "String" } } } } }; -export const EmailTemplateContract: coreClient.CompositeMapper = { - serializedName: "EmailTemplateContract", +export const IdentityProviderContractProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContractProperties", type: { name: "Composite", - className: "EmailTemplateContract", + className: "IdentityProviderContractProperties", modelProperties: { - ...Resource.type.modelProperties, - subject: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { constraints: { - MaxLength: 1000, MinLength: 1 }, - serializedName: "properties.subject", - xmlName: "properties.subject", + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { name: "String" } }, - body: { + clientSecret: { constraints: { MinLength: 1 }, - serializedName: "properties.body", - xmlName: "properties.body", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { name: "String" } - }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + } + } + } +}; + +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" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + clientSecret: { + constraints: { + MinLength: 1 + }, + serializedName: "clientSecret", + required: true, + xmlName: "clientSecret", type: { name: "String" } - }, - isDefault: { - serializedName: "properties.isDefault", - readOnly: true, - xmlName: "properties.isDefault", - type: { - name: "Boolean" - } - }, - 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", +export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderUpdateProperties", type: { name: "Composite", - className: "GatewayContract", + className: "IdentityProviderUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - locationData: { - serializedName: "properties.locationData", - xmlName: "properties.locationData", + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { + constraints: { + MinLength: 1 + }, + serializedName: "clientId", + xmlName: "clientId", type: { - name: "Composite", - className: "ResourceLocationDataContract" + name: "String" } }, - description: { + clientSecret: { constraints: { - MaxLength: 1000 + MinLength: 1 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { name: "String" } @@ -11087,492 +12081,405 @@ export const GatewayContract: coreClient.CompositeMapper = { } }; -export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfigurationContract", +export const NamedValueContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueContractProperties", type: { name: "Composite", - className: "GatewayHostnameConfigurationContract", + className: "NamedValueContractProperties", modelProperties: { - ...Resource.type.modelProperties, - hostname: { - serializedName: "properties.hostname", - xmlName: "properties.hostname", + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - certificateId: { - serializedName: "properties.certificateId", - xmlName: "properties.certificateId", + value: { + constraints: { + MaxLength: 4096 + }, + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - negotiateClientCertificate: { - serializedName: "properties.negotiateClientCertificate", - xmlName: "properties.negotiateClientCertificate", - type: { - name: "Boolean" - } - }, - tls10Enabled: { - serializedName: "properties.tls10Enabled", - xmlName: "properties.tls10Enabled", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "Boolean" - } - }, - tls11Enabled: { - serializedName: "properties.tls11Enabled", - xmlName: "properties.tls11Enabled", - type: { - name: "Boolean" - } - }, - http2Enabled: { - serializedName: "properties.http2Enabled", - xmlName: "properties.http2Enabled", - type: { - name: "Boolean" + name: "Composite", + className: "KeyVaultContractProperties" } } } } }; -export const AssociationContract: coreClient.CompositeMapper = { - serializedName: "AssociationContract", +export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContractProperties", type: { name: "Composite", - className: "AssociationContract", + className: "NamedValueCreateContractProperties", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - defaultValue: "created", - isConstant: true, - serializedName: "properties.provisioningState", + ...NamedValueEntityBaseParameters.type.modelProperties, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } - } - } - } -}; - -export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthorityContract", - type: { - name: "Composite", - className: "GatewayCertificateAuthorityContract", - modelProperties: { - ...Resource.type.modelProperties, - isTrusted: { - serializedName: "properties.isTrusted", - xmlName: "properties.isTrusted", + }, + value: { + constraints: { + MaxLength: 4096 + }, + serializedName: "value", + xmlName: "value", type: { - name: "Boolean" + name: "String" + } + }, + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", + type: { + name: "Composite", + className: "KeyVaultContractCreateProperties" } } } } }; -export const GroupContract: coreClient.CompositeMapper = { - serializedName: "GroupContract", +export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueUpdateParameterProperties", type: { name: "Composite", - className: "GroupContract", + className: "NamedValueUpdateParameterProperties", modelProperties: { - ...Resource.type.modelProperties, + ...NamedValueEntityBaseParameters.type.modelProperties, displayName: { constraints: { - MaxLength: 300, + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - description: { + value: { constraints: { - MaxLength: 1000 + MaxLength: 4096, + MinLength: 1 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - builtIn: { - serializedName: "properties.builtIn", - readOnly: true, - xmlName: "properties.builtIn", - type: { - name: "Boolean" - } - }, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", - type: { - name: "Enum", - allowedValues: ["custom", "system", "external"] - } - }, - externalId: { - serializedName: "properties.externalId", - xmlName: "properties.externalId", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "String" + name: "Composite", + className: "KeyVaultContractCreateProperties" } } } } }; -export const UserContract: coreClient.CompositeMapper = { - serializedName: "UserContract", +export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiCreateOrUpdateProperties", type: { name: "Composite", - className: "UserContract", + className: "ApiCreateOrUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - state: { - defaultValue: "active", - serializedName: "properties.state", - xmlName: "properties.state", + ...ApiContractProperties.type.modelProperties, + value: { + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - note: { - serializedName: "properties.note", - xmlName: "properties.note", + format: { + serializedName: "format", + xmlName: "format", 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", + wsdlSelector: { + serializedName: "wsdlSelector", + xmlName: "wsdlSelector", type: { - name: "String" + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector" } }, - lastName: { - serializedName: "properties.lastName", - xmlName: "properties.lastName", + soapApiType: { + serializedName: "apiType", + xmlName: "apiType", type: { name: "String" } }, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + translateRequiredQueryParametersConduct: { + serializedName: "translateRequiredQueryParameters", + xmlName: "translateRequiredQueryParameters", type: { name: "String" } - }, - registrationDate: { - serializedName: "properties.registrationDate", - xmlName: "properties.registrationDate", - type: { - name: "DateTime" - } - }, - groups: { - serializedName: "properties.groups", - readOnly: true, - xmlName: "properties.groups", - xmlElementName: "GroupContractProperties", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupContractProperties" - } - } - } } } } }; -export const IdentityProviderContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContract", +export const ApiContract: coreClient.CompositeMapper = { + serializedName: "ApiContract", type: { name: "Composite", - className: "IdentityProviderContract", + className: "ApiContract", modelProperties: { - ...Resource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", type: { - name: "String" + name: "Composite", + className: "AuthenticationSettingsContract" } }, - allowedTenants: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SubscriptionKeyParameterNamesContract" } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { name: "String" } }, - signupPolicyName: { + apiRevision: { constraints: { + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", type: { name: "String" } }, - signinPolicyName: { + apiVersion: { constraints: { - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", type: { name: "String" } }, - profileEditingPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", type: { - name: "String" + name: "Boolean" } }, - passwordResetPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", type: { - name: "String" + name: "Boolean" } }, - clientId: { + apiRevisionDescription: { constraints: { - MinLength: 1 + MaxLength: 256 }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", type: { name: "String" } }, - clientSecret: { + apiVersionDescription: { constraints: { - MinLength: 1 + MaxLength: 256 }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + serializedName: "properties.apiVersionDescription", + xmlName: "properties.apiVersionDescription", type: { name: "String" } - } - } - } -}; - -export const IdentityProviderCreateContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContract", - type: { - name: "Composite", - className: "IdentityProviderCreateContract", - modelProperties: { - ...Resource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + }, + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + xmlName: "properties.apiVersionSetId", type: { name: "String" } }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", + type: { + name: "Boolean" + } + }, + termsOfServiceUrl: { + serializedName: "properties.termsOfServiceUrl", + xmlName: "properties.termsOfServiceUrl", type: { name: "String" } }, - allowedTenants: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", + contact: { + serializedName: "properties.contact", + xmlName: "properties.contact", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ApiContactInformation" } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + license: { + serializedName: "properties.license", + xmlName: "properties.license", type: { - name: "String" + name: "Composite", + className: "ApiLicenseInformation" } }, - signupPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", + sourceApiId: { + serializedName: "properties.sourceApiId", + xmlName: "properties.sourceApiId", type: { name: "String" } }, - signinPolicyName: { + displayName: { constraints: { + MaxLength: 300, MinLength: 1 }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - profileEditingPolicyName: { + serviceUrl: { constraints: { - MinLength: 1 + MaxLength: 2000 }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", type: { name: "String" } }, - passwordResetPolicyName: { + path: { constraints: { - MinLength: 1 + MaxLength: 400 }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + serializedName: "properties.path", + xmlName: "properties.path", type: { name: "String" } }, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + protocols: { + serializedName: "properties.protocols", + xmlName: "properties.protocols", + xmlElementName: "Protocol", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + apiVersionSet: { + serializedName: "properties.apiVersionSet", + xmlName: "properties.apiVersionSet", type: { - name: "String" + name: "Composite", + className: "ApiVersionSetContractDetails" } } } } }; -export const LoggerContract: coreClient.CompositeMapper = { - serializedName: "LoggerContract", +export const ApiReleaseContract: coreClient.CompositeMapper = { + serializedName: "ApiReleaseContract", type: { name: "Composite", - className: "LoggerContract", + className: "ApiReleaseContract", modelProperties: { - ...Resource.type.modelProperties, - loggerType: { - serializedName: "properties.loggerType", - xmlName: "properties.loggerType", - type: { - name: "String" - } - }, - description: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.description", - xmlName: "properties.description", + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { name: "String" } }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "DateTime" } }, - isBuffered: { - serializedName: "properties.isBuffered", - xmlName: "properties.isBuffered", + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", type: { - name: "Boolean" + name: "DateTime" } }, - resourceId: { - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + notes: { + serializedName: "properties.notes", + xmlName: "properties.notes", type: { name: "String" } @@ -11581,104 +12488,69 @@ export const LoggerContract: coreClient.CompositeMapper = { } }; -export const NamedValueContract: coreClient.CompositeMapper = { - serializedName: "NamedValueContract", +export const OperationContract: coreClient.CompositeMapper = { + serializedName: "OperationContract", type: { name: "Composite", - className: "NamedValueContract", + className: "OperationContract", modelProperties: { - ...Resource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + ...ProxyResource.type.modelProperties, + templateParameters: { + serializedName: "properties.templateParameters", + xmlName: "properties.templateParameters", + xmlElementName: "ParameterContract", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ParameterContract" } } } }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", - type: { - name: "Boolean" - } - }, - displayName: { + description: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 + MaxLength: 1000 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "properties.value", - xmlName: "properties.value", + request: { + serializedName: "properties.request", + xmlName: "properties.request", type: { - name: "String" + name: "Composite", + className: "RequestContract" } }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", - type: { - name: "Composite", - className: "KeyVaultContractProperties" - } - } - } - } -}; - -export const NamedValueCreateContract: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContract", - type: { - name: "Composite", - className: "NamedValueCreateContract", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", + responses: { + serializedName: "properties.responses", + xmlName: "properties.responses", + xmlElementName: "ResponseContract", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ResponseContract" } } } }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", + policies: { + serializedName: "properties.policies", + xmlName: "properties.policies", type: { - name: "Boolean" + name: "String" } }, displayName: { constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, + MaxLength: 300, MinLength: 1 }, serializedName: "properties.displayName", @@ -11687,75 +12559,46 @@ export const NamedValueCreateContract: coreClient.CompositeMapper = { name: "String" } }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "properties.value", - xmlName: "properties.value", + method: { + serializedName: "properties.method", + xmlName: "properties.method", type: { name: "String" } }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", - type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" - } - } - } - } -}; - -export const NotificationContract: coreClient.CompositeMapper = { - serializedName: "NotificationContract", - type: { - name: "Composite", - className: "NotificationContract", - modelProperties: { - ...Resource.type.modelProperties, - title: { + urlTemplate: { constraints: { MaxLength: 1000, MinLength: 1 }, - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "properties.urlTemplate", + xmlName: "properties.urlTemplate", type: { name: "String" } - }, - recipients: { - serializedName: "properties.recipients", - xmlName: "properties.recipients", - type: { - name: "Composite", - className: "RecipientsContractProperties" - } } } } }; -export const RecipientUserContract: coreClient.CompositeMapper = { - serializedName: "RecipientUserContract", +export const PolicyContract: coreClient.CompositeMapper = { + serializedName: "PolicyContract", type: { name: "Composite", - className: "RecipientUserContract", + className: "PolicyContract", modelProperties: { - ...Resource.type.modelProperties, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "String" + } + }, + format: { + defaultValue: "xml", + serializedName: "properties.format", + xmlName: "properties.format", type: { name: "String" } @@ -11764,16 +12607,20 @@ export const RecipientUserContract: coreClient.CompositeMapper = { } }; -export const RecipientEmailContract: coreClient.CompositeMapper = { - serializedName: "RecipientEmailContract", +export const TagContract: coreClient.CompositeMapper = { + serializedName: "TagContract", type: { name: "Composite", - className: "RecipientEmailContract", + className: "TagContract", modelProperties: { - ...Resource.type.modelProperties, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } @@ -11782,16 +12629,17 @@ export const RecipientEmailContract: coreClient.CompositeMapper = { } }; -export const OpenidConnectProviderContract: coreClient.CompositeMapper = { - serializedName: "OpenidConnectProviderContract", +export const ResolverContract: coreClient.CompositeMapper = { + serializedName: "ResolverContract", type: { name: "Composite", - className: "OpenidConnectProviderContract", + className: "ResolverContract", modelProperties: { - ...Resource.type.modelProperties, + ...ProxyResource.type.modelProperties, displayName: { constraints: { - MaxLength: 50 + MaxLength: 300, + MinLength: 1 }, serializedName: "properties.displayName", xmlName: "properties.displayName", @@ -11799,75 +12647,41 @@ export const OpenidConnectProviderContract: coreClient.CompositeMapper = { 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", + path: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.path", + xmlName: "properties.path", type: { name: "String" } }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", - type: { - name: "String" - } - } - } - } -}; - -export const PolicyDescriptionContract: coreClient.CompositeMapper = { - serializedName: "PolicyDescriptionContract", - type: { - name: "Composite", - className: "PolicyDescriptionContract", - modelProperties: { - ...Resource.type.modelProperties, description: { + constraints: { + MaxLength: 1000 + }, serializedName: "properties.description", - readOnly: true, xmlName: "properties.description", type: { name: "String" } - }, - scope: { - serializedName: "properties.scope", - readOnly: true, - xmlName: "properties.scope", - type: { - name: "Number" - } } } } }; -export const PortalRevisionContract: coreClient.CompositeMapper = { - serializedName: "PortalRevisionContract", +export const ProductContract: coreClient.CompositeMapper = { + serializedName: "ProductContract", type: { name: "Composite", - className: "PortalRevisionContract", + className: "ProductContract", modelProperties: { - ...Resource.type.modelProperties, + ...ProxyResource.type.modelProperties, description: { constraints: { - MaxLength: 2000 + MaxLength: 1000 }, serializedName: "properties.description", xmlName: "properties.description", @@ -11875,118 +12689,174 @@ export const PortalRevisionContract: coreClient.CompositeMapper = { name: "String" } }, - statusDetails: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.statusDetails", - readOnly: true, - xmlName: "properties.statusDetails", + terms: { + serializedName: "properties.terms", + xmlName: "properties.terms", type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, - xmlName: "properties.status", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { - name: "String" + name: "Boolean" } }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + approvalRequired: { + serializedName: "properties.approvalRequired", + xmlName: "properties.approvalRequired", type: { name: "Boolean" } }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", + xmlName: "properties.subscriptionsLimit", type: { - name: "DateTime" + name: "Number" } }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: ["notPublished", "published"] + } + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" } } } } }; -export const PortalSettingsContract: coreClient.CompositeMapper = { - serializedName: "PortalSettingsContract", - type: { +export const SchemaContract: coreClient.CompositeMapper = { + serializedName: "SchemaContract", + type: { name: "Composite", - className: "PortalSettingsContract", + className: "SchemaContract", modelProperties: { - ...Resource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", + ...ProxyResource.type.modelProperties, + contentType: { + serializedName: "properties.contentType", + xmlName: "properties.contentType", type: { name: "String" } }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + value: { + serializedName: "properties.document.value", + xmlName: "properties.document.value", type: { name: "String" } }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + definitions: { + serializedName: "properties.document.definitions", + xmlName: "properties.document.definitions", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + components: { + serializedName: "properties.document.components", + xmlName: "properties.document.components", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +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: "String" + } + }, + loggerId: { + serializedName: "properties.loggerId", + xmlName: "properties.loggerId", + type: { + name: "String" + } + }, + sampling: { + serializedName: "properties.sampling", + xmlName: "properties.sampling", type: { name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" + className: "SamplingSettings" } }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", type: { name: "Composite", - className: "RegistrationDelegationSettingsProperties" + className: "PipelineDiagnosticSettings" } }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", + type: { + name: "Composite", + className: "PipelineDiagnosticSettings" + } + }, + logClientIp: { + serializedName: "properties.logClientIp", + xmlName: "properties.logClientIp", type: { name: "Boolean" } }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", + httpCorrelationProtocol: { + serializedName: "properties.httpCorrelationProtocol", + xmlName: "properties.httpCorrelationProtocol", type: { - name: "Composite", - className: "TermsOfServiceProperties" + name: "String" } - } - } - } -}; - -export const PortalSigninSettings: coreClient.CompositeMapper = { - serializedName: "PortalSigninSettings", - type: { - name: "Composite", - className: "PortalSigninSettings", - modelProperties: { - ...Resource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + }, + verbosity: { + serializedName: "properties.verbosity", + xmlName: "properties.verbosity", + type: { + name: "String" + } + }, + operationNameFormat: { + serializedName: "properties.operationNameFormat", + xmlName: "properties.operationNameFormat", + type: { + name: "String" + } + }, + metrics: { + serializedName: "properties.metrics", + xmlName: "properties.metrics", type: { name: "Boolean" } @@ -11995,100 +12865,83 @@ export const PortalSigninSettings: coreClient.CompositeMapper = { } }; -export const PortalSignupSettings: coreClient.CompositeMapper = { - serializedName: "PortalSignupSettings", +export const IssueContract: coreClient.CompositeMapper = { + serializedName: "IssueContract", type: { name: "Composite", - className: "PortalSignupSettings", + className: "IssueContract", modelProperties: { - ...Resource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + ...ProxyResource.type.modelProperties, + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "Boolean" + name: "DateTime" } }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "Composite", - className: "TermsOfServiceProperties" + name: "String" } - } - } - } -}; - -export const PortalDelegationSettings: coreClient.CompositeMapper = { - serializedName: "PortalDelegationSettings", - type: { - name: "Composite", - className: "PortalDelegationSettings", - modelProperties: { - ...Resource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", + }, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { name: "String" } }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" + name: "String" } }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" + name: "String" } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const IssueCommentContract: coreClient.CompositeMapper = { + serializedName: "IssueCommentContract", type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "IssueCommentContract", modelProperties: { - ...Resource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - xmlName: "properties.privateEndpoint", + ...ProxyResource.type.modelProperties, + text: { + serializedName: "properties.text", + xmlName: "properties.text", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - xmlName: "properties.privateLinkServiceConnectionState", + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "DateTime" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { name: "String" } @@ -12097,437 +12950,348 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const IssueAttachmentContract: coreClient.CompositeMapper = { + serializedName: "IssueAttachmentContract", type: { name: "Composite", - className: "PrivateLinkResource", + className: "IssueAttachmentContract", modelProperties: { - ...Resource.type.modelProperties, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - xmlName: "properties.groupId", + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - xmlName: "properties.requiredMembers", - xmlElementName: "PrivateLinkResourcePropertiesRequiredMembersItem", + contentFormat: { + serializedName: "properties.contentFormat", + xmlName: "properties.contentFormat", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", - xmlName: "properties.requiredZoneNames", - xmlElementName: "PrivateLinkResourcePropertiesRequiredZoneNamesItem", + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const SubscriptionContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionContract", +export const TagDescriptionContract: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContract", type: { name: "Composite", - className: "SubscriptionContract", + className: "TagDescriptionContract", modelProperties: { - ...Resource.type.modelProperties, - ownerId: { - serializedName: "properties.ownerId", - xmlName: "properties.ownerId", - type: { - name: "String" - } - }, - scope: { - serializedName: "properties.scope", - xmlName: "properties.scope", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - displayName: { + externalDocsUrl: { constraints: { - MaxLength: 100 + MaxLength: 2000 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.externalDocsUrl", + xmlName: "properties.externalDocsUrl", type: { name: "String" } }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] - } - }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, - xmlName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - startDate: { - serializedName: "properties.startDate", - xmlName: "properties.startDate", - type: { - name: "DateTime" - } - }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", - type: { - name: "DateTime" - } - }, - endDate: { - serializedName: "properties.endDate", - xmlName: "properties.endDate", - type: { - name: "DateTime" - } - }, - notificationDate: { - serializedName: "properties.notificationDate", - xmlName: "properties.notificationDate", + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", + xmlName: "properties.externalDocsDescription", type: { - name: "DateTime" + name: "String" } }, - primaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 - }, - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", + tagId: { + serializedName: "properties.tagId", + xmlName: "properties.tagId", type: { name: "String" } }, - secondaryKey: { + displayName: { constraints: { - MaxLength: 256, + MaxLength: 160, MinLength: 1 }, - serializedName: "properties.secondaryKey", - xmlName: "properties.secondaryKey", - type: { - name: "String" - } - }, - stateComment: { - serializedName: "properties.stateComment", - xmlName: "properties.stateComment", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } - }, - allowTracing: { - serializedName: "properties.allowTracing", - xmlName: "properties.allowTracing", - type: { - name: "Boolean" - } } } } }; -export const GlobalSchemaContract: coreClient.CompositeMapper = { - serializedName: "GlobalSchemaContract", +export const WikiContract: coreClient.CompositeMapper = { + serializedName: "WikiContract", type: { name: "Composite", - className: "GlobalSchemaContract", + className: "WikiContract", modelProperties: { - ...Resource.type.modelProperties, - schemaType: { - serializedName: "properties.schemaType", - xmlName: "properties.schemaType", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - value: { - serializedName: "properties.value", - xmlName: "properties.value", - type: { - name: "any" - } - }, - document: { - serializedName: "properties.document", - xmlName: "properties.document", + ...ProxyResource.type.modelProperties, + documents: { + serializedName: "properties.documents", + xmlName: "properties.documents", + xmlElementName: "WikiDocumentationContract", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiDocumentationContract" + } + } } } } } }; -export const TenantSettingsContract: coreClient.CompositeMapper = { - serializedName: "TenantSettingsContract", +export const ApiVersionSetContract: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContract", type: { name: "Composite", - className: "TenantSettingsContract", + className: "ApiVersionSetContract", modelProperties: { - ...Resource.type.modelProperties, - settings: { - serializedName: "properties.settings", - xmlName: "properties.settings", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } - } - } - } -}; - -export const AccessInformationContract: coreClient.CompositeMapper = { - serializedName: "AccessInformationContract", - type: { - name: "Composite", - className: "AccessInformationContract", - modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + }, + versionQueryName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.versionQueryName", + xmlName: "properties.versionQueryName", type: { name: "String" } }, - principalId: { - serializedName: "properties.principalId", - xmlName: "properties.principalId", + versionHeaderName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.versionHeaderName", + xmlName: "properties.versionHeaderName", type: { name: "String" } }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Boolean" + name: "String" + } + }, + versioningScheme: { + serializedName: "properties.versioningScheme", + xmlName: "properties.versioningScheme", + type: { + name: "String" } } } } }; -export const OperationResultContract: coreClient.CompositeMapper = { - serializedName: "OperationResultContract", +export const AuthorizationServerContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContract", type: { name: "Composite", - className: "OperationResultContract", + className: "AuthorizationServerContract", modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "Enum", - allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] - } - }, - started: { - serializedName: "properties.started", - xmlName: "properties.started", + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } + } + }, + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - updated: { - serializedName: "properties.updated", - xmlName: "properties.updated", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract" + } + } } }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", type: { name: "String" } }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", type: { - name: "Composite", - className: "ErrorResponseBody" + name: "Boolean" } }, - actionLog: { - serializedName: "properties.actionLog", - readOnly: true, - xmlName: "properties.actionLog", - xmlElementName: "OperationResultLogItemContract", + defaultScope: { + serializedName: "properties.defaultScope", + xmlName: "properties.defaultScope", + type: { + name: "String" + } + }, + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", + xmlName: "properties.bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "OperationResultLogItemContract" + name: "String" } } } - } - } - } -}; - -export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { - serializedName: "TenantConfigurationSyncStateContract", - type: { - name: "Composite", - className: "TenantConfigurationSyncStateContract", - modelProperties: { - ...Resource.type.modelProperties, - branch: { - serializedName: "properties.branch", - xmlName: "properties.branch", + }, + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", type: { name: "String" } }, - commitId: { - serializedName: "properties.commitId", - xmlName: "properties.commitId", + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", type: { name: "String" } }, - isExport: { - serializedName: "properties.isExport", - xmlName: "properties.isExport", + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Boolean" + name: "String" } }, - isSynced: { - serializedName: "properties.isSynced", - xmlName: "properties.isSynced", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { name: "Boolean" } }, - isGitEnabled: { - serializedName: "properties.isGitEnabled", - xmlName: "properties.isGitEnabled", + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { name: "Boolean" } }, - syncDate: { - serializedName: "properties.syncDate", - xmlName: "properties.syncDate", - type: { - name: "DateTime" - } - }, - configurationChangeDate: { - serializedName: "properties.configurationChangeDate", - xmlName: "properties.configurationChangeDate", + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", type: { - name: "DateTime" + name: "String" } }, - lastOperationId: { - serializedName: "properties.lastOperationId", - xmlName: "properties.lastOperationId", + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", type: { name: "String" } - } - } - } -}; - -export const OperationContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationContractProperties", - type: { - name: "Composite", - className: "OperationContractProperties", - modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + }, + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - method: { - serializedName: "method", - required: true, - xmlName: "method", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "urlTemplate", - required: true, - xmlName: "urlTemplate", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -12536,91 +13300,180 @@ export const OperationContractProperties: coreClient.CompositeMapper = { } }; -export const OperationUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationUpdateContractProperties", +export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContract", type: { name: "Composite", - className: "OperationUpdateContractProperties", + className: "AuthorizationServerUpdateContract", modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - method: { - serializedName: "method", - xmlName: "method", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } } }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "urlTemplate", - xmlName: "urlTemplate", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const ProductContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductContractProperties", - type: { - name: "Composite", - className: "ProductContractProperties", - modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, + }, + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", + xmlName: "properties.tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract" + } + } + } + }, + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", + xmlName: "properties.tokenEndpoint", + type: { + name: "String" + } + }, + supportState: { + serializedName: "properties.supportState", + xmlName: "properties.supportState", + type: { + name: "Boolean" + } + }, + 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" + } + } + } + }, + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", + type: { + name: "String" + } + }, + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", + type: { + name: "String" + } + }, displayName: { constraints: { - MaxLength: 300, + MaxLength: 50, MinLength: 1 }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.displayName", + xmlName: "properties.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", + }, + 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: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "name", - required: true, - xmlName: "name", + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", + type: { + name: "String" + } + }, + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -12629,87 +13482,83 @@ export const ProductTagResourceContractProperties: coreClient.CompositeMapper = } }; -export const ProductUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ProductUpdateProperties", +export const AuthorizationProviderContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderContract", type: { name: "Composite", - className: "ProductUpdateProperties", + className: "AuthorizationProviderContract", modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, + ...ProxyResource.type.modelProperties, displayName: { constraints: { MaxLength: 300, MinLength: 1 }, - serializedName: "displayName", - xmlName: "displayName", - type: { - name: "String" - } - } - } - } -}; - -export const IssueContractProperties: coreClient.CompositeMapper = { - serializedName: "IssueContractProperties", - type: { - name: "Composite", - className: "IssueContractProperties", - modelProperties: { - ...IssueContractBaseProperties.type.modelProperties, - title: { - serializedName: "title", - required: true, - xmlName: "title", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - description: { - serializedName: "description", - required: true, - xmlName: "description", + identityProvider: { + serializedName: "properties.identityProvider", + xmlName: "properties.identityProvider", type: { name: "String" } }, - userId: { - serializedName: "userId", - required: true, - xmlName: "userId", + oauth2: { + serializedName: "properties.oauth2", + xmlName: "properties.oauth2", type: { - name: "String" + name: "Composite", + className: "AuthorizationProviderOAuth2Settings" } } } } }; -export const IssueUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "IssueUpdateContractProperties", +export const AuthorizationContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationContract", type: { name: "Composite", - className: "IssueUpdateContractProperties", + className: "AuthorizationContract", modelProperties: { - ...IssueContractBaseProperties.type.modelProperties, - title: { - serializedName: "title", - xmlName: "title", + ...ProxyResource.type.modelProperties, + authorizationType: { + serializedName: "properties.authorizationType", + xmlName: "properties.authorizationType", type: { name: "String" } }, - description: { - serializedName: "description", - xmlName: "description", + oAuth2GrantType: { + serializedName: "properties.oauth2grantType", + xmlName: "properties.oauth2grantType", type: { name: "String" } }, - userId: { - serializedName: "userId", - xmlName: "userId", + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + error: { + serializedName: "properties.error", + xmlName: "properties.error", + type: { + name: "Composite", + className: "AuthorizationError" + } + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", type: { name: "String" } @@ -12718,27 +13567,23 @@ export const IssueUpdateContractProperties: coreClient.CompositeMapper = { } }; -export const TagDescriptionContractProperties: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContractProperties", +export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyContract", type: { name: "Composite", - className: "TagDescriptionContractProperties", + className: "AuthorizationAccessPolicyContract", modelProperties: { - ...TagDescriptionBaseProperties.type.modelProperties, - tagId: { - serializedName: "tagId", - xmlName: "tagId", + ...ProxyResource.type.modelProperties, + tenantId: { + serializedName: "properties.tenantId", + xmlName: "properties.tenantId", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 160, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + objectId: { + serializedName: "properties.objectId", + xmlName: "properties.objectId", type: { name: "String" } @@ -12747,126 +13592,92 @@ export const TagDescriptionContractProperties: coreClient.CompositeMapper = { } }; -export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContractProperties", +export const BackendContract: coreClient.CompositeMapper = { + serializedName: "BackendContract", type: { name: "Composite", - className: "ApiVersionSetContractProperties", + className: "BackendContract", modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { + ...ProxyResource.type.modelProperties, + title: { constraints: { - MaxLength: 100, + MaxLength: 300, MinLength: 1 }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - versioningScheme: { - serializedName: "versioningScheme", - required: true, - xmlName: "versioningScheme", + description: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } - } - } - } -}; - -export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetUpdateParametersProperties", - type: { - name: "Composite", - className: "ApiVersionSetUpdateParametersProperties", - modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { + }, + resourceId: { constraints: { - MaxLength: 100, + MaxLength: 2000, MinLength: 1 }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", 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", + properties: { + serializedName: "properties.properties", + xmlName: "properties.properties", type: { - name: "String" + name: "Composite", + className: "BackendProperties" } }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - required: true, - xmlName: "clientRegistrationEndpoint", + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" + name: "Composite", + className: "BackendCredentialsContract" } }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - required: true, - xmlName: "authorizationEndpoint", + proxy: { + serializedName: "properties.proxy", + xmlName: "properties.proxy", type: { - name: "String" + name: "Composite", + className: "BackendProxyContract" } }, - grantTypes: { - serializedName: "grantTypes", - required: true, - xmlName: "grantTypes", - xmlElementName: "GrantType", + tls: { + serializedName: "properties.tls", + xmlName: "properties.tls", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "BackendTlsProperties" } }, - clientId: { - serializedName: "clientId", - required: true, - xmlName: "clientId", + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.url", + xmlName: "properties.url", type: { name: "String" } }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", + protocol: { + serializedName: "properties.protocol", + xmlName: "properties.protocol", type: { name: "String" } @@ -12875,61 +13686,67 @@ export const AuthorizationServerContractProperties: coreClient.CompositeMapper = } }; -export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContractProperties", +export const BackendReconnectContract: coreClient.CompositeMapper = { + serializedName: "BackendReconnectContract", type: { name: "Composite", - className: "AuthorizationServerUpdateContractProperties", + className: "BackendReconnectContract", modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + after: { + serializedName: "properties.after", + xmlName: "properties.after", type: { - name: "String" + name: "TimeSpan" } - }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - xmlName: "clientRegistrationEndpoint", + } + } + } +}; + +export const CacheContract: coreClient.CompositeMapper = { + serializedName: "CacheContract", + type: { + name: "Composite", + className: "CacheContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - xmlName: "authorizationEndpoint", + connectionString: { + constraints: { + MaxLength: 300 + }, + serializedName: "properties.connectionString", + xmlName: "properties.connectionString", type: { name: "String" } }, - grantTypes: { - serializedName: "grantTypes", - xmlName: "grantTypes", - xmlElementName: "GrantType", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", + useFromLocation: { + constraints: { + MaxLength: 256 + }, + serializedName: "properties.useFromLocation", + xmlName: "properties.useFromLocation", type: { name: "String" } }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", + resourceId: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { name: "String" } @@ -12938,473 +13755,587 @@ export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMa } }; -export const BackendContractProperties: coreClient.CompositeMapper = { - serializedName: "BackendContractProperties", +export const CertificateContract: coreClient.CompositeMapper = { + serializedName: "CertificateContract", type: { name: "Composite", - className: "BackendContractProperties", + className: "CertificateContract", modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "url", - required: true, - xmlName: "url", + ...ProxyResource.type.modelProperties, + subject: { + serializedName: "properties.subject", + xmlName: "properties.subject", type: { name: "String" } }, - protocol: { - serializedName: "protocol", - required: true, - xmlName: "protocol", + thumbprint: { + serializedName: "properties.thumbprint", + xmlName: "properties.thumbprint", type: { name: "String" } + }, + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", + type: { + name: "DateTime" + } + }, + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", + type: { + name: "Composite", + className: "KeyVaultContractProperties" + } } } } }; -export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameterProperties", +export const ContentTypeContract: coreClient.CompositeMapper = { + serializedName: "ContentTypeContract", type: { name: "Composite", - className: "BackendUpdateParameterProperties", + className: "ContentTypeContract", modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "url", - xmlName: "url", + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - protocol: { - serializedName: "protocol", - xmlName: "protocol", + namePropertiesName: { + serializedName: "properties.name", + xmlName: "properties.name", type: { name: "String" } - } - } - } -}; - -export const KeyVaultContractProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultContractProperties", - type: { - name: "Composite", - className: "KeyVaultContractProperties", - modelProperties: { - ...KeyVaultContractCreateProperties.type.modelProperties, - lastStatus: { - serializedName: "lastStatus", - xmlName: "lastStatus", + }, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Composite", - className: "KeyVaultLastAccessStatusContractProperties" + name: "String" + } + }, + schema: { + serializedName: "properties.schema", + xmlName: "properties.schema", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + version: { + serializedName: "properties.version", + xmlName: "properties.version", + type: { + name: "String" } } } } }; -export const ApiManagementServiceProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceProperties", +export const ContentItemContract: coreClient.CompositeMapper = { + serializedName: "ContentItemContract", type: { name: "Composite", - className: "ApiManagementServiceProperties", + className: "ContentItemContract", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherEmail", - required: true, - xmlName: "publisherEmail", - type: { - name: "String" - } - }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherName", - required: true, - xmlName: "publisherName", + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + xmlName: "properties", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateProperties", +export const DeletedServiceContract: coreClient.CompositeMapper = { + serializedName: "DeletedServiceContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateProperties", + className: "DeletedServiceContract", modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherEmail", - xmlName: "publisherEmail", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + xmlName: "location", type: { name: "String" } }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "publisherName", - xmlName: "publisherName", + serviceId: { + serializedName: "properties.serviceId", + xmlName: "properties.serviceId", type: { name: "String" } + }, + scheduledPurgeDate: { + serializedName: "properties.scheduledPurgeDate", + xmlName: "properties.scheduledPurgeDate", + type: { + name: "DateTime" + } + }, + deletionDate: { + serializedName: "properties.deletionDate", + xmlName: "properties.deletionDate", + type: { + name: "DateTime" + } } } } }; -export const ApiManagementServiceResource: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceResource", +export const EmailTemplateContract: coreClient.CompositeMapper = { + serializedName: "EmailTemplateContract", type: { name: "Composite", - className: "ApiManagementServiceResource", + className: "EmailTemplateContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", + ...ProxyResource.type.modelProperties, + subject: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "properties.subject", + xmlName: "properties.subject", type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" + name: "String" } }, - identity: { - serializedName: "identity", - xmlName: "identity", + body: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.body", + xmlName: "properties.body", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" + name: "String" } }, - systemData: { - serializedName: "systemData", - xmlName: "systemData", + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "Composite", - className: "SystemData" + name: "String" } }, - location: { - serializedName: "location", - required: true, - xmlName: "location", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - etag: { - serializedName: "etag", + isDefault: { + serializedName: "properties.isDefault", readOnly: true, - xmlName: "etag", + xmlName: "properties.isDefault", type: { - name: "String" + name: "Boolean" } }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceResourceZonesItem", + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", + xmlElementName: "EmailTemplateParametersContractProperties", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "EmailTemplateParametersContractProperties" } } } + } + } + } +}; + +export const GatewayContract: coreClient.CompositeMapper = { + serializedName: "GatewayContract", + type: { + name: "Composite", + className: "GatewayContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + locationData: { + serializedName: "properties.locationData", + xmlName: "properties.locationData", + type: { + name: "Composite", + className: "ResourceLocationDataContract" + } }, - notificationSenderEmail: { + description: { constraints: { - MaxLength: 100 + MaxLength: 1000 }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + } + } + } +}; + +export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = { + serializedName: "GatewayHostnameConfigurationContract", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + hostname: { + serializedName: "properties.hostname", + xmlName: "properties.hostname", type: { name: "String" } }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + certificateId: { + serializedName: "properties.certificateId", + xmlName: "properties.certificateId", type: { name: "String" } }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + negotiateClientCertificate: { + serializedName: "properties.negotiateClientCertificate", + xmlName: "properties.negotiateClientCertificate", type: { - name: "DateTime" + name: "Boolean" } }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + tls10Enabled: { + serializedName: "properties.tls10Enabled", + xmlName: "properties.tls10Enabled", type: { - name: "String" + name: "Boolean" } }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + tls11Enabled: { + serializedName: "properties.tls11Enabled", + xmlName: "properties.tls11Enabled", type: { - name: "String" + name: "Boolean" } }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + http2Enabled: { + serializedName: "properties.http2Enabled", + xmlName: "properties.http2Enabled", type: { - name: "String" + name: "Boolean" } - }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + } + } + } +}; + +export const AssociationContract: coreClient.CompositeMapper = { + serializedName: "AssociationContract", + type: { + name: "Composite", + className: "AssociationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + defaultValue: "created", + isConstant: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthorityContract", + type: { + name: "Composite", + className: "GatewayCertificateAuthorityContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + isTrusted: { + serializedName: "properties.isTrusted", + xmlName: "properties.isTrusted", + type: { + name: "Boolean" + } + } + } + } +}; + +export const GroupContract: coreClient.CompositeMapper = { + serializedName: "GroupContract", + type: { + name: "Composite", + className: "GroupContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", + builtIn: { + serializedName: "properties.builtIn", readOnly: true, - xmlName: "properties.developerPortalUrl", + xmlName: "properties.builtIn", + type: { + name: "Boolean" + } + }, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "Enum", + allowedValues: ["custom", "system", "external"] + } + }, + externalId: { + serializedName: "properties.externalId", + xmlName: "properties.externalId", + type: { + name: "String" + } + } + } + } +}; + +export const UserContract: coreClient.CompositeMapper = { + serializedName: "UserContract", + type: { + name: "Composite", + className: "UserContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + defaultValue: "active", + serializedName: "properties.state", + xmlName: "properties.state", type: { name: "String" } }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + note: { + serializedName: "properties.note", + xmlName: "properties.note", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } + name: "String" } }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + identities: { + serializedName: "properties.identities", + xmlName: "properties.identities", + xmlElementName: "UserIdentityContract", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "UserIdentityContract" } } } }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + firstName: { + serializedName: "properties.firstName", + xmlName: "properties.firstName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + lastName: { + serializedName: "properties.lastName", + xmlName: "properties.lastName", type: { name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + email: { + serializedName: "properties.email", + xmlName: "properties.email", type: { name: "String" } }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + registrationDate: { + serializedName: "properties.registrationDate", + xmlName: "properties.registrationDate", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" + name: "DateTime" } }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + groups: { + serializedName: "properties.groups", + readOnly: true, + xmlName: "properties.groups", + xmlElementName: "GroupContractProperties", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AdditionalLocation" + className: "GroupContractProperties" } } } + } + } + } +}; + +export const IdentityProviderContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContract", + type: { + name: "Composite", + className: "IdentityProviderContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String" + } }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + allowedTenants: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CertificateConfiguration" + name: "String" } } } }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", type: { - name: "Boolean" + name: "String" } }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + signupPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { - name: "Boolean" + name: "String" } }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + signinPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { name: "String" } }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", - type: { - name: "Composite", - className: "ApiVersionConstraint" - } - }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + profileEditingPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { - name: "Boolean" + name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + passwordResetPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } + name: "String" } }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { name: "String" } }, - publisherEmail: { + clientId: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "properties.publisherEmail", - required: true, - xmlName: "properties.publisherEmail", + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - publisherName: { + clientSecret: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "properties.publisherName", - required: true, - xmlName: "properties.publisherName", + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -13413,41 +14344,34 @@ export const ApiManagementServiceResource: coreClient.CompositeMapper = { } }; -export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateParameters", +export const IdentityProviderCreateContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderCreateContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateParameters", + className: "IdentityProviderCreateContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", - type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } - }, - identity: { - serializedName: "identity", - xmlName: "identity", + ...ProxyResource.type.modelProperties, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" + name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, - xmlName: "etag", + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", type: { name: "String" } }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + allowedTenants: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { name: "Sequence", element: { @@ -13457,268 +14381,330 @@ export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = } } }, - notificationSenderEmail: { + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", + type: { + name: "String" + } + }, + signupPolicyName: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + signinPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { name: "String" } }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + profileEditingPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { name: "String" } }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + passwordResetPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { - name: "DateTime" + name: "String" } }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { name: "String" } }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + clientId: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + clientSecret: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } - }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + } + } + } +}; + +export const LoggerContract: coreClient.CompositeMapper = { + serializedName: "LoggerContract", + type: { + name: "Composite", + className: "LoggerContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + loggerType: { + serializedName: "properties.loggerType", + xmlName: "properties.loggerType", type: { name: "String" } }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + description: { + constraints: { + MaxLength: 256 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + isBuffered: { + serializedName: "properties.isBuffered", + xmlName: "properties.isBuffered", + type: { + name: "Boolean" + } + }, + resourceId: { + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const NamedValueContract: coreClient.CompositeMapper = { + serializedName: "NamedValueContract", + type: { + name: "Composite", + className: "NamedValueContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "HostnameConfiguration" + name: "String" } } } }, - 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", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + value: { + constraints: { + MaxLength: 4096 + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { name: "String" } }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { name: "Composite", - className: "VirtualNetworkConfiguration" - } - }, - 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" } } + className: "KeyVaultContractProperties" } - }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + } + } + } +}; + +export const NamedValueCreateContract: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContract", + type: { + name: "Composite", + className: "NamedValueCreateContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.tags", + xmlName: "properties.tags", + xmlElementName: "NamedValueEntityBaseParametersTagsItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CertificateConfiguration" + name: "String" } } } }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", type: { name: "Boolean" } }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { - name: "Boolean" + name: "String" } }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + value: { + constraints: { + MaxLength: 4096 + }, + serializedName: "properties.value", + xmlName: "properties.value", type: { name: "String" } }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { name: "Composite", - className: "ApiVersionConstraint" + className: "KeyVaultContractCreateProperties" } - }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + } + } + } +}; + +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: "Boolean" + name: "String" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } + name: "String" } }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + recipients: { + serializedName: "properties.recipients", + xmlName: "properties.recipients", type: { - name: "String" + name: "Composite", + className: "RecipientsContractProperties" } - }, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherEmail", - xmlName: "properties.publisherEmail", + } + } + } +}; + +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" } - }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherName", - xmlName: "properties.publisherName", + } + } + } +}; + +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" } @@ -13727,435 +14713,844 @@ export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = } }; -export const UserContractProperties: coreClient.CompositeMapper = { - serializedName: "UserContractProperties", +export const OpenidConnectProviderContract: coreClient.CompositeMapper = { + serializedName: "OpenidConnectProviderContract", type: { name: "Composite", - className: "UserContractProperties", + className: "OpenidConnectProviderContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - firstName: { - serializedName: "firstName", - xmlName: "firstName", + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - lastName: { - serializedName: "lastName", - xmlName: "lastName", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - email: { - serializedName: "email", - xmlName: "email", + metadataEndpoint: { + serializedName: "properties.metadataEndpoint", + xmlName: "properties.metadataEndpoint", type: { name: "String" } }, - registrationDate: { - serializedName: "registrationDate", - xmlName: "registrationDate", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "DateTime" + name: "String" } }, - groups: { - serializedName: "groups", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", + type: { + name: "String" + } + }, + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean" + } + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PolicyDescriptionContract: coreClient.CompositeMapper = { + serializedName: "PolicyDescriptionContract", + type: { + name: "Composite", + className: "PolicyDescriptionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", readOnly: true, - xmlName: "groups", - xmlElementName: "GroupContractProperties", + xmlName: "properties.description", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupContractProperties" - } - } + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + readOnly: true, + xmlName: "properties.scope", + type: { + name: "Number" } } } } }; -export const UserCreateParameterProperties: coreClient.CompositeMapper = { - serializedName: "UserCreateParameterProperties", +export const PolicyFragmentContract: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentContract", type: { name: "Composite", - className: "UserCreateParameterProperties", + className: "PolicyFragmentContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "String" + } + }, + description: { constraints: { - MaxLength: 254, - MinLength: 1 + MaxLength: 1000 }, - serializedName: "email", - required: true, - xmlName: "email", + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - firstName: { + format: { + serializedName: "properties.format", + xmlName: "properties.format", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceCollectionValueItem: coreClient.CompositeMapper = { + serializedName: "ResourceCollectionValueItem", + type: { + name: "Composite", + className: "ResourceCollectionValueItem", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const PortalConfigContract: coreClient.CompositeMapper = { + serializedName: "PortalConfigContract", + type: { + name: "Composite", + className: "PortalConfigContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + enableBasicAuth: { + defaultValue: true, + serializedName: "properties.enableBasicAuth", + xmlName: "properties.enableBasicAuth", + type: { + name: "Boolean" + } + }, + signin: { + serializedName: "properties.signin", + xmlName: "properties.signin", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignin" + } + }, + signup: { + serializedName: "properties.signup", + xmlName: "properties.signup", + type: { + name: "Composite", + className: "PortalConfigPropertiesSignup" + } + }, + delegation: { + serializedName: "properties.delegation", + xmlName: "properties.delegation", + type: { + name: "Composite", + className: "PortalConfigDelegationProperties" + } + }, + cors: { + serializedName: "properties.cors", + xmlName: "properties.cors", + type: { + name: "Composite", + className: "PortalConfigCorsProperties" + } + }, + csp: { + serializedName: "properties.csp", + xmlName: "properties.csp", + type: { + name: "Composite", + className: "PortalConfigCspProperties" + } + } + } + } +}; + +export const PortalRevisionContract: coreClient.CompositeMapper = { + serializedName: "PortalRevisionContract", + type: { + name: "Composite", + className: "PortalRevisionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 2000 }, - serializedName: "firstName", - required: true, - xmlName: "firstName", + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - lastName: { + statusDetails: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.statusDetails", + readOnly: true, + xmlName: "properties.statusDetails", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + xmlName: "properties.status", + type: { + name: "String" + } + }, + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", + type: { + name: "Boolean" + } + }, + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", + type: { + name: "DateTime" + } + }, + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const PortalSettingsContract: coreClient.CompositeMapper = { + serializedName: "PortalSettingsContract", + type: { + name: "Composite", + className: "PortalSettingsContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + url: { + serializedName: "properties.url", + xmlName: "properties.url", + type: { + name: "String" + } + }, + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", + type: { + name: "String" + } + }, + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties" + } + }, + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties" + } + }, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } + }, + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", + type: { + name: "Composite", + className: "TermsOfServiceProperties" + } + } + } + } +}; + +export const PortalSigninSettings: coreClient.CompositeMapper = { + serializedName: "PortalSigninSettings", + type: { + name: "Composite", + className: "PortalSigninSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PortalSignupSettings: coreClient.CompositeMapper = { + serializedName: "PortalSignupSettings", + type: { + name: "Composite", + className: "PortalSignupSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } + }, + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", + type: { + name: "Composite", + className: "TermsOfServiceProperties" + } + } + } + } +}; + +export const PortalDelegationSettings: coreClient.CompositeMapper = { + serializedName: "PortalDelegationSettings", + type: { + name: "Composite", + className: "PortalDelegationSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + url: { + serializedName: "properties.url", + xmlName: "properties.url", + type: { + name: "String" + } + }, + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", + type: { + name: "String" + } + }, + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties" + } + }, + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties" + } + } + } + } +}; + +export const SubscriptionContract: coreClient.CompositeMapper = { + serializedName: "SubscriptionContract", + type: { + name: "Composite", + className: "SubscriptionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + ownerId: { + serializedName: "properties.ownerId", + xmlName: "properties.ownerId", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", + type: { + name: "String" + } + }, + displayName: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled" + ] + } + }, + createdDate: { + serializedName: "properties.createdDate", + readOnly: true, + xmlName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + startDate: { + serializedName: "properties.startDate", + xmlName: "properties.startDate", + type: { + name: "DateTime" + } + }, + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", + type: { + name: "DateTime" + } + }, + endDate: { + serializedName: "properties.endDate", + xmlName: "properties.endDate", + type: { + name: "DateTime" + } + }, + notificationDate: { + serializedName: "properties.notificationDate", + xmlName: "properties.notificationDate", + type: { + name: "DateTime" + } + }, + primaryKey: { constraints: { - MaxLength: 100, + MaxLength: 256, MinLength: 1 }, - serializedName: "lastName", - required: true, - xmlName: "lastName", + serializedName: "properties.primaryKey", + xmlName: "properties.primaryKey", type: { name: "String" } }, - password: { - serializedName: "password", - xmlName: "password", + secondaryKey: { + constraints: { + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.secondaryKey", + xmlName: "properties.secondaryKey", type: { name: "String" } }, - appType: { - serializedName: "appType", - xmlName: "appType", + stateComment: { + serializedName: "properties.stateComment", + xmlName: "properties.stateComment", type: { name: "String" } }, - confirmation: { - serializedName: "confirmation", - xmlName: "confirmation", + allowTracing: { + serializedName: "properties.allowTracing", + xmlName: "properties.allowTracing", type: { - name: "String" + name: "Boolean" } } } } }; -export const UserUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "UserUpdateParametersProperties", +export const GlobalSchemaContract: coreClient.CompositeMapper = { + serializedName: "GlobalSchemaContract", type: { name: "Composite", - className: "UserUpdateParametersProperties", + className: "GlobalSchemaContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 - }, - serializedName: "email", - xmlName: "email", + ...ProxyResource.type.modelProperties, + schemaType: { + serializedName: "properties.schemaType", + xmlName: "properties.schemaType", type: { name: "String" } }, - password: { - serializedName: "password", - xmlName: "password", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "firstName", - xmlName: "firstName", + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { - name: "String" + name: "any" } }, - lastName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "lastName", - xmlName: "lastName", + document: { + serializedName: "properties.document", + xmlName: "properties.document", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const IdentityProviderContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContractProperties", +export const TenantSettingsContract: coreClient.CompositeMapper = { + serializedName: "TenantSettingsContract", type: { name: "Composite", - className: "IdentityProviderContractProperties", + className: "TenantSettingsContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - required: true, - xmlName: "clientId", - type: { - name: "String" - } - }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - xmlName: "clientSecret", + ...ProxyResource.type.modelProperties, + settings: { + serializedName: "properties.settings", + xmlName: "properties.settings", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContractProperties", +export const AccessInformationContract: coreClient.CompositeMapper = { + serializedName: "AccessInformationContract", type: { name: "Composite", - className: "IdentityProviderCreateContractProperties", + className: "AccessInformationContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - required: true, - xmlName: "clientId", + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - required: true, - xmlName: "clientSecret", + principalId: { + serializedName: "properties.principalId", + xmlName: "properties.principalId", type: { name: "String" } + }, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } } } } }; -export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderUpdateProperties", +export const OperationResultContract: coreClient.CompositeMapper = { + serializedName: "OperationResultContract", type: { name: "Composite", - className: "IdentityProviderUpdateProperties", + className: "OperationResultContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - xmlName: "clientId", + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - xmlName: "clientSecret", + status: { + serializedName: "properties.status", + xmlName: "properties.status", + type: { + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] + } + }, + started: { + serializedName: "properties.started", + xmlName: "properties.started", + type: { + name: "DateTime" + } + }, + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", + type: { + name: "DateTime" + } + }, + resultInfo: { + serializedName: "properties.resultInfo", + xmlName: "properties.resultInfo", type: { name: "String" } + }, + error: { + serializedName: "properties.error", + xmlName: "properties.error", + type: { + name: "Composite", + className: "ErrorResponseBody" + } + }, + actionLog: { + serializedName: "properties.actionLog", + readOnly: true, + xmlName: "properties.actionLog", + xmlElementName: "OperationResultLogItemContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationResultLogItemContract" + } + } + } } } } }; -export const NamedValueContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueContractProperties", +export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { + serializedName: "TenantConfigurationSyncStateContract", type: { name: "Composite", - className: "NamedValueContractProperties", + className: "TenantConfigurationSyncStateContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + ...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: "String" + name: "Boolean" } }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "value", - xmlName: "value", + isGitEnabled: { + serializedName: "properties.isGitEnabled", + xmlName: "properties.isGitEnabled", type: { - name: "String" + name: "Boolean" } }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + syncDate: { + serializedName: "properties.syncDate", + xmlName: "properties.syncDate", type: { - name: "Composite", - className: "KeyVaultContractProperties" + name: "DateTime" + } + }, + configurationChangeDate: { + serializedName: "properties.configurationChangeDate", + xmlName: "properties.configurationChangeDate", + type: { + name: "DateTime" + } + }, + lastOperationId: { + serializedName: "properties.lastOperationId", + xmlName: "properties.lastOperationId", + type: { + name: "String" } } } } }; -export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContractProperties", +export const DocumentationContract: coreClient.CompositeMapper = { + serializedName: "DocumentationContract", type: { name: "Composite", - className: "NamedValueCreateContractProperties", + className: "DocumentationContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "value", - xmlName: "value", + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { name: "String" } - }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", - type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" - } } } } }; -export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueUpdateParameterProperties", +export const ResolverResultContract: coreClient.CompositeMapper = { + serializedName: "ResolverResultContract", type: { name: "Composite", - className: "NamedValueUpdateParameterProperties", + className: "ResolverResultContract", modelProperties: { - ...NamedValueEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - Pattern: new RegExp("^[A-Za-z0-9-._]+$"), - MaxLength: 256, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - value: { - constraints: { - MaxLength: 4096, - MinLength: 1 - }, - serializedName: "value", - xmlName: "value", + status: { + serializedName: "properties.status", + xmlName: "properties.status", type: { - name: "String" + name: "Enum", + allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] } }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + started: { + serializedName: "properties.started", + xmlName: "properties.started", type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" + name: "DateTime" } - } - } - } -}; - -export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdateProperties", - type: { - name: "Composite", - className: "ApiCreateOrUpdateProperties", - modelProperties: { - ...ApiContractProperties.type.modelProperties, - value: { - serializedName: "value", - xmlName: "value", + }, + updated: { + serializedName: "properties.updated", + xmlName: "properties.updated", type: { - name: "String" + name: "DateTime" } }, - format: { - serializedName: "format", - xmlName: "format", + resultInfo: { + serializedName: "properties.resultInfo", + xmlName: "properties.resultInfo", type: { name: "String" } }, - wsdlSelector: { - serializedName: "wsdlSelector", - xmlName: "wsdlSelector", + error: { + serializedName: "properties.error", + xmlName: "properties.error", type: { name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" + className: "ErrorResponseBody" } }, - soapApiType: { - serializedName: "apiType", - xmlName: "apiType", + actionLog: { + serializedName: "properties.actionLog", + readOnly: true, + xmlName: "properties.actionLog", + xmlElementName: "ResolverResultLogItemContract", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResolverResultLogItemContract" + } + } } } } @@ -14587,11 +15982,130 @@ export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const TagUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_updateHeaders", +export const TagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_updateHeaders", + type: { + name: "Composite", + className: "TagUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_updateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "TagUpdateHeaders", + className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -14995,6 +16509,74 @@ export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper } }; +export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiWikiGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getHeaders", + type: { + name: "Composite", + className: "ApiWikiGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiWikiCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_updateHeaders", + type: { + name: "Composite", + className: "ApiWikiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { serializedName: "ApiVersionSet_getEntityTagHeaders", type: { @@ -15148,6 +16730,142 @@ export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = } }; +export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationProvider_getHeaders", + type: { + name: "Composite", + className: "AuthorizationProviderGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_getHeaders", + type: { + name: "Composite", + className: "AuthorizationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_confirmConsentCodeHeaders", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginLinks_postHeaders", + type: { + name: "Composite", + className: "AuthorizationLoginLinksPostHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_getHeaders", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { serializedName: "Backend_getEntityTagHeaders", type: { @@ -15352,15 +17070,100 @@ export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { } }; -export const ContentTypeGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_getHeaders", +export const ContentTypeGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_getHeaders", + type: { + name: "Composite", + className: "ContentTypeGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ContentTypeCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getEntityTagHeaders", + type: { + name: "Composite", + className: "ContentItemGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ContentItemGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getHeaders", + type: { + name: "Composite", + className: "ContentItemGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ContentItemCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { + serializedName: "DeletedServices_purgeHeaders", type: { name: "Composite", - className: "ContentTypeGetHeaders", + className: "DeletedServicesPurgeHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15369,15 +17172,15 @@ export const ContentTypeGetHeaders: coreClient.CompositeMapper = { } }; -export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_createOrUpdateHeaders", +export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_restoreHeaders", type: { name: "Composite", - className: "ContentTypeCreateOrUpdateHeaders", + className: "ApiManagementServiceRestoreHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15386,15 +17189,15 @@ export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getEntityTagHeaders", +export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_backupHeaders", type: { name: "Composite", - className: "ContentItemGetEntityTagHeaders", + className: "ApiManagementServiceBackupHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15403,15 +17206,15 @@ export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getHeaders", +export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_migrateToStv2Headers", type: { name: "Composite", - className: "ContentItemGetHeaders", + className: "ApiManagementServiceMigrateToStv2Headers", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15420,15 +17223,16 @@ export const ContentItemGetHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_createOrUpdateHeaders", +export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = { + serializedName: + "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", type: { name: "Composite", - className: "ContentItemCreateOrUpdateHeaders", + className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -16236,6 +18040,91 @@ export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; +export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getEntityTagHeaders", + type: { + name: "Composite", + className: "PolicyFragmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getHeaders", + type: { + name: "Composite", + className: "PolicyFragmentGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "PolicyFragmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getEntityTagHeaders", + type: { + name: "Composite", + className: "PortalConfigGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PortalConfigGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getHeaders", + type: { + name: "Composite", + className: "PortalConfigGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { serializedName: "PortalRevision_getEntityTagHeaders", type: { @@ -16525,6 +18414,108 @@ export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; +export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getEntityTagHeaders", + type: { + name: "Composite", + className: "ProductWikiGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getHeaders", + type: { + name: "Composite", + className: "ProductWikiGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ProductWikiCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_updateHeaders", + type: { + name: "Composite", + className: "ProductWikiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductWikisListHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listHeaders", + type: { + name: "Composite", + className: "ProductWikisListHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listNextHeaders", + type: { + name: "Composite", + className: "ProductWikisListNextHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { serializedName: "GlobalSchema_getEntityTagHeaders", type: { @@ -16847,3 +18838,71 @@ export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { } } }; + +export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getEntityTagHeaders", + type: { + name: "Composite", + className: "DocumentationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getHeaders", + type: { + name: "Composite", + className: "DocumentationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "DocumentationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_updateHeaders", + type: { + name: "Composite", + className: "DocumentationUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts index 601573208ccf..5fbad6e2b16b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts @@ -19,6 +19,8 @@ import { OperationUpdateContract as OperationUpdateContractMapper, PolicyContract as PolicyContractMapper, TagCreateUpdateParameters as TagCreateUpdateParametersMapper, + ResolverContract as ResolverContractMapper, + ResolverUpdateContract as ResolverUpdateContractMapper, SchemaContract as SchemaContractMapper, DiagnosticContract as DiagnosticContractMapper, IssueContract as IssueContractMapper, @@ -26,10 +28,17 @@ import { IssueCommentContract as IssueCommentContractMapper, IssueAttachmentContract as IssueAttachmentContractMapper, TagDescriptionCreateParameters as TagDescriptionCreateParametersMapper, + WikiContract as WikiContractMapper, + 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, BackendContract as BackendContractMapper, BackendUpdateParameters as BackendUpdateParametersMapper, BackendReconnectContract as BackendReconnectContractMapper, @@ -61,6 +70,8 @@ import { NamedValueUpdateParameters as NamedValueUpdateParametersMapper, OpenidConnectProviderContract as OpenidConnectProviderContractMapper, OpenidConnectProviderUpdateContract as OpenidConnectProviderUpdateContractMapper, + PolicyFragmentContract as PolicyFragmentContractMapper, + PortalConfigContract as PortalConfigContractMapper, PortalRevisionContract as PortalRevisionContractMapper, PortalSigninSettings as PortalSigninSettingsMapper, PortalSignupSettings as PortalSignupSettingsMapper, @@ -78,7 +89,9 @@ import { SaveConfigurationParameter as SaveConfigurationParameterMapper, UserCreateParameters as UserCreateParametersMapper, UserUpdateParameters as UserUpdateParametersMapper, - UserTokenParameters as UserTokenParametersMapper + UserTokenParameters as UserTokenParametersMapper, + DocumentationContract as DocumentationContractMapper, + DocumentationUpdateContract as DocumentationUpdateContractMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -109,6 +122,10 @@ export const $host: OperationURLParameter = { export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, serializedName: "resourceGroupName", required: true, xmlName: "resourceGroupName", @@ -199,7 +216,7 @@ export const expandApiVersionSet: OperationQueryParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-08-01", + defaultValue: "2022-08-01", isConstant: true, serializedName: "api-version", type: { @@ -211,6 +228,9 @@ export const apiVersion: OperationQueryParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { + constraints: { + MinLength: 1 + }, serializedName: "subscriptionId", required: true, xmlName: "subscriptionId", @@ -459,6 +479,32 @@ export const parameters6: OperationParameter = { mapper: TagCreateUpdateParametersMapper }; +export const resolverId: OperationURLParameter = { + parameterPath: "resolverId", + mapper: { + constraints: { + MaxLength: 80, + MinLength: 1 + }, + serializedName: "resolverId", + required: true, + xmlName: "resolverId", + type: { + name: "String" + } + } +}; + +export const parameters7: OperationParameter = { + parameterPath: "parameters", + mapper: ResolverContractMapper +}; + +export const parameters8: OperationParameter = { + parameterPath: "parameters", + mapper: ResolverUpdateContractMapper +}; + export const accept1: OperationParameter = { parameterPath: "accept", mapper: { @@ -488,7 +534,7 @@ export const schemaId: OperationURLParameter = { } }; -export const parameters7: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: SchemaContractMapper }; @@ -521,7 +567,7 @@ export const diagnosticId: OperationURLParameter = { } }; -export const parameters8: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: DiagnosticContractMapper }; @@ -554,12 +600,12 @@ export const issueId: OperationURLParameter = { } }; -export const parameters9: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: IssueContractMapper }; -export const parameters10: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: IssueUpdateContractMapper }; @@ -581,7 +627,7 @@ export const commentId: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: IssueCommentContractMapper }; @@ -603,7 +649,7 @@ export const attachmentId: OperationURLParameter = { } }; -export const parameters12: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: IssueAttachmentContractMapper }; @@ -625,7 +671,7 @@ export const tagDescriptionId: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: TagDescriptionCreateParametersMapper }; @@ -641,6 +687,16 @@ export const includeNotTaggedOperations: OperationQueryParameter = { } }; +export const parameters16: OperationParameter = { + parameterPath: "parameters", + mapper: WikiContractMapper +}; + +export const parameters17: OperationParameter = { + parameterPath: "parameters", + mapper: WikiUpdateContractMapper +}; + export const format1: OperationQueryParameter = { parameterPath: "format", mapper: { @@ -682,12 +738,12 @@ export const versionSetId: OperationURLParameter = { } }; -export const parameters14: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: ApiVersionSetContractMapper }; -export const parameters15: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", mapper: ApiVersionSetUpdateParametersMapper }; @@ -709,16 +765,92 @@ export const authsid: OperationURLParameter = { } }; -export const parameters16: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationServerContractMapper }; -export const parameters17: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationServerUpdateContractMapper }; +export const authorizationProviderId: OperationURLParameter = { + parameterPath: "authorizationProviderId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "authorizationProviderId", + required: true, + xmlName: "authorizationProviderId", + type: { + name: "String" + } + } +}; + +export const parameters22: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationProviderContractMapper +}; + +export const authorizationId: OperationURLParameter = { + parameterPath: "authorizationId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "authorizationId", + required: true, + xmlName: "authorizationId", + type: { + name: "String" + } + } +}; + +export const parameters23: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationContractMapper +}; + +export const parameters24: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationConfirmConsentCodeRequestContractMapper +}; + +export const parameters25: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationLoginRequestContractMapper +}; + +export const authorizationAccessPolicyId: OperationURLParameter = { + parameterPath: "authorizationAccessPolicyId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "authorizationAccessPolicyId", + required: true, + xmlName: "authorizationAccessPolicyId", + type: { + name: "String" + } + } +}; + +export const parameters26: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationAccessPolicyContractMapper +}; + export const backendId: OperationURLParameter = { parameterPath: "backendId", mapper: { @@ -735,17 +867,17 @@ export const backendId: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: BackendContractMapper }; -export const parameters19: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: BackendUpdateParametersMapper }; -export const parameters20: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: ["options", "parameters"], mapper: BackendReconnectContractMapper }; @@ -767,12 +899,12 @@ export const cacheId: OperationURLParameter = { } }; -export const parameters21: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: CacheContractMapper }; -export const parameters22: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: CacheUpdateParametersMapper }; @@ -805,7 +937,7 @@ export const certificateId: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: CertificateCreateOrUpdateParametersMapper }; @@ -831,7 +963,7 @@ export const contentTypeId: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: ContentTypeContractMapper }; @@ -852,7 +984,7 @@ export const contentItemId: OperationURLParameter = { } }; -export const parameters25: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: ContentItemContractMapper }; @@ -869,27 +1001,27 @@ export const location: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceBackupRestoreParametersMapper }; -export const parameters27: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceResourceMapper }; -export const parameters28: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceUpdateParametersMapper }; -export const parameters29: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper }; -export const parameters30: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: ["options", "parameters"], mapper: ApiManagementServiceApplyNetworkConfigurationParametersMapper }; @@ -906,7 +1038,7 @@ export const templateName: OperationURLParameter = { } }; -export const parameters31: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: EmailTemplateUpdateParametersMapper }; @@ -927,17 +1059,17 @@ export const gatewayId: OperationURLParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: GatewayContractMapper }; -export const parameters33: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: GatewayKeyRegenerationRequestContractMapper }; -export const parameters34: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: GatewayTokenRequestContractMapper }; @@ -958,17 +1090,17 @@ export const hcId: OperationURLParameter = { } }; -export const parameters35: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: GatewayHostnameConfigurationContractMapper }; -export const parameters36: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: ["options", "parameters"], mapper: AssociationContractMapper }; -export const parameters37: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: GatewayCertificateAuthorityContractMapper }; @@ -989,12 +1121,12 @@ export const groupId: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: GroupCreateParametersMapper }; -export const parameters39: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: GroupUpdateParametersMapper }; @@ -1027,12 +1159,12 @@ export const identityProviderName: OperationURLParameter = { } }; -export const parameters40: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: IdentityProviderCreateContractMapper }; -export const parameters41: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: IdentityProviderUpdateParametersMapper }; @@ -1053,12 +1185,12 @@ export const loggerId: OperationURLParameter = { } }; -export const parameters42: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: LoggerContractMapper }; -export const parameters43: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: LoggerUpdateContractMapper }; @@ -1079,12 +1211,12 @@ export const namedValueId: OperationURLParameter = { } }; -export const parameters44: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: NamedValueCreateContractMapper }; -export const parameters45: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: NamedValueUpdateParametersMapper }; @@ -1144,12 +1276,12 @@ export const opid: OperationURLParameter = { } }; -export const parameters46: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: OpenidConnectProviderContractMapper }; -export const parameters47: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: OpenidConnectProviderUpdateContractMapper }; @@ -1166,6 +1298,71 @@ export const scope1: OperationQueryParameter = { } }; +export const orderby: OperationQueryParameter = { + parameterPath: ["options", "orderby"], + mapper: { + serializedName: "$orderby", + xmlName: "$orderby", + type: { + name: "String" + } + } +}; + +export const id: OperationURLParameter = { + parameterPath: "id", + mapper: { + constraints: { + Pattern: new RegExp("(^[\\w]+$)|(^[\\w][\\w\\-]+[\\w]$)"), + MaxLength: 80, + MinLength: 1 + }, + serializedName: "id", + required: true, + xmlName: "id", + type: { + name: "String" + } + } +}; + +export const format2: OperationQueryParameter = { + parameterPath: ["options", "format"], + mapper: { + serializedName: "format", + xmlName: "format", + type: { + name: "String" + } + } +}; + +export const parameters57: OperationParameter = { + parameterPath: "parameters", + mapper: PolicyFragmentContractMapper +}; + +export const portalConfigId: OperationURLParameter = { + parameterPath: "portalConfigId", + mapper: { + constraints: { + MaxLength: 80, + MinLength: 1 + }, + serializedName: "portalConfigId", + required: true, + xmlName: "portalConfigId", + type: { + name: "String" + } + } +}; + +export const parameters58: OperationParameter = { + parameterPath: "parameters", + mapper: PortalConfigContractMapper +}; + export const portalRevisionId: OperationURLParameter = { parameterPath: "portalRevisionId", mapper: { @@ -1182,22 +1379,22 @@ export const portalRevisionId: OperationURLParameter = { } }; -export const parameters48: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: PortalRevisionContractMapper }; -export const parameters49: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: PortalSigninSettingsMapper }; -export const parameters50: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: PortalSignupSettingsMapper }; -export const parameters51: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: PortalDelegationSettingsMapper }; @@ -1242,12 +1439,12 @@ export const expandGroups: OperationQueryParameter = { } }; -export const parameters52: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: ProductContractMapper }; -export const parameters53: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: ProductUpdateParametersMapper }; @@ -1286,7 +1483,7 @@ export const quotaCounterKey: OperationURLParameter = { } }; -export const parameters54: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: QuotaCounterValueUpdateContractMapper }; @@ -1315,17 +1512,6 @@ export const filter1: OperationQueryParameter = { } }; -export const orderby: OperationQueryParameter = { - parameterPath: ["options", "orderby"], - mapper: { - serializedName: "$orderby", - xmlName: "$orderby", - type: { - name: "String" - } - } -}; - export const interval: OperationQueryParameter = { parameterPath: "interval", mapper: { @@ -1338,7 +1524,7 @@ export const interval: OperationQueryParameter = { } }; -export const parameters55: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: GlobalSchemaContractMapper }; @@ -1371,7 +1557,7 @@ export const sid: OperationURLParameter = { } }; -export const parameters56: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: SubscriptionCreateParametersMapper }; @@ -1398,7 +1584,7 @@ export const appType: OperationQueryParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: SubscriptionUpdateParametersMapper }; @@ -1415,17 +1601,17 @@ export const accessName: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: AccessInformationCreateParametersMapper }; -export const parameters59: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: AccessInformationUpdateParametersMapper }; -export const parameters60: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: DeployConfigurationParametersMapper }; @@ -1442,22 +1628,49 @@ export const configurationName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", mapper: SaveConfigurationParameterMapper }; -export const parameters62: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", mapper: UserCreateParametersMapper }; -export const parameters63: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", mapper: UserUpdateParametersMapper }; -export const parameters64: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: UserTokenParametersMapper }; + +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 parameters76: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationContractMapper +}; + +export const parameters77: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationUpdateContractMapper +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts index c881a9a1936a..c1635689c9a8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ApiContract, ApiListByServiceNextOptionalParams, @@ -54,7 +58,7 @@ export class ApiImpl implements Api { /** * Lists all APIs of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -138,7 +142,7 @@ export class ApiImpl implements Api { /** * Lists a collection of apis associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -218,7 +222,7 @@ export class ApiImpl implements Api { /** * Lists all APIs of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -235,7 +239,7 @@ export class ApiImpl implements Api { /** * Gets the entity state (Etag) version of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -255,7 +259,7 @@ export class ApiImpl implements Api { /** * Gets the details of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -275,7 +279,7 @@ export class ApiImpl implements Api { /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -289,8 +293,8 @@ export class ApiImpl implements Api { parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiCreateOrUpdateResponse > > { @@ -300,7 +304,7 @@ export class ApiImpl implements Api { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -333,15 +337,18 @@ export class ApiImpl implements Api { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, apiId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, apiId, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ApiCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -349,7 +356,7 @@ export class ApiImpl implements Api { /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -375,7 +382,7 @@ export class ApiImpl implements Api { /** * Updates the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -400,7 +407,7 @@ export class ApiImpl implements Api { /** * Deletes the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -423,7 +430,7 @@ export class ApiImpl implements Api { /** * Lists a collection of apis associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -440,7 +447,7 @@ export class ApiImpl implements Api { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -459,7 +466,7 @@ export class ApiImpl implements Api { /** * ListByTagsNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByTags method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts index e07cce2b7b89..7f8a30b7977e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts @@ -45,7 +45,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Lists all diagnostics of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -138,7 +138,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Lists all diagnostics of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -157,7 +157,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -179,7 +179,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Gets the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -201,7 +201,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Creates a new Diagnostic for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -232,7 +232,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Updates the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -267,7 +267,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * Deletes the specified Diagnostic from an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -292,7 +292,7 @@ export class ApiDiagnosticImpl implements ApiDiagnostic { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. @@ -408,7 +408,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -439,7 +439,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts index 88c3e56ef789..c87591913545 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts @@ -33,7 +33,7 @@ export class ApiExportImpl implements ApiExport { /** * Gets the details of the API specified by its identifier in the format specified to the Storage Blob * with SAS Key valid for 5 minutes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts index 19350d2be36f..527cad10dd31 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssue.ts @@ -46,7 +46,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Lists all issues associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -139,7 +139,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Lists all issues associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -158,7 +158,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -179,7 +179,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Gets the details of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -200,7 +200,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Creates a new Issue for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -223,7 +223,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Updates an existing issue for an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -257,7 +257,7 @@ export class ApiIssueImpl implements ApiIssue { /** * Deletes the specified Issue from an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -281,7 +281,7 @@ export class ApiIssueImpl implements ApiIssue { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. @@ -401,7 +401,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters9, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -432,7 +432,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts index 75f8dc935675..b4e477407b59 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts @@ -43,7 +43,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Lists all attachments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -145,7 +145,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Lists all attachments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -166,7 +166,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -189,7 +189,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Gets the details of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -212,7 +212,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Creates a new Attachment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -245,7 +245,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -279,7 +279,7 @@ export class ApiIssueAttachmentImpl implements ApiIssueAttachment { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts index a93a6852c7de..a7449a1a1e67 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts @@ -43,7 +43,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Lists all comments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -145,7 +145,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Lists all comments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -166,7 +166,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -189,7 +189,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Gets the details of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -212,7 +212,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Creates a new Comment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -245,7 +245,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -279,7 +279,7 @@ export class ApiIssueCommentImpl implements ApiIssueComment { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts index 681c8dbc4f35..874d5245fd79 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ApiManagementServiceResource, ApiManagementServiceListByResourceGroupNextOptionalParams, @@ -36,6 +40,8 @@ import { ApiManagementServiceGetOptionalParams, ApiManagementServiceGetResponse, ApiManagementServiceDeleteOptionalParams, + ApiManagementServiceMigrateToStv2OptionalParams, + ApiManagementServiceMigrateToStv2Response, ApiManagementServiceGetSsoTokenOptionalParams, ApiManagementServiceGetSsoTokenResponse, ApiManagementServiceCheckNameAvailabilityParameters, @@ -64,7 +70,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * List all API Management services within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( @@ -189,7 +195,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -200,8 +206,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceRestoreResponse > > { @@ -211,7 +217,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -244,15 +250,18 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - restoreOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: restoreOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceRestoreResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -262,7 +271,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -285,7 +294,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -296,8 +305,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceBackupResponse > > { @@ -307,7 +316,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -340,15 +349,18 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - backupOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: backupOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceBackupResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -357,7 +369,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -380,7 +392,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -391,8 +403,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceCreateOrUpdateResponse > > { @@ -402,7 +414,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -435,13 +447,16 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -451,7 +466,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -473,7 +488,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -484,8 +499,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceUpdateResponse > > { @@ -495,7 +510,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -528,13 +543,16 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, parameters, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -543,7 +561,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -565,7 +583,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Gets an API Management service resource description. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -582,7 +600,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -590,14 +608,14 @@ export class ApiManagementServiceImpl implements ApiManagementService { resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -630,13 +648,13 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -645,7 +663,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -662,9 +680,104 @@ export class ApiManagementServiceImpl implements ApiManagementService { return poller.pollUntilDone(); } + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginMigrateToStv2( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementServiceMigrateToStv2Response + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: migrateToStv2OperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceMigrateToStv2Response, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + async beginMigrateToStv2AndWait( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise { + const poller = await this.beginMigrateToStv2( + resourceGroupName, + serviceName, + options + ); + return poller.pollUntilDone(); + } + /** * List all API Management services within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup( @@ -689,7 +802,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -735,7 +848,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -744,8 +857,8 @@ export class ApiManagementServiceImpl implements ApiManagementService { serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams ): Promise< - PollerLike< - PollOperationState< + SimplePollerLike< + OperationState< ApiManagementServiceApplyNetworkConfigurationUpdatesResponse >, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse @@ -757,7 +870,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -790,15 +903,20 @@ export class ApiManagementServiceImpl implements ApiManagementService { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, options }, - applyNetworkConfigurationUpdatesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, options }, + spec: applyNetworkConfigurationUpdatesOperationSpec + }); + const poller = await createHttpPoller< + ApiManagementServiceApplyNetworkConfigurationUpdatesResponse, + OperationState< + ApiManagementServiceApplyNetworkConfigurationUpdatesResponse + > + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -807,7 +925,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -826,7 +944,7 @@ export class ApiManagementServiceImpl implements ApiManagementService { /** * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ @@ -880,7 +998,7 @@ const restoreOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -913,7 +1031,7 @@ const backupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -946,7 +1064,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -979,7 +1097,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1036,6 +1154,37 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const migrateToStv2OperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 201: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 202: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 204: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", @@ -1108,7 +1257,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1153,7 +1302,7 @@ const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts index e6828b5fdf6f..4c96ac12b9bf 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts @@ -36,7 +36,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { /** * Gets all available SKU for a given API Management service - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -120,7 +120,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { /** * Gets all available SKU for a given API Management service - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -137,7 +137,7 @@ export class ApiManagementServiceSkusImpl implements ApiManagementServiceSkus { /** * ListAvailableServiceSkusNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListAvailableServiceSkus * method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts index 6475a009ca4d..719e17d32e77 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts @@ -46,7 +46,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Lists a collection of the operations for the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -140,7 +140,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Lists a collection of the operations for the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -160,7 +160,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Gets the entity state (Etag) version of the API operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -183,7 +183,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Gets the details of the API Operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -206,7 +206,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Creates a new operation in the API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -238,7 +238,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Updates the details of the operation in the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -274,7 +274,7 @@ export class ApiOperationImpl implements ApiOperation { /** * Deletes the specified operation in the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -300,7 +300,7 @@ export class ApiOperationImpl implements ApiOperation { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts index 14650d18cd28..5bec2b5db52c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperationPolicy.ts @@ -39,7 +39,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Get the list of policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -62,7 +62,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Gets the entity state (Etag) version of the API operation policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -87,7 +87,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Get the policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -112,7 +112,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Creates or updates policy configuration for the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -147,7 +147,7 @@ export class ApiOperationPolicyImpl implements ApiOperationPolicy { /** * Deletes the policy configuration at the Api Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts index 2c89c1c2e0cb..9bcc792f5dd5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiPolicy.ts @@ -39,7 +39,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -59,7 +59,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Gets the entity state (Etag) version of the API policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -81,7 +81,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -103,7 +103,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Creates or updates policy configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -127,7 +127,7 @@ export class ApiPolicyImpl implements ApiPolicy { /** * Deletes the policy configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts index 7fb3c2555b2d..b9a226a7aadb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiProduct.ts @@ -36,7 +36,7 @@ export class ApiProductImpl implements ApiProduct { /** * Lists all Products, which the API is part of. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class ApiProductImpl implements ApiProduct { /** * Lists all Products, which the API is part of. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class ApiProductImpl implements ApiProduct { /** * ListByApisNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByApis method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts index 09fa04bb1a6a..345185b5a2d9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts @@ -47,7 +47,7 @@ export class ApiReleaseImpl implements ApiRelease { * Lists all releases of an API. An API release is created when making an API Revision current. * Releases are also used to rollback to previous revisions. Results will be paged and can be * constrained by the $top and $skip parameters. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -142,7 +142,7 @@ export class ApiReleaseImpl implements ApiRelease { * Lists all releases of an API. An API release is created when making an API Revision current. * Releases are also used to rollback to previous revisions. Results will be paged and can be * constrained by the $top and $skip parameters. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -161,7 +161,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Returns the etag of an API release. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -183,7 +183,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Returns the details of an API release. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -205,7 +205,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Creates a new Release for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -229,7 +229,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Updates the details of the release of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -264,7 +264,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * Deletes the specified release in the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -289,7 +289,7 @@ export class ApiReleaseImpl implements ApiRelease { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts index 7ba66db5eb26..c76a9aa1f6bf 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts @@ -36,7 +36,7 @@ export class ApiRevisionImpl implements ApiRevision { /** * Lists all revisions of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class ApiRevisionImpl implements ApiRevision { /** * Lists all revisions of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class ApiRevisionImpl implements ApiRevision { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByService method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts index 2844e1b40479..81cdbcbce722 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { SchemaContract, ApiSchemaListByApiNextOptionalParams, @@ -45,7 +49,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -139,7 +143,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -159,7 +163,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Gets the entity state (Etag) version of the schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -181,7 +185,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -203,7 +207,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -219,8 +223,8 @@ export class ApiSchemaImpl implements ApiSchema { parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiSchemaCreateOrUpdateResponse > > { @@ -230,7 +234,7 @@ export class ApiSchemaImpl implements ApiSchema { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -263,15 +267,25 @@ export class ApiSchemaImpl implements ApiSchema { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, apiId, schemaId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + apiId, + schemaId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ApiSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -279,7 +293,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -308,7 +322,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * Deletes the schema configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -333,7 +347,7 @@ export class ApiSchemaImpl implements ApiSchema { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -458,7 +472,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts index f21da82fdc8a..34f2b6f132b9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts @@ -45,7 +45,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on * API level but tag may be assigned to the Operations - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -140,7 +140,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on * API level but tag may be assigned to the Operations - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -160,7 +160,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -183,7 +183,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Get Tag description in scope of API - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -206,7 +206,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Create/Update tag description in scope of the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -238,7 +238,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * Delete tag description for the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -271,7 +271,7 @@ export class ApiTagDescriptionImpl implements ApiTagDescription { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -388,7 +388,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts index 1d0ca238540f..2057a4b4532a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts @@ -46,7 +46,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Lists a collection of API Version Sets in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -130,7 +130,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Lists a collection of API Version Sets in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -147,7 +147,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -167,7 +167,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Gets the details of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -187,7 +187,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Creates or Updates a Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -209,7 +209,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Updates the details of the Api VersionSet specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -241,7 +241,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * Deletes specific Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -264,7 +264,7 @@ export class ApiVersionSetImpl implements ApiVersionSet { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -375,7 +375,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -405,7 +405,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts new file mode 100644 index 000000000000..97883b205cfb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWiki.ts @@ -0,0 +1,280 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { ApiWiki } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiWikiGetEntityTagOptionalParams, + ApiWikiGetEntityTagResponse, + ApiWikiGetOptionalParams, + ApiWikiGetResponse, + WikiContract, + ApiWikiCreateOrUpdateOptionalParams, + ApiWikiCreateOrUpdateResponse, + WikiUpdateContract, + ApiWikiUpdateOptionalParams, + ApiWikiUpdateResponse, + ApiWikiDeleteOptionalParams +} from "../models"; + +/** Class containing ApiWiki operations. */ +export class ApiWikiImpl implements ApiWiki { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiWiki class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + getOperationSpec + ); + } + + /** + * Creates a new Wiki for an API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + parameters: WikiContract, + options?: ApiWikiCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ApiWikiUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, ifMatch, parameters, options }, + updateOperationSpec + ); + } + + /** + * Deletes the specified Wiki from an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + options?: ApiWikiDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, ifMatch, options }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.ApiWikiGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ApiWikiUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts new file mode 100644 index 000000000000..d4aeb49360f5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts @@ -0,0 +1,217 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ApiWikis } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WikiContract, + ApiWikisListNextOptionalParams, + ApiWikisListOptionalParams, + ApiWikisListResponse, + ApiWikisListNextResponse +} from "../models"; + +/// +/** Class containing ApiWikis operations. */ +export class ApiWikisImpl implements ApiWikis { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ApiWikis class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the wikis for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + apiId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + apiId, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ApiWikisListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, serviceName, apiId, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + apiId, + options + )) { + yield* page; + } + } + + /** + * Gets the wikis for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + apiId: string, + nextLink: string, + options?: ApiWikisListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts new file mode 100644 index 000000000000..c347d55c595e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts @@ -0,0 +1,464 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Authorization } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AuthorizationContract, + AuthorizationListByAuthorizationProviderNextOptionalParams, + AuthorizationListByAuthorizationProviderOptionalParams, + AuthorizationListByAuthorizationProviderResponse, + AuthorizationGetOptionalParams, + AuthorizationGetResponse, + AuthorizationCreateOrUpdateOptionalParams, + AuthorizationCreateOrUpdateResponse, + AuthorizationDeleteOptionalParams, + AuthorizationConfirmConsentCodeRequestContract, + AuthorizationConfirmConsentCodeOptionalParams, + AuthorizationConfirmConsentCodeResponse, + AuthorizationListByAuthorizationProviderNextResponse +} from "../models"; + +/// +/** Class containing Authorization operations. */ +export class AuthorizationImpl implements Authorization { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class Authorization class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of authorization providers defined within a authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + public listByAuthorizationProvider( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByAuthorizationProviderPagingAll( + resourceGroupName, + serviceName, + authorizationProviderId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByAuthorizationProviderPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + options, + settings + ); + } + }; + } + + private async *listByAuthorizationProviderPagingPage( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AuthorizationListByAuthorizationProviderResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByAuthorizationProvider( + resourceGroupName, + serviceName, + authorizationProviderId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByAuthorizationProviderNext( + resourceGroupName, + serviceName, + authorizationProviderId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByAuthorizationProviderPagingAll( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByAuthorizationProviderPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of authorization providers defined within a authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + private _listByAuthorizationProvider( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, authorizationProviderId, options }, + listByAuthorizationProviderOperationSpec + ); + } + + /** + * Gets the details of the authorization specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationContract, + options?: AuthorizationCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes specific Authorization from the Authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + ifMatch: string, + options?: AuthorizationDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * Confirm valid consent code to suppress Authorizations anti-phishing page. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + confirmConsentCode( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationConfirmConsentCodeRequestContract, + options?: AuthorizationConfirmConsentCodeOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters, + options + }, + confirmConsentCodeOperationSpec + ); + } + + /** + * ListByAuthorizationProviderNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param nextLink The nextLink from the previous successful call to the ListByAuthorizationProvider + * method. + * @param options The options parameters. + */ + private _listByAuthorizationProviderNext( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + nextLink: string, + options?: AuthorizationListByAuthorizationProviderNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + nextLink, + options + }, + listByAuthorizationProviderNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByAuthorizationProviderOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationContract, + headersMapper: Mappers.AuthorizationGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationContract, + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.AuthorizationContract, + headersMapper: Mappers.AuthorizationCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const confirmConsentCodeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.AuthorizationConfirmConsentCodeHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByAuthorizationProviderNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts new file mode 100644 index 000000000000..021fe8debd36 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts @@ -0,0 +1,439 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AuthorizationAccessPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AuthorizationAccessPolicyContract, + AuthorizationAccessPolicyListByAuthorizationNextOptionalParams, + AuthorizationAccessPolicyListByAuthorizationOptionalParams, + AuthorizationAccessPolicyListByAuthorizationResponse, + AuthorizationAccessPolicyGetOptionalParams, + AuthorizationAccessPolicyGetResponse, + AuthorizationAccessPolicyCreateOrUpdateOptionalParams, + AuthorizationAccessPolicyCreateOrUpdateResponse, + AuthorizationAccessPolicyDeleteOptionalParams, + AuthorizationAccessPolicyListByAuthorizationNextResponse +} from "../models"; + +/// +/** Class containing AuthorizationAccessPolicy operations. */ +export class AuthorizationAccessPolicyImpl + implements AuthorizationAccessPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AuthorizationAccessPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of authorization access policy defined within a authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + public listByAuthorization( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByAuthorizationPagingAll( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByAuthorizationPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options, + settings + ); + } + }; + } + + private async *listByAuthorizationPagingPage( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AuthorizationAccessPolicyListByAuthorizationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByAuthorization( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByAuthorizationNext( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByAuthorizationPagingAll( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByAuthorizationPagingPage( + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of authorization access policy defined within a authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + private _listByAuthorization( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + options + }, + listByAuthorizationOperationSpec + ); + } + + /** + * Gets the details of the authorization access policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + options?: AuthorizationAccessPolicyGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates Authorization Access Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + parameters: AuthorizationAccessPolicyContract, + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes specific access policy from the Authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + ifMatch: string, + options?: AuthorizationAccessPolicyDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + authorizationAccessPolicyId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByAuthorizationNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param nextLink The nextLink from the previous successful call to the ListByAuthorization method. + * @param options The options parameters. + */ + private _listByAuthorizationNext( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + nextLink: string, + options?: AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + nextLink, + options + }, + listByAuthorizationNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByAuthorizationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationAccessPolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationAccessPolicyContract, + headersMapper: Mappers.AuthorizationAccessPolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId, + Parameters.authorizationAccessPolicyId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationAccessPolicyContract, + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.AuthorizationAccessPolicyContract, + headersMapper: Mappers.AuthorizationAccessPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters26, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId, + Parameters.authorizationAccessPolicyId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId, + Parameters.authorizationAccessPolicyId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByAuthorizationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationAccessPolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts new file mode 100644 index 000000000000..7a86c6edba4f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts @@ -0,0 +1,91 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { AuthorizationLoginLinks } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AuthorizationLoginRequestContract, + AuthorizationLoginLinksPostOptionalParams, + AuthorizationLoginLinksPostResponse +} from "../models"; + +/** Class containing AuthorizationLoginLinks operations. */ +export class AuthorizationLoginLinksImpl implements AuthorizationLoginLinks { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AuthorizationLoginLinks class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets authorization login links. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + post( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationLoginRequestContract, + options?: AuthorizationLoginLinksPostOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + authorizationId, + parameters, + options + }, + postOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const postOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/getLoginLinks", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationLoginResponseContract, + headersMapper: Mappers.AuthorizationLoginLinksPostHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId, + Parameters.authorizationId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts new file mode 100644 index 000000000000..603eae55b5fa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts @@ -0,0 +1,366 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AuthorizationProvider } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + AuthorizationProviderContract, + AuthorizationProviderListByServiceNextOptionalParams, + AuthorizationProviderListByServiceOptionalParams, + AuthorizationProviderListByServiceResponse, + AuthorizationProviderGetOptionalParams, + AuthorizationProviderGetResponse, + AuthorizationProviderCreateOrUpdateOptionalParams, + AuthorizationProviderCreateOrUpdateResponse, + AuthorizationProviderDeleteOptionalParams, + AuthorizationProviderListByServiceNextResponse +} from "../models"; + +/// +/** Class containing AuthorizationProvider operations. */ +export class AuthorizationProviderImpl implements AuthorizationProvider { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class AuthorizationProvider class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of authorization providers defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AuthorizationProviderListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of authorization providers defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the details of the authorization provider specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationProviderGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, authorizationProviderId, options }, + getOperationSpec + ); + } + + /** + * Creates or updates authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + parameters: AuthorizationProviderContract, + options?: AuthorizationProviderCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes specific authorization provider from the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + ifMatch: string, + options?: AuthorizationProviderDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authorizationProviderId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: AuthorizationProviderListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderContract, + headersMapper: Mappers.AuthorizationProviderGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderContract, + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.AuthorizationProviderContract, + headersMapper: Mappers.AuthorizationProviderCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.authorizationProviderId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AuthorizationProviderCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts index 76fccf11be77..99abc294e940 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts @@ -48,7 +48,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Lists a collection of authorization servers defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -132,7 +132,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Lists a collection of authorization servers defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -149,7 +149,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Gets the entity state (Etag) version of the authorizationServer specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -168,7 +168,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Gets the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -187,7 +187,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Creates new authorization server or updates an existing authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param parameters Create or update parameters. @@ -208,7 +208,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Updates the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -232,7 +232,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Deletes specific authorization server instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -254,7 +254,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * Gets the client secret details of the authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -273,7 +273,7 @@ export class AuthorizationServerImpl implements AuthorizationServer { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -384,7 +384,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -414,7 +414,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts index b0813f1e1097..c445f24cedbc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts @@ -47,7 +47,7 @@ export class BackendImpl implements Backend { /** * Lists a collection of backends in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -131,7 +131,7 @@ export class BackendImpl implements Backend { /** * Lists a collection of backends in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -148,7 +148,7 @@ export class BackendImpl implements Backend { /** * Gets the entity state (Etag) version of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -168,7 +168,7 @@ export class BackendImpl implements Backend { /** * Gets the details of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -188,7 +188,7 @@ export class BackendImpl implements Backend { /** * Creates or Updates a backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -210,7 +210,7 @@ export class BackendImpl implements Backend { /** * Updates an existing backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -242,7 +242,7 @@ export class BackendImpl implements Backend { /** * Deletes the specified backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -264,9 +264,9 @@ export class BackendImpl implements Backend { } /** - * Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no - * timeout was specified, timeout of 2 minutes is used. - * @param resourceGroupName The name of the resource group. + * Notifies the API Management gateway to create a new connection to the backend after the specified + * timeout. If no timeout was specified, timeout of 2 minutes is used. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -286,7 +286,7 @@ export class BackendImpl implements Backend { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -397,7 +397,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -427,7 +427,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -476,7 +476,7 @@ const reconnectOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts index ba8151a6606b..4c8a2d9f2f7c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts @@ -46,7 +46,7 @@ export class CacheImpl implements Cache { /** * Lists a collection of all external Caches in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -130,7 +130,7 @@ export class CacheImpl implements Cache { /** * Lists a collection of all external Caches in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -147,7 +147,7 @@ export class CacheImpl implements Cache { /** * Gets the entity state (Etag) version of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -167,7 +167,7 @@ export class CacheImpl implements Cache { /** * Gets the details of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -187,7 +187,7 @@ export class CacheImpl implements Cache { /** * Creates or updates an External Cache to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -209,7 +209,7 @@ export class CacheImpl implements Cache { /** * Updates the details of the cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -234,7 +234,7 @@ export class CacheImpl implements Cache { /** * Deletes specific Cache. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -257,7 +257,7 @@ export class CacheImpl implements Cache { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -363,7 +363,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -393,7 +393,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts index 2d327334eb6a..e4768349aeb3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts @@ -46,7 +46,7 @@ export class CertificateImpl implements Certificate { /** * Lists a collection of all certificates in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -130,7 +130,7 @@ export class CertificateImpl implements Certificate { /** * Lists a collection of all certificates in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -147,7 +147,7 @@ export class CertificateImpl implements Certificate { /** * Gets the entity state (Etag) version of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -167,7 +167,7 @@ export class CertificateImpl implements Certificate { /** * Gets the details of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -187,7 +187,7 @@ export class CertificateImpl implements Certificate { /** * Creates or updates the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -209,7 +209,7 @@ export class CertificateImpl implements Certificate { /** * Deletes specific certificate. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -232,7 +232,7 @@ export class CertificateImpl implements Certificate { /** * From KeyVault, Refresh the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -252,7 +252,7 @@ export class CertificateImpl implements Certificate { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -364,7 +364,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts index 2bfa42bde798..3f3cc3eac3b8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts @@ -43,7 +43,7 @@ export class ContentItemImpl implements ContentItem { /** * Lists developer portal's content items specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -136,7 +136,7 @@ export class ContentItemImpl implements ContentItem { /** * Lists developer portal's content items specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -156,7 +156,7 @@ export class ContentItemImpl implements ContentItem { /** * Returns the entity state (ETag) version of the developer portal's content item specified by its * identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -177,7 +177,7 @@ export class ContentItemImpl implements ContentItem { /** * Returns the developer portal's content item specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -198,7 +198,7 @@ export class ContentItemImpl implements ContentItem { /** * Creates a new developer portal's content item specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -228,7 +228,7 @@ export class ContentItemImpl implements ContentItem { /** * Removes the specified developer portal's content item. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -259,7 +259,7 @@ export class ContentItemImpl implements ContentItem { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param nextLink The nextLink from the previous successful call to the ListByService method. @@ -370,7 +370,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts index 3b4aa882b28c..e9208395eed7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts @@ -42,7 +42,7 @@ export class ContentTypeImpl implements ContentType { /** * Lists the developer portal's content types. Content types describe content items' properties, * validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -127,7 +127,7 @@ export class ContentTypeImpl implements ContentType { /** * Lists the developer portal's content types. Content types describe content items' properties, * validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -145,7 +145,7 @@ export class ContentTypeImpl implements ContentType { /** * Gets the details of the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -166,7 +166,7 @@ export class ContentTypeImpl implements ContentType { * Creates or updates the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Custom content types' identifiers need to start with * the `c-` prefix. Built-in content types can't be modified. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param parameters Create or update parameters. @@ -189,7 +189,7 @@ export class ContentTypeImpl implements ContentType { * Removes the specified developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Built-in content types (with identifiers starting * with the `c-` prefix) can't be removed. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -211,7 +211,7 @@ export class ContentTypeImpl implements ContentType { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -294,7 +294,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts index e6617d78ba61..d4a14c240964 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts @@ -38,7 +38,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Gets the entity state (Etag) version of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -55,7 +55,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Get Delegation Settings for the Portal. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -72,7 +72,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -94,7 +94,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Create or Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -113,7 +113,7 @@ export class DelegationSettingsImpl implements DelegationSettings { /** * Gets the secret validation key of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -186,7 +186,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -214,7 +214,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts index 7373b2943cb3..8dd8dab2cfc4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DeletedServiceContract, DeletedServicesListBySubscriptionNextOptionalParams, @@ -133,14 +137,14 @@ export class DeletedServicesImpl implements DeletedServices { serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -173,15 +177,15 @@ export class DeletedServicesImpl implements DeletedServices { }; }; - const lro = new LroImpl( - sendOperation, - { serviceName, location, options }, - purgeOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { serviceName, location, options }, + spec: purgeOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts index 6d479f38276e..d27a987dc82b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts @@ -45,7 +45,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Lists all diagnostics of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -129,7 +129,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Lists all diagnostics of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -146,7 +146,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -166,7 +166,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Gets the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -186,7 +186,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Creates a new Diagnostic or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -208,7 +208,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Updates the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -240,7 +240,7 @@ export class DiagnosticImpl implements Diagnostic { /** * Deletes the specified Diagnostic. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -263,7 +263,7 @@ export class DiagnosticImpl implements Diagnostic { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -374,7 +374,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -404,7 +404,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts new file mode 100644 index 000000000000..7550ac83335b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts @@ -0,0 +1,467 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Documentation } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + DocumentationContract, + DocumentationListByServiceNextOptionalParams, + DocumentationListByServiceOptionalParams, + DocumentationListByServiceResponse, + DocumentationGetEntityTagOptionalParams, + DocumentationGetEntityTagResponse, + DocumentationGetOptionalParams, + DocumentationGetResponse, + DocumentationCreateOrUpdateOptionalParams, + DocumentationCreateOrUpdateResponse, + DocumentationUpdateContract, + DocumentationUpdateOptionalParams, + DocumentationUpdateResponse, + DocumentationDeleteOptionalParams, + DocumentationListByServiceNextResponse +} from "../models"; + +/// +/** Class containing Documentation operations. */ +export class DocumentationImpl implements Documentation { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class Documentation class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all Documentations of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: DocumentationListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: DocumentationListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DocumentationListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: DocumentationListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Lists all Documentations of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: DocumentationListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the Documentation by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Documentation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, options }, + getOperationSpec + ); + } + + /** + * Creates a new Documentation or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + documentationId: string, + parameters: DocumentationContract, + options?: DocumentationCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the Documentation for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Documentation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + documentationId: string, + ifMatch: string, + parameters: DocumentationUpdateContract, + options?: DocumentationUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + documentationId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified Documentation from an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + documentationId: string, + ifMatch: string, + options?: DocumentationDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, documentationId, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: DocumentationListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DocumentationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.DocumentationGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters76, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DocumentationContract, + headersMapper: Mappers.DocumentationUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters77, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.documentationId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DocumentationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts index ebe9dfbf80ec..f718843e6496 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts @@ -47,7 +47,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets all email templates - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -131,7 +131,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets all email templates - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -148,7 +148,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets the entity state (Etag) version of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -167,7 +167,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Gets the details of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -186,7 +186,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Updates an Email Template. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param parameters Email Template update parameters. @@ -207,7 +207,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Updates API Management email template - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -238,7 +238,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * Reset the Email Template to default template provided by the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -260,7 +260,7 @@ export class EmailTemplateImpl implements EmailTemplate { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -369,7 +369,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -399,7 +399,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts index dc93c4c32df9..490287bf253f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts @@ -52,7 +52,7 @@ export class GatewayImpl implements Gateway { /** * Lists a collection of gateways registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -136,7 +136,7 @@ export class GatewayImpl implements Gateway { /** * Lists a collection of gateways registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -153,7 +153,7 @@ export class GatewayImpl implements Gateway { /** * Gets the entity state (Etag) version of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -173,7 +173,7 @@ export class GatewayImpl implements Gateway { /** * Gets the details of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -193,7 +193,7 @@ export class GatewayImpl implements Gateway { /** * Creates or updates a Gateway to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -215,7 +215,7 @@ export class GatewayImpl implements Gateway { /** * Updates the details of the gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -247,7 +247,7 @@ export class GatewayImpl implements Gateway { /** * Deletes specific Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -270,7 +270,7 @@ export class GatewayImpl implements Gateway { /** * Retrieves gateway keys. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -290,7 +290,7 @@ export class GatewayImpl implements Gateway { /** * Regenerates specified gateway key invalidating any tokens created with it. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -312,7 +312,7 @@ export class GatewayImpl implements Gateway { /** * Gets the Shared Access Authorization Token for the gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -334,7 +334,7 @@ export class GatewayImpl implements Gateway { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -445,7 +445,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -475,7 +475,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -548,7 +548,7 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -573,7 +573,7 @@ const generateTokenOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts index 285c7b92f9d7..b355825a6bfe 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts @@ -41,7 +41,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Lists a collection of the APIs associated with a gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -135,7 +135,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Lists a collection of the APIs associated with a gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -155,7 +155,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Checks that API entity specified by identifier is associated with the Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -177,7 +177,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Adds an API to the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -199,7 +199,7 @@ export class GatewayApiImpl implements GatewayApi { /** * Deletes the specified API from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -221,7 +221,7 @@ export class GatewayApiImpl implements GatewayApi { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -311,7 +311,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts index 5d0dcac613cd..bac861289331 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts @@ -44,7 +44,7 @@ export class GatewayCertificateAuthorityImpl /** * Lists the collection of Certificate Authorities for the specified Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -138,7 +138,7 @@ export class GatewayCertificateAuthorityImpl /** * Lists the collection of Certificate Authorities for the specified Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -158,7 +158,7 @@ export class GatewayCertificateAuthorityImpl /** * Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -181,7 +181,7 @@ export class GatewayCertificateAuthorityImpl /** * Get assigned Gateway Certificate Authority details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -204,7 +204,7 @@ export class GatewayCertificateAuthorityImpl /** * Assign Certificate entity to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -236,7 +236,7 @@ export class GatewayCertificateAuthorityImpl /** * Remove relationship between Certificate Authority and Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -269,7 +269,7 @@ export class GatewayCertificateAuthorityImpl /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -386,7 +386,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts index f37771fe631c..c65ce1a26b6b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts @@ -44,7 +44,7 @@ export class GatewayHostnameConfigurationImpl /** * Lists the collection of hostname configurations for the specified gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -138,7 +138,7 @@ export class GatewayHostnameConfigurationImpl /** * Lists the collection of hostname configurations for the specified gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -159,7 +159,7 @@ export class GatewayHostnameConfigurationImpl /** * Checks that hostname configuration entity specified by identifier exists for specified Gateway * entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -182,7 +182,7 @@ export class GatewayHostnameConfigurationImpl /** * Get details of a hostname configuration - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -205,7 +205,7 @@ export class GatewayHostnameConfigurationImpl /** * Creates of updates hostname configuration for a Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -230,7 +230,7 @@ export class GatewayHostnameConfigurationImpl /** * Deletes the specified hostname configuration from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -256,7 +256,7 @@ export class GatewayHostnameConfigurationImpl /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -373,7 +373,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts index 155516291aeb..9081ec027225 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { GlobalSchemaContract, GlobalSchemaListByServiceNextOptionalParams, @@ -45,7 +49,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Lists a collection of schemas registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -129,7 +133,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Lists a collection of schemas registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -146,7 +150,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Gets the entity state (Etag) version of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -165,7 +169,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Gets the details of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -184,7 +188,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -197,8 +201,8 @@ export class GlobalSchemaImpl implements GlobalSchema { parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GlobalSchemaCreateOrUpdateResponse > > { @@ -208,7 +212,7 @@ export class GlobalSchemaImpl implements GlobalSchema { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -241,15 +245,18 @@ export class GlobalSchemaImpl implements GlobalSchema { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, schemaId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, schemaId, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + GlobalSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -257,7 +264,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -282,7 +289,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * Deletes specific Schema. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -304,7 +311,7 @@ export class GlobalSchemaImpl implements GlobalSchema { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -423,7 +430,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters66, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts new file mode 100644 index 000000000000..1d2fa2cedd2a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolver.ts @@ -0,0 +1,513 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GraphQLApiResolver } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ResolverContract, + GraphQLApiResolverListByApiNextOptionalParams, + GraphQLApiResolverListByApiOptionalParams, + GraphQLApiResolverListByApiResponse, + GraphQLApiResolverGetEntityTagOptionalParams, + GraphQLApiResolverGetEntityTagResponse, + GraphQLApiResolverGetOptionalParams, + GraphQLApiResolverGetResponse, + GraphQLApiResolverCreateOrUpdateOptionalParams, + GraphQLApiResolverCreateOrUpdateResponse, + ResolverUpdateContract, + GraphQLApiResolverUpdateOptionalParams, + GraphQLApiResolverUpdateResponse, + GraphQLApiResolverDeleteOptionalParams, + GraphQLApiResolverListByApiNextResponse +} from "../models"; + +/// +/** Class containing GraphQLApiResolver operations. */ +export class GraphQLApiResolverImpl implements GraphQLApiResolver { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class GraphQLApiResolver class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the resolvers for the specified GraphQL API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + apiId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + apiId, + options, + settings + ); + } + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GraphQLApiResolverListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + apiId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + apiId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the resolvers for the specified GraphQL API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, options }, + listByApiOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the GraphQL API Resolver specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, options }, + getOperationSpec + ); + } + + /** + * Creates a new resolver in the GraphQL API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + parameters: ResolverContract, + options?: GraphQLApiResolverCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the resolver in the GraphQL API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters GraphQL API Resolver Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + ifMatch: string, + parameters: ResolverUpdateContract, + options?: GraphQLApiResolverUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified resolver in the GraphQL API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + ifMatch: string, + options?: GraphQLApiResolverDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + apiId: string, + nextLink: string, + options?: GraphQLApiResolverListByApiNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, nextLink, options }, + listByApiNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ResolverCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.GraphQLApiResolverGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ResolverContract, + headersMapper: Mappers.GraphQLApiResolverUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ResolverCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts new file mode 100644 index 000000000000..884fac6979f9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/graphQLApiResolverPolicy.ts @@ -0,0 +1,478 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GraphQLApiResolverPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + GraphQLApiResolverPolicyListByResolverNextOptionalParams, + GraphQLApiResolverPolicyListByResolverOptionalParams, + GraphQLApiResolverPolicyListByResolverResponse, + PolicyIdName, + GraphQLApiResolverPolicyGetEntityTagOptionalParams, + GraphQLApiResolverPolicyGetEntityTagResponse, + GraphQLApiResolverPolicyGetOptionalParams, + GraphQLApiResolverPolicyGetResponse, + GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, + GraphQLApiResolverPolicyCreateOrUpdateResponse, + GraphQLApiResolverPolicyDeleteOptionalParams, + GraphQLApiResolverPolicyListByResolverNextResponse +} from "../models"; + +/// +/** Class containing GraphQLApiResolverPolicy operations. */ +export class GraphQLApiResolverPolicyImpl implements GraphQLApiResolverPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class GraphQLApiResolverPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the list of policy configuration at the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + public listByResolver( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResolverPagingAll( + resourceGroupName, + serviceName, + apiId, + resolverId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResolverPagingPage( + resourceGroupName, + serviceName, + apiId, + resolverId, + options, + settings + ); + } + }; + } + + private async *listByResolverPagingPage( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GraphQLApiResolverPolicyListByResolverResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResolver( + resourceGroupName, + serviceName, + apiId, + resolverId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResolverNext( + resourceGroupName, + serviceName, + apiId, + resolverId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResolverPagingAll( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResolverPagingPage( + resourceGroupName, + serviceName, + apiId, + resolverId, + options + )) { + yield* page; + } + } + + /** + * Get the list of policy configuration at the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + private _listByResolver( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, options }, + listByResolverOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Get the policy configuration at the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, policyId, options }, + getOperationSpec + ); + } + + /** + * Creates or updates policy configuration for the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the policy configuration at the GraphQL Api Resolver. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: GraphQLApiResolverPolicyDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + resolverId, + policyId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByResolverNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByResolver method. + * @param options The options parameters. + */ + private _listByResolverNext( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + nextLink: string, + options?: GraphQLApiResolverPolicyListByResolverNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, apiId, resolverId, nextLink, options }, + listByResolverNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByResolverOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.GraphQLApiResolverPolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.GraphQLApiResolverPolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.GraphQLApiResolverPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/resolvers/{resolverId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.resolverId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByResolverNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.nextLink, + Parameters.resolverId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts index d225cc07780f..d2e53a84fd5e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts @@ -47,7 +47,7 @@ export class GroupImpl implements Group { /** * Lists a collection of groups defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -131,7 +131,7 @@ export class GroupImpl implements Group { /** * Lists a collection of groups defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -148,7 +148,7 @@ export class GroupImpl implements Group { /** * Gets the entity state (Etag) version of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -167,7 +167,7 @@ export class GroupImpl implements Group { /** * Gets the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -186,7 +186,7 @@ export class GroupImpl implements Group { /** * Creates or Updates a group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param parameters Create parameters. @@ -207,7 +207,7 @@ export class GroupImpl implements Group { /** * Updates the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -231,7 +231,7 @@ export class GroupImpl implements Group { /** * Deletes specific group of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -253,7 +253,7 @@ export class GroupImpl implements Group { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -364,7 +364,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -394,7 +394,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters39, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts index 294dc38310d2..d0e13397ab74 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts @@ -41,7 +41,7 @@ export class GroupUserImpl implements GroupUser { /** * Lists a collection of user entities associated with the group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -134,7 +134,7 @@ export class GroupUserImpl implements GroupUser { /** * Lists a collection of user entities associated with the group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -153,7 +153,7 @@ export class GroupUserImpl implements GroupUser { /** * Checks that user entity specified by identifier is associated with the group entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -174,7 +174,7 @@ export class GroupUserImpl implements GroupUser { /** * Add existing user to existing group - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -195,7 +195,7 @@ export class GroupUserImpl implements GroupUser { /** * Remove existing user from existing group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -216,7 +216,7 @@ export class GroupUserImpl implements GroupUser { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts index ea2f9ccc75d0..7718b64cc6b3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts @@ -50,7 +50,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Lists a collection of Identity Provider configured in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -134,7 +134,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Lists a collection of Identity Provider configured in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -151,7 +151,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Gets the entity state (Etag) version of the identityProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -170,7 +170,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Gets the configuration details of the identity Provider configured in specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -189,7 +189,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Creates or Updates the IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param parameters Create parameters. @@ -216,7 +216,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Updates an existing IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -247,7 +247,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Deletes the specified identity provider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -275,7 +275,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * Gets the client secret details of the Identity Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -294,7 +294,7 @@ export class IdentityProviderImpl implements IdentityProvider { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -430,7 +430,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts index 24d2feb9be63..83434e88bcd2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts @@ -12,6 +12,8 @@ export * from "./apiRelease"; export * from "./apiOperation"; export * from "./apiOperationPolicy"; export * from "./tag"; +export * from "./graphQLApiResolver"; +export * from "./graphQLApiResolverPolicy"; export * from "./apiProduct"; export * from "./apiPolicy"; export * from "./apiSchema"; @@ -21,9 +23,15 @@ export * from "./apiIssueComment"; export * from "./apiIssueAttachment"; export * from "./apiTagDescription"; export * from "./operationOperations"; +export * from "./apiWiki"; +export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; export * from "./authorizationServer"; +export * from "./authorizationProvider"; +export * from "./authorization"; +export * from "./authorizationLoginLinks"; +export * from "./authorizationAccessPolicy"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -53,6 +61,8 @@ export * from "./openIdConnectProvider"; export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; +export * from "./policyFragment"; +export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; export * from "./signInSettings"; @@ -64,6 +74,8 @@ export * from "./productApi"; export * from "./productGroup"; export * from "./productSubscriptions"; export * from "./productPolicy"; +export * from "./productWiki"; +export * from "./productWikis"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -81,3 +93,4 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; +export * from "./documentation"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts index 0bfb38519fe3..55bf4c71ee76 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/issue.ts @@ -38,7 +38,7 @@ export class IssueImpl implements Issue { /** * Lists a collection of issues in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -122,7 +122,7 @@ export class IssueImpl implements Issue { /** * Lists a collection of issues in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -139,7 +139,7 @@ export class IssueImpl implements Issue { /** * Gets API Management issue details - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -158,7 +158,7 @@ export class IssueImpl implements Issue { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts index cbb641ad3889..626d49673b05 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts @@ -46,7 +46,7 @@ export class LoggerImpl implements Logger { /** * Lists a collection of loggers in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -130,7 +130,7 @@ export class LoggerImpl implements Logger { /** * Lists a collection of loggers in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -147,7 +147,7 @@ export class LoggerImpl implements Logger { /** * Gets the entity state (Etag) version of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -166,7 +166,7 @@ export class LoggerImpl implements Logger { /** * Gets the details of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -185,7 +185,7 @@ export class LoggerImpl implements Logger { /** * Creates or Updates a logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param parameters Create parameters. @@ -206,7 +206,7 @@ export class LoggerImpl implements Logger { /** * Updates an existing logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -237,7 +237,7 @@ export class LoggerImpl implements Logger { /** * Deletes the specified logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -259,7 +259,7 @@ export class LoggerImpl implements Logger { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -370,7 +370,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -400,7 +400,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts index affd2e1348cc..c15754457817 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { NamedValueContract, NamedValueListByServiceNextOptionalParams, @@ -53,7 +57,7 @@ export class NamedValueImpl implements NamedValue { /** * Lists a collection of named values defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -137,7 +141,7 @@ export class NamedValueImpl implements NamedValue { /** * Lists a collection of named values defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -154,7 +158,7 @@ export class NamedValueImpl implements NamedValue { /** * Gets the entity state (Etag) version of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -173,7 +177,7 @@ export class NamedValueImpl implements NamedValue { /** * Gets the details of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -192,7 +196,7 @@ export class NamedValueImpl implements NamedValue { /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -205,8 +209,8 @@ export class NamedValueImpl implements NamedValue { parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueCreateOrUpdateResponse > > { @@ -216,7 +220,7 @@ export class NamedValueImpl implements NamedValue { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -249,15 +253,24 @@ export class NamedValueImpl implements NamedValue { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, namedValueId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + namedValueId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + NamedValueCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -265,7 +278,7 @@ export class NamedValueImpl implements NamedValue { /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -290,7 +303,7 @@ export class NamedValueImpl implements NamedValue { /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -306,8 +319,8 @@ export class NamedValueImpl implements NamedValue { parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueUpdateResponse > > { @@ -317,7 +330,7 @@ export class NamedValueImpl implements NamedValue { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -350,9 +363,9 @@ export class NamedValueImpl implements NamedValue { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, namedValueId, @@ -360,12 +373,15 @@ export class NamedValueImpl implements NamedValue { parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + NamedValueUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -373,7 +389,7 @@ export class NamedValueImpl implements NamedValue { /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -402,7 +418,7 @@ export class NamedValueImpl implements NamedValue { /** * Deletes specific named value from the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -424,7 +440,7 @@ export class NamedValueImpl implements NamedValue { /** * Gets the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -443,7 +459,7 @@ export class NamedValueImpl implements NamedValue { /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -454,8 +470,8 @@ export class NamedValueImpl implements NamedValue { namedValueId: string, options?: NamedValueRefreshSecretOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueRefreshSecretResponse > > { @@ -465,7 +481,7 @@ export class NamedValueImpl implements NamedValue { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -498,15 +514,18 @@ export class NamedValueImpl implements NamedValue { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, namedValueId, options }, - refreshSecretOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, namedValueId, options }, + spec: refreshSecretOperationSpec + }); + const poller = await createHttpPoller< + NamedValueRefreshSecretResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -514,7 +533,7 @@ export class NamedValueImpl implements NamedValue { /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -536,7 +555,7 @@ export class NamedValueImpl implements NamedValue { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -656,7 +675,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -698,7 +717,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts index 87db0abd308a..8f9ab94e7fee 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/networkStatus.ts @@ -33,7 +33,7 @@ export class NetworkStatusImpl implements NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -51,7 +51,7 @@ export class NetworkStatusImpl implements NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param locationName Location in which the API Management service is deployed. This is one of the * Azure Regions like West US, East US, South Central US. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts index 63b6e13b9603..330f9607e8cb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notification.ts @@ -41,7 +41,7 @@ export class NotificationImpl implements Notification { /** * Lists a collection of properties defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -125,7 +125,7 @@ export class NotificationImpl implements Notification { /** * Lists a collection of properties defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -142,7 +142,7 @@ export class NotificationImpl implements Notification { /** * Gets the details of the Notification specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -161,7 +161,7 @@ export class NotificationImpl implements Notification { /** * Create or Update API Management publisher notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -180,7 +180,7 @@ export class NotificationImpl implements Notification { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts index 946af96ea810..5532326268f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientEmail.ts @@ -37,7 +37,7 @@ export class NotificationRecipientEmailImpl /** * Gets the list of the Notification Recipient Emails subscribed to a notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -56,7 +56,7 @@ export class NotificationRecipientEmailImpl /** * Determine if Notification Recipient Email subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -77,7 +77,7 @@ export class NotificationRecipientEmailImpl /** * Adds the Email address to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -98,7 +98,7 @@ export class NotificationRecipientEmailImpl /** * Removes the email from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts index b7e6e10f2013..ff459bec71fd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/notificationRecipientUser.ts @@ -37,7 +37,7 @@ export class NotificationRecipientUserImpl /** * Gets the list of the Notification Recipient User subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -56,7 +56,7 @@ export class NotificationRecipientUserImpl /** * Determine if the Notification Recipient User is subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -77,7 +77,7 @@ export class NotificationRecipientUserImpl /** * Adds the API Management User to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -98,7 +98,7 @@ export class NotificationRecipientUserImpl /** * Removes the API Management user from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts index 9c5bd14f970a..6f214aac252c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts @@ -48,7 +48,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Lists of all the OpenId Connect Providers. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -132,7 +132,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Lists of all the OpenId Connect Providers. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -149,7 +149,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -168,7 +168,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Gets specific OpenID Connect Provider without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -187,7 +187,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Creates or updates the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param parameters Create parameters. @@ -208,7 +208,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Updates the specific OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -232,7 +232,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Deletes specific OpenID Connect Provider of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -254,7 +254,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * Gets the client secret details of the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -273,7 +273,7 @@ export class OpenIdConnectProviderImpl implements OpenIdConnectProvider { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -384,7 +384,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -414,7 +414,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts index 77c764bfea46..91d1fdf3b4ec 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts @@ -36,7 +36,7 @@ export class OperationOperationsImpl implements OperationOperations { /** * Lists a collection of operations associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -130,7 +130,7 @@ export class OperationOperationsImpl implements OperationOperations { /** * Lists a collection of operations associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -150,7 +150,7 @@ export class OperationOperationsImpl implements OperationOperations { /** * ListByTagsNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts index aa4b77527265..5ac8f335aa65 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/outboundNetworkDependenciesEndpoints.ts @@ -31,7 +31,7 @@ export class OutboundNetworkDependenciesEndpointsImpl /** * Gets the network endpoints of all outbound dependencies of a ApiManagement service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts index 80875f42f6d8..d278cdfc55fc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts @@ -39,7 +39,7 @@ export class PolicyImpl implements Policy { /** * Lists all the Global Policy definitions of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -56,7 +56,7 @@ export class PolicyImpl implements Policy { /** * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -75,7 +75,7 @@ export class PolicyImpl implements Policy { /** * Get the Global policy definition of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -94,7 +94,7 @@ export class PolicyImpl implements Policy { /** * Creates or updates the global policy configuration of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param parameters The policy contents to apply. @@ -115,7 +115,7 @@ export class PolicyImpl implements Policy { /** * Deletes the global policy configuration of the Api Management Service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts index 1becb987491d..2f563e88f50e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts @@ -30,7 +30,7 @@ export class PolicyDescriptionImpl implements PolicyDescription { /** * Lists all policy descriptions. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts new file mode 100644 index 000000000000..b6d25f5fb6b7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts @@ -0,0 +1,408 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PolicyFragment } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PolicyFragmentListByServiceOptionalParams, + PolicyFragmentListByServiceResponse, + PolicyFragmentGetEntityTagOptionalParams, + PolicyFragmentGetEntityTagResponse, + PolicyFragmentGetOptionalParams, + PolicyFragmentGetResponse, + PolicyFragmentContract, + PolicyFragmentCreateOrUpdateOptionalParams, + PolicyFragmentCreateOrUpdateResponse, + PolicyFragmentDeleteOptionalParams, + PolicyFragmentListReferencesOptionalParams, + PolicyFragmentListReferencesResponse +} from "../models"; + +/** Class containing PolicyFragment operations. */ +export class PolicyFragmentImpl implements PolicyFragment { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PolicyFragment class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets all policy fragments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, id, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, id, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + PolicyFragmentCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, id, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PolicyFragmentCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + id, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + id: string, + ifMatch: string, + options?: PolicyFragmentDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, id, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentListReferencesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, id, options }, + listReferencesOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion, + Parameters.orderby + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.PolicyFragmentGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format2], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + 202: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + 204: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.PolicyFragmentCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters57, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listReferencesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}/listReferences", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ResourceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts new file mode 100644 index 000000000000..4c13b4be9ea9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts @@ -0,0 +1,286 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +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 { + PortalConfigListByServiceOptionalParams, + PortalConfigListByServiceResponse, + PortalConfigGetEntityTagOptionalParams, + PortalConfigGetEntityTagResponse, + PortalConfigGetOptionalParams, + PortalConfigGetResponse, + PortalConfigContract, + PortalConfigUpdateOptionalParams, + PortalConfigUpdateResponse, + PortalConfigCreateOrUpdateOptionalParams, + PortalConfigCreateOrUpdateResponse +} from "../models"; + +/** Class containing PortalConfig operations. */ +export class PortalConfigImpl implements PortalConfig { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class PortalConfig class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists the developer portal configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, portalConfigId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Get the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, portalConfigId, options }, + getOperationSpec + ); + } + + /** + * Update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update the developer portal configuration. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Create or update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update the developer portal configuration. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + portalConfigId, + ifMatch, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.PortalConfigGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigContract, + headersMapper: Mappers.PortalConfigGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.portalConfigId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts index 2de464de5b18..06c82783efdc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PortalRevisionContract, PortalRevisionListByServiceNextOptionalParams, @@ -46,7 +50,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Lists developer portal's revisions. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -130,7 +134,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Lists developer portal's revisions. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -147,7 +151,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Gets the developer portal revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -167,7 +171,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Gets the developer portal's revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -188,7 +192,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -202,8 +206,8 @@ export class PortalRevisionImpl implements PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionCreateOrUpdateResponse > > { @@ -213,7 +217,7 @@ export class PortalRevisionImpl implements PortalRevision { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -246,15 +250,24 @@ export class PortalRevisionImpl implements PortalRevision { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, portalRevisionId, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + portalRevisionId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PortalRevisionCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -263,7 +276,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -289,7 +302,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -306,8 +319,8 @@ export class PortalRevisionImpl implements PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionUpdateResponse > > { @@ -317,7 +330,7 @@ export class PortalRevisionImpl implements PortalRevision { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -350,9 +363,9 @@ export class PortalRevisionImpl implements PortalRevision { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, portalRevisionId, @@ -360,12 +373,15 @@ export class PortalRevisionImpl implements PortalRevision { parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + PortalRevisionUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -373,7 +389,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -403,7 +419,7 @@ export class PortalRevisionImpl implements PortalRevision { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -522,7 +538,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -560,7 +576,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts index 1024bf6cc0d9..da437e49d95b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalSettings.ts @@ -30,7 +30,7 @@ export class PortalSettingsImpl implements PortalSettings { /** * Lists a collection of portalsettings defined within a service instance.. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts index 3be4ff820dab..e8e90e2250a0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts @@ -12,8 +12,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { PrivateEndpointConnection, PrivateEndpointConnectionListByServiceOptionalParams, @@ -46,7 +50,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Lists all private endpoint connections of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -108,7 +112,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Lists all private endpoint connections of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -125,7 +129,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Gets the details of the Private Endpoint Connection specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -149,7 +153,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -162,8 +166,8 @@ export class PrivateEndpointConnectionOperationsImpl privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionCreateOrUpdateResponse > > { @@ -173,7 +177,7 @@ export class PrivateEndpointConnectionOperationsImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -206,19 +210,22 @@ export class PrivateEndpointConnectionOperationsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, privateEndpointConnectionName, privateEndpointConnectionRequest, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + PrivateEndpointConnectionCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -227,7 +234,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -252,7 +259,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -262,14 +269,14 @@ export class PrivateEndpointConnectionOperationsImpl serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -302,18 +309,18 @@ export class PrivateEndpointConnectionOperationsImpl }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, privateEndpointConnectionName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -322,7 +329,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -344,7 +351,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -361,7 +368,7 @@ export class PrivateEndpointConnectionOperationsImpl /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateLinkSubResourceName Name of the private link resource. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts index dc5997d9491f..cd7bdd87c103 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts @@ -51,7 +51,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -135,7 +135,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -215,7 +215,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -232,7 +232,7 @@ export class ProductImpl implements Product { /** * Gets the entity state (Etag) version of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -251,7 +251,7 @@ export class ProductImpl implements Product { /** * Gets the details of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -270,7 +270,7 @@ export class ProductImpl implements Product { /** * Creates or Updates a product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -291,7 +291,7 @@ export class ProductImpl implements Product { /** * Update existing product details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -322,7 +322,7 @@ export class ProductImpl implements Product { /** * Delete product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -344,7 +344,7 @@ export class ProductImpl implements Product { /** * Lists a collection of products associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -361,7 +361,7 @@ export class ProductImpl implements Product { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -380,7 +380,7 @@ export class ProductImpl implements Product { /** * ListByTagsNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByTags method. * @param options The options parameters. @@ -493,7 +493,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -523,7 +523,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts index c10b5127698d..46a14b1d5042 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts @@ -41,7 +41,7 @@ export class ProductApiImpl implements ProductApi { /** * Lists a collection of the APIs associated with a product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -134,7 +134,7 @@ export class ProductApiImpl implements ProductApi { /** * Lists a collection of the APIs associated with a product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -153,7 +153,7 @@ export class ProductApiImpl implements ProductApi { /** * Checks that API entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. @@ -175,7 +175,7 @@ export class ProductApiImpl implements ProductApi { /** * Adds an API to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. @@ -197,7 +197,7 @@ export class ProductApiImpl implements ProductApi { /** * Deletes the specified API from the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. @@ -219,7 +219,7 @@ export class ProductApiImpl implements ProductApi { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByProduct method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts index 0d28c8eb3f47..5425cb6d2633 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts @@ -41,7 +41,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Lists the collection of developer groups associated with the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -134,7 +134,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Lists the collection of developer groups associated with the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -153,7 +153,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Checks that Group entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -174,7 +174,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Adds the association between the specified developer group with the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -195,7 +195,7 @@ export class ProductGroupImpl implements ProductGroup { /** * Deletes the association between the specified group and product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -216,7 +216,7 @@ export class ProductGroupImpl implements ProductGroup { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByProduct method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts index 021da2209b9d..265d5f5708b5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts @@ -39,7 +39,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -58,7 +58,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Get the ETag of the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -79,7 +79,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -100,7 +100,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Creates or updates policy configuration for the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -130,7 +130,7 @@ export class ProductPolicyImpl implements ProductPolicy { /** * Deletes the policy configuration at the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts index c060e035234e..b602e9ea6996 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productSubscriptions.ts @@ -36,7 +36,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { /** * Lists the collection of subscriptions to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { /** * Lists the collection of subscriptions to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class ProductSubscriptionsImpl implements ProductSubscriptions { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts new file mode 100644 index 000000000000..48c1fc393861 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWiki.ts @@ -0,0 +1,287 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { ProductWiki } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductWikiGetEntityTagOptionalParams, + ProductWikiGetEntityTagResponse, + ProductWikiGetOptionalParams, + ProductWikiGetResponse, + WikiContract, + ProductWikiCreateOrUpdateOptionalParams, + ProductWikiCreateOrUpdateResponse, + WikiUpdateContract, + ProductWikiUpdateOptionalParams, + ProductWikiUpdateResponse, + ProductWikiDeleteOptionalParams +} from "../models"; + +/** Class containing ProductWiki operations. */ +export class ProductWikiImpl implements ProductWiki { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductWiki class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + getOperationSpec + ); + } + + /** + * Creates a new Wiki for a Product or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + parameters: WikiContract, + options?: ProductWikiCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + productId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ProductWikiUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified Wiki from a Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + ifMatch: string, + options?: ProductWikiDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, ifMatch, options }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.ProductWikiGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.WikiContract, + headersMapper: Mappers.ProductWikiUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis/default", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts new file mode 100644 index 000000000000..eb425ad22260 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts @@ -0,0 +1,224 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ProductWikis } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WikiContract, + ProductWikisListNextOptionalParams, + ProductWikisListOptionalParams, + ProductWikisListResponse, + ProductWikisListNextResponse +} from "../models"; + +/// +/** Class containing ProductWikis operations. */ +export class ProductWikisImpl implements ProductWikis { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductWikis class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + productId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ProductWikisListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + productId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + productId, + options + )) { + yield* page; + } + } + + /** + * Gets the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductWikisListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/wikis", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection, + headersMapper: Mappers.ProductWikisListHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WikiCollection, + headersMapper: Mappers.ProductWikisListNextHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts index e5a890c5fb3c..136caaa802f2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts @@ -34,7 +34,7 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { /** * Lists a collection of current quota counter periods associated with the counter-key configured in * the policy on the specified service instance. The api does not support paging yet. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -57,7 +57,7 @@ export class QuotaByCounterKeysImpl implements QuotaByCounterKeys { /** * Updates all the quota counter values specified with the existing quota counter key to a value in the * specified service instance. This should be used for reset of the quota counter values. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -117,7 +117,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts index ac89b9e1efc7..bd18bc65745b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts @@ -34,7 +34,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { /** * Gets the value of the quota counter associated with the counter-key in the policy for the specific * period in service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -64,7 +64,7 @@ export class QuotaByPeriodKeysImpl implements QuotaByPeriodKeys { /** * Updates an existing quota counter value in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -134,7 +134,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts index c21e9d6a2cfd..b0ccf6b4bde2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/region.ts @@ -36,7 +36,7 @@ export class RegionImpl implements Region { /** * Lists all azure regions in which the service exists. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -120,7 +120,7 @@ export class RegionImpl implements Region { /** * Lists all azure regions in which the service exists. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -137,7 +137,7 @@ export class RegionImpl implements Region { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts index 157ba4ac13ff..34ec22b941f4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts @@ -63,7 +63,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter The filter to apply on the operation. * @param options The options parameters. @@ -155,7 +155,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -259,7 +259,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API Operations. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -362,7 +362,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -465,7 +465,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by geography. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -568,7 +568,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -671,7 +671,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Time. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter, select @@ -784,7 +784,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Request. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -862,7 +862,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter The filter to apply on the operation. * @param options The options parameters. @@ -881,7 +881,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -912,7 +912,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by API Operations. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -942,7 +942,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -972,7 +972,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by geography. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -1002,7 +1002,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -1032,7 +1032,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Time. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter, select @@ -1066,7 +1066,7 @@ export class ReportsImpl implements Reports { /** * Lists report records by Request. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -1089,7 +1089,7 @@ export class ReportsImpl implements Reports { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByApi method. * @param options The options parameters. @@ -1108,7 +1108,7 @@ export class ReportsImpl implements Reports { /** * ListByUserNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByUser method. * @param options The options parameters. @@ -1127,7 +1127,7 @@ export class ReportsImpl implements Reports { /** * ListByOperationNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByOperation method. * @param options The options parameters. @@ -1146,7 +1146,7 @@ export class ReportsImpl implements Reports { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByProduct method. * @param options The options parameters. @@ -1165,7 +1165,7 @@ export class ReportsImpl implements Reports { /** * ListByGeoNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByGeo method. * @param options The options parameters. @@ -1184,7 +1184,7 @@ export class ReportsImpl implements Reports { /** * ListBySubscriptionNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. * @param options The options parameters. @@ -1203,7 +1203,7 @@ export class ReportsImpl implements Reports { /** * ListByTimeNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByTime method. * @param options The options parameters. @@ -1239,8 +1239,8 @@ const listByApiOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1267,8 +1267,8 @@ const listByUserOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1295,8 +1295,8 @@ const listByOperationOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1323,8 +1323,8 @@ const listByProductOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1378,8 +1378,8 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1406,8 +1406,8 @@ const listByTimeOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, Parameters.orderby, + Parameters.filter1, Parameters.interval ], urlParameters: [ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts index 2967027b2087..81c16f759dd7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts @@ -36,7 +36,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Gets the entity state (Etag) version of the SignInSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -53,7 +53,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Get Sign In Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -70,7 +70,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -92,7 +92,7 @@ export class SignInSettingsImpl implements SignInSettings { /** * Create or Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -167,7 +167,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -195,7 +195,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts index e7e78a3a9cd3..fa8160735c81 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts @@ -36,7 +36,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Gets the entity state (Etag) version of the SignUpSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -53,7 +53,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Get Sign Up Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -70,7 +70,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -92,7 +92,7 @@ export class SignUpSettingsImpl implements SignUpSettings { /** * Create or Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -167,7 +167,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -195,7 +195,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts index 35671d914bac..040781d07df3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts @@ -51,7 +51,7 @@ export class SubscriptionImpl implements Subscription { /** * Lists all subscriptions of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -127,7 +127,7 @@ export class SubscriptionImpl implements Subscription { /** * Lists all subscriptions of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -144,7 +144,7 @@ export class SubscriptionImpl implements Subscription { /** * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -164,7 +164,7 @@ export class SubscriptionImpl implements Subscription { /** * Gets the specified Subscription entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -184,7 +184,7 @@ export class SubscriptionImpl implements Subscription { /** * Creates or updates the subscription of specified user to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -206,7 +206,7 @@ export class SubscriptionImpl implements Subscription { /** * Updates the details of a subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -231,7 +231,7 @@ export class SubscriptionImpl implements Subscription { /** * Deletes the specified subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -254,7 +254,7 @@ export class SubscriptionImpl implements Subscription { /** * Regenerates primary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -274,7 +274,7 @@ export class SubscriptionImpl implements Subscription { /** * Regenerates secondary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -294,7 +294,7 @@ export class SubscriptionImpl implements Subscription { /** * Gets the specified Subscription keys. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -314,7 +314,7 @@ export class SubscriptionImpl implements Subscription { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. @@ -425,7 +425,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters67, queryParameters: [ Parameters.apiVersion, Parameters.notify, @@ -459,7 +459,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters68, queryParameters: [ Parameters.apiVersion, Parameters.notify, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts index 074c6a371855..1cd000ec1f2f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts @@ -79,7 +79,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -183,7 +183,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -277,7 +277,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -370,7 +370,7 @@ export class TagImpl implements Tag { /** * Lists a collection of tags defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -454,7 +454,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -477,7 +477,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -502,7 +502,7 @@ export class TagImpl implements Tag { /** * Get tag associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -527,7 +527,7 @@ export class TagImpl implements Tag { /** * Assign tag to the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -552,7 +552,7 @@ export class TagImpl implements Tag { /** * Detach the tag from the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -577,7 +577,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -597,7 +597,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -619,7 +619,7 @@ export class TagImpl implements Tag { /** * Get tag associated with the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -641,7 +641,7 @@ export class TagImpl implements Tag { /** * Assign tag to the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -663,7 +663,7 @@ export class TagImpl implements Tag { /** * Detach the tag from the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -685,7 +685,7 @@ export class TagImpl implements Tag { /** * Lists all Tags associated with the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -704,7 +704,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -725,7 +725,7 @@ export class TagImpl implements Tag { /** * Get tag associated with the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -746,7 +746,7 @@ export class TagImpl implements Tag { /** * Assign tag to the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -767,7 +767,7 @@ export class TagImpl implements Tag { /** * Detach the tag from the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -788,7 +788,7 @@ export class TagImpl implements Tag { /** * Lists a collection of tags defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -805,7 +805,7 @@ export class TagImpl implements Tag { /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -824,7 +824,7 @@ export class TagImpl implements Tag { /** * Gets the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -843,7 +843,7 @@ export class TagImpl implements Tag { /** * Creates a tag. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param parameters Create parameters. @@ -864,7 +864,7 @@ export class TagImpl implements Tag { /** * Updates the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -888,7 +888,7 @@ export class TagImpl implements Tag { /** * Deletes specific tag of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -910,7 +910,7 @@ export class TagImpl implements Tag { /** * ListByOperationNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -935,7 +935,7 @@ export class TagImpl implements Tag { /** * ListByApiNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -957,7 +957,7 @@ export class TagImpl implements Tag { /** * ListByProductNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the ListByProduct method. @@ -978,7 +978,7 @@ export class TagImpl implements Tag { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts index df4cf7d591aa..1a0a0f0a8cb1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts @@ -36,7 +36,7 @@ export class TagResourceImpl implements TagResource { /** * Lists a collection of resources associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -120,7 +120,7 @@ export class TagResourceImpl implements TagResource { /** * Lists a collection of resources associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -137,7 +137,7 @@ export class TagResourceImpl implements TagResource { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts index 3ba9f54c8dfc..ab0c13bb24d9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts @@ -51,7 +51,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Returns list of access infos - for Git and Management endpoints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -135,7 +135,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Returns list of access infos - for Git and Management endpoints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -152,7 +152,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Tenant access metadata - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -171,7 +171,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Get tenant access information details without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -190,7 +190,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -221,7 +221,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -252,7 +252,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Regenerate primary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -271,7 +271,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Regenerate secondary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -290,7 +290,7 @@ export class TenantAccessImpl implements TenantAccess { /** * Get tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -309,7 +309,7 @@ export class TenantAccessImpl implements TenantAccess { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -411,7 +411,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -441,7 +441,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts index 9192c5d4ab14..9d7f1db29713 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts @@ -31,7 +31,7 @@ export class TenantAccessGitImpl implements TenantAccessGit { /** * Regenerate primary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -50,7 +50,7 @@ export class TenantAccessGitImpl implements TenantAccessGit { /** * Regenerate secondary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts index 83a9667cb1be..15867ab82145 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DeployConfigurationParameters, ConfigurationIdName, @@ -42,7 +46,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -55,8 +59,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationDeployResponse > > { @@ -66,7 +70,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -99,21 +103,24 @@ export class TenantConfigurationImpl implements TenantConfiguration { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, configurationName, parameters, options }, - deployOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deployOperationSpec + }); + const poller = await createHttpPoller< + TenantConfigurationDeployResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -122,7 +129,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -148,7 +155,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -161,8 +168,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationSaveResponse > > { @@ -172,7 +179,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -205,21 +212,24 @@ export class TenantConfigurationImpl implements TenantConfiguration { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, configurationName, parameters, options }, - saveOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: saveOperationSpec + }); + const poller = await createHttpPoller< + TenantConfigurationSaveResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -228,7 +238,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -254,7 +264,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -267,8 +277,8 @@ export class TenantConfigurationImpl implements TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationValidateResponse > > { @@ -278,7 +288,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -311,21 +321,24 @@ export class TenantConfigurationImpl implements TenantConfiguration { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, serviceName, configurationName, parameters, options }, - validateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: validateOperationSpec + }); + const poller = await createHttpPoller< + TenantConfigurationValidateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -334,7 +347,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -360,7 +373,7 @@ export class TenantConfigurationImpl implements TenantConfiguration { /** * Gets the status of the most recent synchronization between the configuration database and the Git * repository. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param options The options parameters. @@ -401,7 +414,7 @@ const deployOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -435,7 +448,7 @@ const saveOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -469,7 +482,7 @@ const validateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts index 95ffbb632fc5..b46350a3c9ab 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantSettings.ts @@ -39,7 +39,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * Public settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -123,7 +123,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * Public settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -140,7 +140,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * Get tenant settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param settingsType The identifier of the settings. * @param options The options parameters. @@ -159,7 +159,7 @@ export class TenantSettingsImpl implements TenantSettings { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts index 1b49230eb16c..8aa6945fedab 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts @@ -52,7 +52,7 @@ export class UserImpl implements User { /** * Lists a collection of registered users in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -136,7 +136,7 @@ export class UserImpl implements User { /** * Lists a collection of registered users in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -153,7 +153,7 @@ export class UserImpl implements User { /** * Gets the entity state (Etag) version of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -172,7 +172,7 @@ export class UserImpl implements User { /** * Gets the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -191,7 +191,7 @@ export class UserImpl implements User { /** * Creates or Updates a user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -212,7 +212,7 @@ export class UserImpl implements User { /** * Updates the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -236,7 +236,7 @@ export class UserImpl implements User { /** * Deletes specific user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -259,7 +259,7 @@ export class UserImpl implements User { /** * Retrieves a redirection URL containing an authentication token for signing a given user into the * developer portal. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -278,7 +278,7 @@ export class UserImpl implements User { /** * Gets the Shared Access Authorization Token for the User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create Authorization Token parameters. @@ -299,7 +299,7 @@ export class UserImpl implements User { /** * ListByServiceNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param nextLink The nextLink from the previous successful call to the ListByService method. * @param options The options parameters. @@ -411,7 +411,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion, Parameters.notify], urlParameters: [ Parameters.$host, @@ -441,7 +441,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters74, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -520,7 +520,7 @@ const getSharedAccessTokenOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts index 779715551c3a..0a9175427c03 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userConfirmationPassword.ts @@ -27,7 +27,7 @@ export class UserConfirmationPasswordImpl implements UserConfirmationPassword { /** * Sends confirmation - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts index 9dc853240af8..1627954cbe7a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userGroup.ts @@ -36,7 +36,7 @@ export class UserGroupImpl implements UserGroup { /** * Lists all user groups. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class UserGroupImpl implements UserGroup { /** * Lists all user groups. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class UserGroupImpl implements UserGroup { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts index da05413071ae..4ff92b553f94 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts @@ -36,7 +36,7 @@ export class UserIdentitiesImpl implements UserIdentities { /** * List of all user identities. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -129,7 +129,7 @@ export class UserIdentitiesImpl implements UserIdentities { /** * List of all user identities. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -148,7 +148,7 @@ export class UserIdentitiesImpl implements UserIdentities { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts index 7e4945d84920..8e4838abc76a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts @@ -38,7 +38,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * Lists the collection of subscriptions of the specified user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -131,7 +131,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * Lists the collection of subscriptions of the specified user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -150,7 +150,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * Gets the specified Subscription entity associated with a particular user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param sid Subscription entity Identifier. The entity represents the association between a user and @@ -172,7 +172,7 @@ export class UserSubscriptionImpl implements UserSubscription { /** * ListNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param nextLink The nextLink from the previous successful call to the List method. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts index ce5051c792be..0ff932cdd76b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ApiContract, ApiListByServiceOptionalParams, @@ -31,7 +31,7 @@ import { export interface Api { /** * Lists all APIs of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -42,7 +42,7 @@ export interface Api { ): PagedAsyncIterableIterator; /** * Lists a collection of apis associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -53,7 +53,7 @@ export interface Api { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -67,7 +67,7 @@ export interface Api { ): Promise; /** * Gets the details of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -81,7 +81,7 @@ export interface Api { ): Promise; /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -95,14 +95,14 @@ export interface Api { parameters: ApiCreateOrUpdateParameter, options?: ApiCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiCreateOrUpdateResponse > >; /** * Creates new or updates existing specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -118,7 +118,7 @@ export interface Api { ): Promise; /** * Updates the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -137,7 +137,7 @@ export interface Api { ): Promise; /** * Deletes the specified API of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts index 7b3ccbde09c6..d369a59d6f66 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiDiagnostic.ts @@ -26,7 +26,7 @@ import { export interface ApiDiagnostic { /** * Lists all diagnostics of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -39,7 +39,7 @@ export interface ApiDiagnostic { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -55,7 +55,7 @@ export interface ApiDiagnostic { ): Promise; /** * Gets the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -71,7 +71,7 @@ export interface ApiDiagnostic { ): Promise; /** * Creates a new Diagnostic for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -89,7 +89,7 @@ export interface ApiDiagnostic { ): Promise; /** * Updates the details of the Diagnostic for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service @@ -110,7 +110,7 @@ export interface ApiDiagnostic { ): Promise; /** * Deletes the specified Diagnostic from an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts index d78896d9eee2..1efcf25c77c1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts @@ -18,7 +18,7 @@ export interface ApiExport { /** * Gets the details of the API specified by its identifier in the format specified to the Storage Blob * with SAS Key valid for 5 minutes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts index 8df799f7dcdf..ca2f0189336a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssue.ts @@ -27,7 +27,7 @@ import { export interface ApiIssue { /** * Lists all issues associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -40,7 +40,7 @@ export interface ApiIssue { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -55,7 +55,7 @@ export interface ApiIssue { ): Promise; /** * Gets the details of the Issue for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -70,7 +70,7 @@ export interface ApiIssue { ): Promise; /** * Creates a new Issue for an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -87,7 +87,7 @@ export interface ApiIssue { ): Promise; /** * Updates an existing issue for an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -107,7 +107,7 @@ export interface ApiIssue { ): Promise; /** * Deletes the specified Issue from an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts index 1624786031ef..b6e147b842e3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueAttachment.ts @@ -24,7 +24,7 @@ import { export interface ApiIssueAttachment { /** * Lists all attachments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -39,7 +39,7 @@ export interface ApiIssueAttachment { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -56,7 +56,7 @@ export interface ApiIssueAttachment { ): Promise; /** * Gets the details of the issue Attachment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -73,7 +73,7 @@ export interface ApiIssueAttachment { ): Promise; /** * Creates a new Attachment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -92,7 +92,7 @@ export interface ApiIssueAttachment { ): Promise; /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts index 91385b09dc5e..4d86b68407ce 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiIssueComment.ts @@ -24,7 +24,7 @@ import { export interface ApiIssueComment { /** * Lists all comments for the Issue associated with the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -39,7 +39,7 @@ export interface ApiIssueComment { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -56,7 +56,7 @@ export interface ApiIssueComment { ): Promise; /** * Gets the details of the issue Comment for an API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -73,7 +73,7 @@ export interface ApiIssueComment { ): Promise; /** * Creates a new Comment for the Issue in an API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. @@ -92,7 +92,7 @@ export interface ApiIssueComment { ): Promise; /** * Deletes the specified comment from an Issue. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts index d33e3983eb75..947d8acdd1d3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ApiManagementServiceResource, ApiManagementServiceListByResourceGroupOptionalParams, @@ -25,6 +25,8 @@ import { ApiManagementServiceGetOptionalParams, ApiManagementServiceGetResponse, ApiManagementServiceDeleteOptionalParams, + ApiManagementServiceMigrateToStv2OptionalParams, + ApiManagementServiceMigrateToStv2Response, ApiManagementServiceGetSsoTokenOptionalParams, ApiManagementServiceGetSsoTokenResponse, ApiManagementServiceCheckNameAvailabilityParameters, @@ -41,7 +43,7 @@ import { export interface ApiManagementService { /** * List all API Management services within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( @@ -59,7 +61,7 @@ export interface ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -70,8 +72,8 @@ export interface ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceRestoreOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceRestoreResponse > >; @@ -79,7 +81,7 @@ export interface ApiManagementService { * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several minutes to * complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the Restore API Management service from backup operation. * @param options The options parameters. @@ -93,7 +95,7 @@ export interface ApiManagementService { /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -104,15 +106,15 @@ export interface ApiManagementService { parameters: ApiManagementServiceBackupRestoreParameters, options?: ApiManagementServiceBackupOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceBackupResponse > >; /** * Creates a backup of the API Management service to the given Azure Storage Account. This is long * running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the ApiManagementService_Backup operation. * @param options The options parameters. @@ -126,7 +128,7 @@ export interface ApiManagementService { /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -137,15 +139,15 @@ export interface ApiManagementService { parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceCreateOrUpdateResponse > >; /** * Creates or updates an API Management service. This is long running operation and could take several * minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -158,7 +160,7 @@ export interface ApiManagementService { ): Promise; /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -169,14 +171,14 @@ export interface ApiManagementService { parameters: ApiManagementServiceUpdateParameters, options?: ApiManagementServiceUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiManagementServiceUpdateResponse > >; /** * Updates an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. * @param options The options parameters. @@ -189,7 +191,7 @@ export interface ApiManagementService { ): Promise; /** * Gets an API Management service resource description. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -200,7 +202,7 @@ export interface ApiManagementService { ): Promise; /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -208,10 +210,10 @@ export interface ApiManagementService { resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes an existing API Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -220,9 +222,40 @@ export interface ApiManagementService { serviceName: string, options?: ApiManagementServiceDeleteOptionalParams ): Promise; + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginMigrateToStv2( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ApiManagementServiceMigrateToStv2Response + > + >; + /** + * Upgrades an API Management service to the Stv2 platform. For details refer to + * https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and + * could take several minutes to complete. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + beginMigrateToStv2AndWait( + resourceGroupName: string, + serviceName: string, + options?: ApiManagementServiceMigrateToStv2OptionalParams + ): Promise; /** * Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -250,7 +283,7 @@ export interface ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -259,8 +292,8 @@ export interface ApiManagementService { serviceName: string, options?: ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams ): Promise< - PollerLike< - PollOperationState< + SimplePollerLike< + OperationState< ApiManagementServiceApplyNetworkConfigurationUpdatesResponse >, ApiManagementServiceApplyNetworkConfigurationUpdatesResponse @@ -269,7 +302,7 @@ export interface ApiManagementService { /** * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS * changes. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts index 5fbc73b80d88..49efcda76ba3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementServiceSkus.ts @@ -17,7 +17,7 @@ import { export interface ApiManagementServiceSkus { /** * Gets all available SKU for a given API Management service - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts index 9e971caef8f5..bfe69dd00983 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperation.ts @@ -27,7 +27,7 @@ import { export interface ApiOperation { /** * Lists a collection of the operations for the specified API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -41,7 +41,7 @@ export interface ApiOperation { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the API operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -58,7 +58,7 @@ export interface ApiOperation { ): Promise; /** * Gets the details of the API Operation specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -75,7 +75,7 @@ export interface ApiOperation { ): Promise; /** * Creates a new operation in the API or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -94,7 +94,7 @@ export interface ApiOperation { ): Promise; /** * Updates the details of the operation in the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -116,7 +116,7 @@ export interface ApiOperation { ): Promise; /** * Deletes the specified operation in the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts index 9660beb53789..224a85a7e194 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiOperationPolicy.ts @@ -24,7 +24,7 @@ import { export interface ApiOperationPolicy { /** * Get the list of policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -41,7 +41,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Gets the entity state (Etag) version of the API operation policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -60,7 +60,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Get the policy configuration at the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -79,7 +79,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Creates or updates policy configuration for the API Operation level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -100,7 +100,7 @@ export interface ApiOperationPolicy { ): Promise; /** * Deletes the policy configuration at the Api Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts index 62f7d6f45aa4..3d54b954c30e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiPolicy.ts @@ -24,7 +24,7 @@ import { export interface ApiPolicy { /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -38,7 +38,7 @@ export interface ApiPolicy { ): Promise; /** * Gets the entity state (Etag) version of the API policy specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -54,7 +54,7 @@ export interface ApiPolicy { ): Promise; /** * Get the policy configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -70,7 +70,7 @@ export interface ApiPolicy { ): Promise; /** * Creates or updates policy configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -88,7 +88,7 @@ export interface ApiPolicy { ): Promise; /** * Deletes the policy configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts index 9ad6a6398327..d83bdb058e0a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiProduct.ts @@ -14,7 +14,7 @@ import { ProductContract, ApiProductListByApisOptionalParams } from "../models"; export interface ApiProduct { /** * Lists all Products, which the API is part of. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts index 878ee1e01a43..15d74409908a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRelease.ts @@ -28,7 +28,7 @@ export interface ApiRelease { * Lists all releases of an API. An API release is created when making an API Revision current. * Releases are also used to rollback to previous revisions. Results will be paged and can be * constrained by the $top and $skip parameters. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -41,7 +41,7 @@ export interface ApiRelease { ): PagedAsyncIterableIterator; /** * Returns the etag of an API release. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -57,7 +57,7 @@ export interface ApiRelease { ): Promise; /** * Returns the details of an API release. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -73,7 +73,7 @@ export interface ApiRelease { ): Promise; /** * Creates a new Release for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -91,7 +91,7 @@ export interface ApiRelease { ): Promise; /** * Updates the details of the release of the API specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management @@ -112,7 +112,7 @@ export interface ApiRelease { ): Promise; /** * Deletes the specified release in the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param releaseId Release identifier within an API. Must be unique in the current API Management diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts index 61d8d76687c4..8264f54d3f06 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiRevision.ts @@ -17,7 +17,7 @@ import { export interface ApiRevision { /** * Lists all revisions of an API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts index 35d79f66a387..2a2b5c2c807c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SchemaContract, ApiSchemaListByApiOptionalParams, @@ -25,7 +25,7 @@ import { export interface ApiSchema { /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -39,7 +39,7 @@ export interface ApiSchema { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -55,7 +55,7 @@ export interface ApiSchema { ): Promise; /** * Get the schema configuration at the API level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -71,7 +71,7 @@ export interface ApiSchema { ): Promise; /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -87,14 +87,14 @@ export interface ApiSchema { parameters: SchemaContract, options?: ApiSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ApiSchemaCreateOrUpdateResponse > >; /** * Creates or updates schema configuration for the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -112,7 +112,7 @@ export interface ApiSchema { ): Promise; /** * Deletes the schema configuration at the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts index 9d1f7b47f63e..cd4303cd42c1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiTagDescription.ts @@ -26,7 +26,7 @@ export interface ApiTagDescription { /** * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on * API level but tag may be assigned to the Operations - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -40,7 +40,7 @@ export interface ApiTagDescription { ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -57,7 +57,7 @@ export interface ApiTagDescription { ): Promise; /** * Get Tag description in scope of API - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -74,7 +74,7 @@ export interface ApiTagDescription { ): Promise; /** * Create/Update tag description in scope of the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -93,7 +93,7 @@ export interface ApiTagDescription { ): Promise; /** * Delete tag description for the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts index 552cec808f4e..4a5912de1735 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiVersionSet.ts @@ -27,7 +27,7 @@ import { export interface ApiVersionSet { /** * Lists a collection of API Version Sets in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -38,7 +38,7 @@ export interface ApiVersionSet { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -52,7 +52,7 @@ export interface ApiVersionSet { ): Promise; /** * Gets the details of the Api Version Set specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -66,7 +66,7 @@ export interface ApiVersionSet { ): Promise; /** * Creates or Updates a Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -82,7 +82,7 @@ export interface ApiVersionSet { ): Promise; /** * Updates the details of the Api VersionSet specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. @@ -101,7 +101,7 @@ export interface ApiVersionSet { ): Promise; /** * Deletes specific Api Version Set. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service * instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts new file mode 100644 index 000000000000..5d6bcdf9565c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWiki.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + ApiWikiGetEntityTagOptionalParams, + ApiWikiGetEntityTagResponse, + ApiWikiGetOptionalParams, + ApiWikiGetResponse, + WikiContract, + ApiWikiCreateOrUpdateOptionalParams, + ApiWikiCreateOrUpdateResponse, + WikiUpdateContract, + ApiWikiUpdateOptionalParams, + ApiWikiUpdateResponse, + ApiWikiDeleteOptionalParams +} from "../models"; + +/** Interface representing a ApiWiki. */ +export interface ApiWiki { + /** + * Gets the entity state (Etag) version of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikiGetOptionalParams + ): Promise; + /** + * Creates a new Wiki for an API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + parameters: WikiContract, + options?: ApiWikiCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the Wiki for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ApiWikiUpdateOptionalParams + ): Promise; + /** + * Deletes the specified Wiki from an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + ifMatch: string, + options?: ApiWikiDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts new file mode 100644 index 000000000000..b86f924bee02 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiWikis.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WikiContract, ApiWikisListOptionalParams } from "../models"; + +/// +/** Interface representing a ApiWikis. */ +export interface ApiWikis { + /** + * Gets the wikis for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: ApiWikisListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts new file mode 100644 index 000000000000..015f10f04d61 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + AuthorizationContract, + AuthorizationListByAuthorizationProviderOptionalParams, + AuthorizationGetOptionalParams, + AuthorizationGetResponse, + AuthorizationCreateOrUpdateOptionalParams, + AuthorizationCreateOrUpdateResponse, + AuthorizationDeleteOptionalParams, + AuthorizationConfirmConsentCodeRequestContract, + AuthorizationConfirmConsentCodeOptionalParams, + AuthorizationConfirmConsentCodeResponse +} from "../models"; + +/// +/** Interface representing a Authorization. */ +export interface Authorization { + /** + * Lists a collection of authorization providers defined within a authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + listByAuthorizationProvider( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationListByAuthorizationProviderOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the details of the authorization specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationGetOptionalParams + ): Promise; + /** + * Creates or updates authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationContract, + options?: AuthorizationCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific Authorization from the Authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + ifMatch: string, + options?: AuthorizationDeleteOptionalParams + ): Promise; + /** + * Confirm valid consent code to suppress Authorizations anti-phishing page. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + confirmConsentCode( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationConfirmConsentCodeRequestContract, + options?: AuthorizationConfirmConsentCodeOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts new file mode 100644 index 000000000000..9bbf78ae39d7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationAccessPolicy.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + AuthorizationAccessPolicyContract, + AuthorizationAccessPolicyListByAuthorizationOptionalParams, + AuthorizationAccessPolicyGetOptionalParams, + AuthorizationAccessPolicyGetResponse, + AuthorizationAccessPolicyCreateOrUpdateOptionalParams, + AuthorizationAccessPolicyCreateOrUpdateResponse, + AuthorizationAccessPolicyDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a AuthorizationAccessPolicy. */ +export interface AuthorizationAccessPolicy { + /** + * Lists a collection of authorization access policy defined within a authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param options The options parameters. + */ + listByAuthorization( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the details of the authorization access policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + options?: AuthorizationAccessPolicyGetOptionalParams + ): Promise; + /** + * Creates or updates Authorization Access Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + parameters: AuthorizationAccessPolicyContract, + options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific access policy from the Authorization. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param authorizationAccessPolicyId Identifier of the authorization access policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + authorizationAccessPolicyId: string, + ifMatch: string, + options?: AuthorizationAccessPolicyDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts new file mode 100644 index 000000000000..bcfc0be03fe5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationLoginLinks.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + AuthorizationLoginRequestContract, + AuthorizationLoginLinksPostOptionalParams, + AuthorizationLoginLinksPostResponse +} from "../models"; + +/** Interface representing a AuthorizationLoginLinks. */ +export interface AuthorizationLoginLinks { + /** + * Gets authorization login links. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param authorizationId Identifier of the authorization. + * @param parameters Create parameters. + * @param options The options parameters. + */ + post( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + authorizationId: string, + parameters: AuthorizationLoginRequestContract, + options?: AuthorizationLoginLinksPostOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts new file mode 100644 index 000000000000..1b2c64bf2296 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationProvider.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + AuthorizationProviderContract, + AuthorizationProviderListByServiceOptionalParams, + AuthorizationProviderGetOptionalParams, + AuthorizationProviderGetResponse, + AuthorizationProviderCreateOrUpdateOptionalParams, + AuthorizationProviderCreateOrUpdateResponse, + AuthorizationProviderDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a AuthorizationProvider. */ +export interface AuthorizationProvider { + /** + * Lists a collection of authorization providers defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: AuthorizationProviderListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the details of the authorization provider specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + options?: AuthorizationProviderGetOptionalParams + ): Promise; + /** + * Creates or updates authorization provider. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + parameters: AuthorizationProviderContract, + options?: AuthorizationProviderCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific authorization provider from the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param authorizationProviderId Identifier of the authorization provider. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + authorizationProviderId: string, + ifMatch: string, + options?: AuthorizationProviderDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts index b80767b9e50b..d70ac4bcaccc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorizationServer.ts @@ -29,7 +29,7 @@ import { export interface AuthorizationServer { /** * Lists a collection of authorization servers defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -40,7 +40,7 @@ export interface AuthorizationServer { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the authorizationServer specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -53,7 +53,7 @@ export interface AuthorizationServer { ): Promise; /** * Gets the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. @@ -66,7 +66,7 @@ export interface AuthorizationServer { ): Promise; /** * Creates new authorization server or updates an existing authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param parameters Create or update parameters. @@ -81,7 +81,7 @@ export interface AuthorizationServer { ): Promise; /** * Updates the details of the authorization server specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -99,7 +99,7 @@ export interface AuthorizationServer { ): Promise; /** * Deletes specific authorization server instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -115,7 +115,7 @@ export interface AuthorizationServer { ): Promise; /** * Gets the client secret details of the authorization server. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param authsid Identifier of the authorization server. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts index a4ba6c8f742f..40e8e927c666 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/backend.ts @@ -28,7 +28,7 @@ import { export interface Backend { /** * Lists a collection of backends in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -39,7 +39,7 @@ export interface Backend { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -53,7 +53,7 @@ export interface Backend { ): Promise; /** * Gets the details of the backend specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -67,7 +67,7 @@ export interface Backend { ): Promise; /** * Creates or Updates a backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -83,7 +83,7 @@ export interface Backend { ): Promise; /** * Updates an existing backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -102,7 +102,7 @@ export interface Backend { ): Promise; /** * Deletes the specified backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. @@ -118,9 +118,9 @@ export interface Backend { options?: BackendDeleteOptionalParams ): Promise; /** - * Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no - * timeout was specified, timeout of 2 minutes is used. - * @param resourceGroupName The name of the resource group. + * Notifies the API Management gateway to create a new connection to the backend after the specified + * timeout. If no timeout was specified, timeout of 2 minutes is used. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts index 4c50346e693c..8572de9ad24a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/cache.ts @@ -27,7 +27,7 @@ import { export interface Cache { /** * Lists a collection of all external Caches in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -38,7 +38,7 @@ export interface Cache { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -52,7 +52,7 @@ export interface Cache { ): Promise; /** * Gets the details of the Cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -66,7 +66,7 @@ export interface Cache { ): Promise; /** * Creates or updates an External Cache to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -82,7 +82,7 @@ export interface Cache { ): Promise; /** * Updates the details of the cache specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). @@ -101,7 +101,7 @@ export interface Cache { ): Promise; /** * Deletes specific Cache. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or valid * Azure region identifier). diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts index 5ee50eb816d1..1cf2f8298d79 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/certificate.ts @@ -27,7 +27,7 @@ import { export interface Certificate { /** * Lists a collection of all certificates in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -38,7 +38,7 @@ export interface Certificate { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -52,7 +52,7 @@ export interface Certificate { ): Promise; /** * Gets the details of the certificate specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -66,7 +66,7 @@ export interface Certificate { ): Promise; /** * Creates or updates the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -82,7 +82,7 @@ export interface Certificate { ): Promise; /** * Deletes specific certificate. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. @@ -99,7 +99,7 @@ export interface Certificate { ): Promise; /** * From KeyVault, Refresh the certificate being used for authentication with the backend. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param certificateId Identifier of the certificate entity. Must be unique in the current API * Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts index 16558538d39f..d6db18227d54 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentItem.ts @@ -24,7 +24,7 @@ import { export interface ContentItem { /** * Lists developer portal's content items specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -38,7 +38,7 @@ export interface ContentItem { /** * Returns the entity state (ETag) version of the developer portal's content item specified by its * identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -53,7 +53,7 @@ export interface ContentItem { ): Promise; /** * Returns the developer portal's content item specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -68,7 +68,7 @@ export interface ContentItem { ): Promise; /** * Creates a new developer portal's content item specified by the provided content type. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. @@ -85,7 +85,7 @@ export interface ContentItem { ): Promise; /** * Removes the specified developer portal's content item. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param contentItemId Content item identifier. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts index 1f84eaa59691..68c247315096 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/contentType.ts @@ -23,7 +23,7 @@ export interface ContentType { /** * Lists the developer portal's content types. Content types describe content items' properties, * validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -35,7 +35,7 @@ export interface ContentType { /** * Gets the details of the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param options The options parameters. @@ -50,7 +50,7 @@ export interface ContentType { * Creates or updates the developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Custom content types' identifiers need to start with * the `c-` prefix. Built-in content types can't be modified. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param parameters Create or update parameters. @@ -67,7 +67,7 @@ export interface ContentType { * Removes the specified developer portal's content type. Content types describe content items' * properties, validation rules, and constraints. Built-in content types (with identifiers starting * with the `c-` prefix) can't be removed. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param contentTypeId Content type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts index 58e679b7f001..650d46f719ba 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/delegationSettings.ts @@ -23,7 +23,7 @@ import { export interface DelegationSettings { /** * Gets the entity state (Etag) version of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -34,7 +34,7 @@ export interface DelegationSettings { ): Promise; /** * Get Delegation Settings for the Portal. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -45,7 +45,7 @@ export interface DelegationSettings { ): Promise; /** * Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -61,7 +61,7 @@ export interface DelegationSettings { ): Promise; /** * Create or Update Delegation settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. @@ -74,7 +74,7 @@ export interface DelegationSettings { ): Promise; /** * Gets the secret validation key of the DelegationSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts index ececcf7fb126..fda32ab5743c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/deletedServices.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DeletedServiceContract, DeletedServicesListBySubscriptionOptionalParams, @@ -47,7 +47,7 @@ export interface DeletedServices { serviceName: string, location: string, options?: DeletedServicesPurgeOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Purges Api Management Service (deletes it with no option to undelete). * @param serviceName The name of the API Management service. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts index a0e209ed079a..a33338aa2633 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/diagnostic.ts @@ -26,7 +26,7 @@ import { export interface Diagnostic { /** * Lists all diagnostics of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -37,7 +37,7 @@ export interface Diagnostic { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -51,7 +51,7 @@ export interface Diagnostic { ): Promise; /** * Gets the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -65,7 +65,7 @@ export interface Diagnostic { ): Promise; /** * Creates a new Diagnostic or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -81,7 +81,7 @@ export interface Diagnostic { ): Promise; /** * Updates the details of the Diagnostic specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. @@ -100,7 +100,7 @@ export interface Diagnostic { ): Promise; /** * Deletes the specified Diagnostic. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service * instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts new file mode 100644 index 000000000000..6a9cc7551419 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/documentation.ts @@ -0,0 +1,119 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DocumentationContract, + DocumentationListByServiceOptionalParams, + DocumentationGetEntityTagOptionalParams, + DocumentationGetEntityTagResponse, + DocumentationGetOptionalParams, + DocumentationGetResponse, + DocumentationCreateOrUpdateOptionalParams, + DocumentationCreateOrUpdateResponse, + DocumentationUpdateContract, + DocumentationUpdateOptionalParams, + DocumentationUpdateResponse, + DocumentationDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a Documentation. */ +export interface Documentation { + /** + * Lists all Documentations of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: DocumentationListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Documentation by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Documentation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + documentationId: string, + options?: DocumentationGetOptionalParams + ): Promise; + /** + * Creates a new Documentation or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + documentationId: string, + parameters: DocumentationContract, + options?: DocumentationCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the Documentation for an API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Documentation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + documentationId: string, + ifMatch: string, + parameters: DocumentationUpdateContract, + options?: DocumentationUpdateOptionalParams + ): Promise; + /** + * Deletes the specified Documentation from an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param documentationId Documentation identifier. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + documentationId: string, + ifMatch: string, + options?: DocumentationDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts index d65cdcb343ea..daa6c97bed59 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/emailTemplate.ts @@ -28,7 +28,7 @@ import { export interface EmailTemplate { /** * Gets all email templates - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -39,7 +39,7 @@ export interface EmailTemplate { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface EmailTemplate { ): Promise; /** * Gets the details of the email template specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param options The options parameters. @@ -65,7 +65,7 @@ export interface EmailTemplate { ): Promise; /** * Updates an Email Template. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param parameters Email Template update parameters. @@ -80,7 +80,7 @@ export interface EmailTemplate { ): Promise; /** * Updates API Management email template - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -98,7 +98,7 @@ export interface EmailTemplate { ): Promise; /** * Reset the Email Template to default template provided by the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param templateName Email Template Name Identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts index 6e2b9f2954a7..00a5b5b809c8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts @@ -33,7 +33,7 @@ import { export interface Gateway { /** * Lists a collection of gateways registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -44,7 +44,7 @@ export interface Gateway { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -58,7 +58,7 @@ export interface Gateway { ): Promise; /** * Gets the details of the Gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -72,7 +72,7 @@ export interface Gateway { ): Promise; /** * Creates or updates a Gateway to be used in Api Management instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -88,7 +88,7 @@ export interface Gateway { ): Promise; /** * Updates the details of the gateway specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -107,7 +107,7 @@ export interface Gateway { ): Promise; /** * Deletes specific Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -124,7 +124,7 @@ export interface Gateway { ): Promise; /** * Retrieves gateway keys. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -138,7 +138,7 @@ export interface Gateway { ): Promise; /** * Regenerates specified gateway key invalidating any tokens created with it. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -154,7 +154,7 @@ export interface Gateway { ): Promise; /** * Gets the Shared Access Authorization Token for the gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts index 43f847c08a83..40fbda7aec7f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayApi.ts @@ -22,7 +22,7 @@ import { export interface GatewayApi { /** * Lists a collection of the APIs associated with a gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -36,7 +36,7 @@ export interface GatewayApi { ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -52,7 +52,7 @@ export interface GatewayApi { ): Promise; /** * Adds an API to the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -68,7 +68,7 @@ export interface GatewayApi { ): Promise; /** * Deletes the specified API from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts index 73a9c1c61e87..8295474134eb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayCertificateAuthority.ts @@ -24,7 +24,7 @@ import { export interface GatewayCertificateAuthority { /** * Lists the collection of Certificate Authorities for the specified Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -38,7 +38,7 @@ export interface GatewayCertificateAuthority { ): PagedAsyncIterableIterator; /** * Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -55,7 +55,7 @@ export interface GatewayCertificateAuthority { ): Promise; /** * Get assigned Gateway Certificate Authority details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -72,7 +72,7 @@ export interface GatewayCertificateAuthority { ): Promise; /** * Assign Certificate entity to Gateway entity as Certificate Authority. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -91,7 +91,7 @@ export interface GatewayCertificateAuthority { ): Promise; /** * Remove relationship between Certificate Authority and Gateway entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts index d4bd2f9ac759..51859ce26a5e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gatewayHostnameConfiguration.ts @@ -24,7 +24,7 @@ import { export interface GatewayHostnameConfiguration { /** * Lists the collection of hostname configurations for the specified gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -39,7 +39,7 @@ export interface GatewayHostnameConfiguration { /** * Checks that hostname configuration entity specified by identifier exists for specified Gateway * entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -56,7 +56,7 @@ export interface GatewayHostnameConfiguration { ): Promise; /** * Get details of a hostname configuration - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -73,7 +73,7 @@ export interface GatewayHostnameConfiguration { ): Promise; /** * Creates of updates hostname configuration for a Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' @@ -92,7 +92,7 @@ export interface GatewayHostnameConfiguration { ): Promise; /** * Deletes the specified hostname configuration from the specified Gateway. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service * instance. Must not have value 'managed' diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts index 48f2f7894751..a41c3a8d9396 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { GlobalSchemaContract, GlobalSchemaListByServiceOptionalParams, @@ -25,7 +25,7 @@ import { export interface GlobalSchema { /** * Lists a collection of schemas registered with service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -36,7 +36,7 @@ export interface GlobalSchema { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -49,7 +49,7 @@ export interface GlobalSchema { ): Promise; /** * Gets the details of the Schema specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -62,7 +62,7 @@ export interface GlobalSchema { ): Promise; /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -75,14 +75,14 @@ export interface GlobalSchema { parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, GlobalSchemaCreateOrUpdateResponse > >; /** * Creates new or updates existing specified Schema of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -97,7 +97,7 @@ export interface GlobalSchema { ): Promise; /** * Deletes specific Schema. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts new file mode 100644 index 000000000000..a26be7a75349 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolver.ts @@ -0,0 +1,137 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ResolverContract, + GraphQLApiResolverListByApiOptionalParams, + GraphQLApiResolverGetEntityTagOptionalParams, + GraphQLApiResolverGetEntityTagResponse, + GraphQLApiResolverGetOptionalParams, + GraphQLApiResolverGetResponse, + GraphQLApiResolverCreateOrUpdateOptionalParams, + GraphQLApiResolverCreateOrUpdateResponse, + ResolverUpdateContract, + GraphQLApiResolverUpdateOptionalParams, + GraphQLApiResolverUpdateResponse, + GraphQLApiResolverDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a GraphQLApiResolver. */ +export interface GraphQLApiResolver { + /** + * Lists a collection of the resolvers for the specified GraphQL API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + apiId: string, + options?: GraphQLApiResolverListByApiOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the GraphQL API resolver specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the GraphQL API Resolver specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverGetOptionalParams + ): Promise; + /** + * Creates a new resolver in the GraphQL API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + parameters: ResolverContract, + options?: GraphQLApiResolverCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the resolver in the GraphQL API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters GraphQL API Resolver Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + ifMatch: string, + parameters: ResolverUpdateContract, + options?: GraphQLApiResolverUpdateOptionalParams + ): Promise; + /** + * Deletes the specified resolver in the GraphQL API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + ifMatch: string, + options?: GraphQLApiResolverDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts new file mode 100644 index 000000000000..d2bba1d665a9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/graphQLApiResolverPolicy.ts @@ -0,0 +1,124 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + GraphQLApiResolverPolicyListByResolverOptionalParams, + PolicyIdName, + GraphQLApiResolverPolicyGetEntityTagOptionalParams, + GraphQLApiResolverPolicyGetEntityTagResponse, + GraphQLApiResolverPolicyGetOptionalParams, + GraphQLApiResolverPolicyGetResponse, + GraphQLApiResolverPolicyCreateOrUpdateOptionalParams, + GraphQLApiResolverPolicyCreateOrUpdateResponse, + GraphQLApiResolverPolicyDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a GraphQLApiResolverPolicy. */ +export interface GraphQLApiResolverPolicy { + /** + * Get the list of policy configuration at the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param options The options parameters. + */ + listByResolver( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + options?: GraphQLApiResolverPolicyListByResolverOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the GraphQL API resolver policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetEntityTagOptionalParams + ): Promise; + /** + * Get the policy configuration at the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + options?: GraphQLApiResolverPolicyGetOptionalParams + ): Promise; + /** + * Creates or updates policy configuration for the GraphQL API Resolver level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the policy configuration at the GraphQL Api Resolver. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param resolverId Resolver identifier within a GraphQL API. Must be unique in the current API + * Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + apiId: string, + resolverId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: GraphQLApiResolverPolicyDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts index b94d8b460d25..2be3ae28bb90 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/group.ts @@ -28,7 +28,7 @@ import { export interface Group { /** * Lists a collection of groups defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -39,7 +39,7 @@ export interface Group { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface Group { ): Promise; /** * Gets the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -65,7 +65,7 @@ export interface Group { ): Promise; /** * Creates or Updates a group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param parameters Create parameters. @@ -80,7 +80,7 @@ export interface Group { ): Promise; /** * Updates the details of the group specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -98,7 +98,7 @@ export interface Group { ): Promise; /** * Deletes specific group of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts index 342840405955..3eb645744d60 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/groupUser.ts @@ -22,7 +22,7 @@ import { export interface GroupUser { /** * Lists a collection of user entities associated with the group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -35,7 +35,7 @@ export interface GroupUser { ): PagedAsyncIterableIterator; /** * Checks that user entity specified by identifier is associated with the group entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -50,7 +50,7 @@ export interface GroupUser { ): Promise; /** * Add existing user to existing group - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -65,7 +65,7 @@ export interface GroupUser { ): Promise; /** * Remove existing user from existing group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param userId User identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts index 709832cf4a8c..c5317c014fbb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/identityProvider.ts @@ -31,7 +31,7 @@ import { export interface IdentityProvider { /** * Lists a collection of Identity Provider configured in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -42,7 +42,7 @@ export interface IdentityProvider { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the identityProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -55,7 +55,7 @@ export interface IdentityProvider { ): Promise; /** * Gets the configuration details of the identity Provider configured in specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. @@ -68,7 +68,7 @@ export interface IdentityProvider { ): Promise; /** * Creates or Updates the IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param parameters Create parameters. @@ -83,7 +83,7 @@ export interface IdentityProvider { ): Promise; /** * Updates an existing IdentityProvider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -101,7 +101,7 @@ export interface IdentityProvider { ): Promise; /** * Deletes the specified identity provider configuration. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -117,7 +117,7 @@ export interface IdentityProvider { ): Promise; /** * Gets the client secret details of the Identity Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param identityProviderName Identity Provider Type identifier. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts index 24d2feb9be63..83434e88bcd2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts @@ -12,6 +12,8 @@ export * from "./apiRelease"; export * from "./apiOperation"; export * from "./apiOperationPolicy"; export * from "./tag"; +export * from "./graphQLApiResolver"; +export * from "./graphQLApiResolverPolicy"; export * from "./apiProduct"; export * from "./apiPolicy"; export * from "./apiSchema"; @@ -21,9 +23,15 @@ export * from "./apiIssueComment"; export * from "./apiIssueAttachment"; export * from "./apiTagDescription"; export * from "./operationOperations"; +export * from "./apiWiki"; +export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; export * from "./authorizationServer"; +export * from "./authorizationProvider"; +export * from "./authorization"; +export * from "./authorizationLoginLinks"; +export * from "./authorizationAccessPolicy"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -53,6 +61,8 @@ export * from "./openIdConnectProvider"; export * from "./outboundNetworkDependenciesEndpoints"; export * from "./policy"; export * from "./policyDescription"; +export * from "./policyFragment"; +export * from "./portalConfig"; export * from "./portalRevision"; export * from "./portalSettings"; export * from "./signInSettings"; @@ -64,6 +74,8 @@ export * from "./productApi"; export * from "./productGroup"; export * from "./productSubscriptions"; export * from "./productPolicy"; +export * from "./productWiki"; +export * from "./productWikis"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -81,3 +93,4 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; +export * from "./documentation"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts index 91faf0f923b5..9b26a41c56f2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/issue.ts @@ -19,7 +19,7 @@ import { export interface Issue { /** * Lists a collection of issues in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -30,7 +30,7 @@ export interface Issue { ): PagedAsyncIterableIterator; /** * Gets API Management issue details - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts index af2ca6fd832c..8ec31d0af0c0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/logger.ts @@ -27,7 +27,7 @@ import { export interface Logger { /** * Lists a collection of loggers in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -38,7 +38,7 @@ export interface Logger { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -51,7 +51,7 @@ export interface Logger { ): Promise; /** * Gets the details of the logger specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The options parameters. @@ -64,7 +64,7 @@ export interface Logger { ): Promise; /** * Creates or Updates a logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param parameters Create parameters. @@ -79,7 +79,7 @@ export interface Logger { ): Promise; /** * Updates an existing logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -97,7 +97,7 @@ export interface Logger { ): Promise; /** * Deletes the specified logger. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts index 86a6969ff0c9..d325fdb15112 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { NamedValueContract, NamedValueListByServiceOptionalParams, @@ -33,7 +33,7 @@ import { export interface NamedValue { /** * Lists a collection of named values defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -44,7 +44,7 @@ export interface NamedValue { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -57,7 +57,7 @@ export interface NamedValue { ): Promise; /** * Gets the details of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -70,7 +70,7 @@ export interface NamedValue { ): Promise; /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -83,14 +83,14 @@ export interface NamedValue { parameters: NamedValueCreateContract, options?: NamedValueCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueCreateOrUpdateResponse > >; /** * Creates or updates named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. @@ -105,7 +105,7 @@ export interface NamedValue { ): Promise; /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -121,14 +121,14 @@ export interface NamedValue { parameters: NamedValueUpdateParameters, options?: NamedValueUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueUpdateResponse > >; /** * Updates the specific named value. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -146,7 +146,7 @@ export interface NamedValue { ): Promise; /** * Deletes specific named value from the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -162,7 +162,7 @@ export interface NamedValue { ): Promise; /** * Gets the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -175,7 +175,7 @@ export interface NamedValue { ): Promise; /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. @@ -186,14 +186,14 @@ export interface NamedValue { namedValueId: string, options?: NamedValueRefreshSecretOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, NamedValueRefreshSecretResponse > >; /** * Refresh the secret of the named value specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param namedValueId Identifier of the NamedValue. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts index 6df394bd96f5..6bed7641b6b9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/networkStatus.ts @@ -18,7 +18,7 @@ export interface NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -30,7 +30,7 @@ export interface NetworkStatus { /** * Gets the Connectivity Status to the external resources on which the Api Management service depends * from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param locationName Location in which the API Management service is deployed. This is one of the * Azure Regions like West US, East US, South Central US. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts index a5719865ce1a..344725e96540 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notification.ts @@ -22,7 +22,7 @@ import { export interface Notification { /** * Lists a collection of properties defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -33,7 +33,7 @@ export interface Notification { ): PagedAsyncIterableIterator; /** * Gets the details of the Notification specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -46,7 +46,7 @@ export interface Notification { ): Promise; /** * Create or Update API Management publisher notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts index b720f0838181..0d0742d5c743 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientEmail.ts @@ -21,7 +21,7 @@ import { export interface NotificationRecipientEmail { /** * Gets the list of the Notification Recipient Emails subscribed to a notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -34,7 +34,7 @@ export interface NotificationRecipientEmail { ): Promise; /** * Determine if Notification Recipient Email subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -49,7 +49,7 @@ export interface NotificationRecipientEmail { ): Promise; /** * Adds the Email address to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. @@ -64,7 +64,7 @@ export interface NotificationRecipientEmail { ): Promise; /** * Removes the email from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param email Email identifier. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts index 16feb4ea5822..1e31f45716ba 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/notificationRecipientUser.ts @@ -21,7 +21,7 @@ import { export interface NotificationRecipientUser { /** * Gets the list of the Notification Recipient User subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param options The options parameters. @@ -34,7 +34,7 @@ export interface NotificationRecipientUser { ): Promise; /** * Determine if the Notification Recipient User is subscribed to the notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -49,7 +49,7 @@ export interface NotificationRecipientUser { ): Promise; /** * Adds the API Management User to the list of Recipients for the Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. @@ -64,7 +64,7 @@ export interface NotificationRecipientUser { ): Promise; /** * Removes the API Management user from the list of Notification. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. * @param userId User identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts index eb15628140c9..580369d0e3de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/openIdConnectProvider.ts @@ -29,7 +29,7 @@ import { export interface OpenIdConnectProvider { /** * Lists of all the OpenId Connect Providers. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -40,7 +40,7 @@ export interface OpenIdConnectProvider { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -53,7 +53,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Gets specific OpenID Connect Provider without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. @@ -66,7 +66,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Creates or updates the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param parameters Create parameters. @@ -81,7 +81,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Updates the specific OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -99,7 +99,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Deletes specific OpenID Connect Provider of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -115,7 +115,7 @@ export interface OpenIdConnectProvider { ): Promise; /** * Gets the client secret details of the OpenID Connect Provider. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param opid Identifier of the OpenID Connect Provider. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts index b287f56a4ad0..f5415a244e27 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/operationOperations.ts @@ -17,7 +17,7 @@ import { export interface OperationOperations { /** * Lists a collection of operations associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts index 44d441b19c73..dd3d17095902 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts @@ -15,7 +15,7 @@ import { export interface OutboundNetworkDependenciesEndpoints { /** * Gets the network endpoints of all outbound dependencies of a ApiManagement service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts index c69604e0a097..84d9f55f2198 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts @@ -24,7 +24,7 @@ import { export interface Policy { /** * Lists all the Global Policy definitions of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -35,7 +35,7 @@ export interface Policy { ): Promise; /** * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -48,7 +48,7 @@ export interface Policy { ): Promise; /** * Get the Global policy definition of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param options The options parameters. @@ -61,7 +61,7 @@ export interface Policy { ): Promise; /** * Creates or updates the global policy configuration of the Api Management service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param parameters The policy contents to apply. @@ -76,7 +76,7 @@ export interface Policy { ): Promise; /** * Deletes the global policy configuration of the Api Management Service. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param policyId The identifier of the Policy. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts index 4602fdaf931e..452f51ef1fdd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyDescription.ts @@ -15,7 +15,7 @@ import { export interface PolicyDescription { /** * Lists all policy descriptions. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts new file mode 100644 index 000000000000..171bfa2f20c0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts @@ -0,0 +1,128 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT 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 { + PolicyFragmentListByServiceOptionalParams, + PolicyFragmentListByServiceResponse, + PolicyFragmentGetEntityTagOptionalParams, + PolicyFragmentGetEntityTagResponse, + PolicyFragmentGetOptionalParams, + PolicyFragmentGetResponse, + PolicyFragmentContract, + PolicyFragmentCreateOrUpdateOptionalParams, + PolicyFragmentCreateOrUpdateResponse, + PolicyFragmentDeleteOptionalParams, + PolicyFragmentListReferencesOptionalParams, + PolicyFragmentListReferencesResponse +} from "../models"; + +/** Interface representing a PolicyFragment. */ +export interface PolicyFragment { + /** + * Gets all policy fragments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams + ): Promise; + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetEntityTagOptionalParams + ): Promise; + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentGetOptionalParams + ): Promise; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + PolicyFragmentCreateOrUpdateResponse + > + >; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + id: string, + parameters: PolicyFragmentContract, + options?: PolicyFragmentCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + id: string, + ifMatch: string, + options?: PolicyFragmentDeleteOptionalParams + ): Promise; + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + id: string, + options?: PolicyFragmentListReferencesOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts new file mode 100644 index 000000000000..d32c7d0eb75b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.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 { + PortalConfigListByServiceOptionalParams, + PortalConfigListByServiceResponse, + PortalConfigGetEntityTagOptionalParams, + PortalConfigGetEntityTagResponse, + PortalConfigGetOptionalParams, + PortalConfigGetResponse, + PortalConfigContract, + PortalConfigUpdateOptionalParams, + PortalConfigUpdateResponse, + PortalConfigCreateOrUpdateOptionalParams, + PortalConfigCreateOrUpdateResponse +} from "../models"; + +/** Interface representing a PortalConfig. */ +export interface PortalConfig { + /** + * Lists the developer portal configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams + ): Promise; + /** + * Gets the entity state (Etag) version of the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetEntityTagOptionalParams + ): Promise; + /** + * Get the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + options?: PortalConfigGetOptionalParams + ): Promise; + /** + * Update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update the developer portal configuration. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigUpdateOptionalParams + ): Promise; + /** + * Create or update the developer portal configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param portalConfigId Portal configuration identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update the developer portal configuration. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + portalConfigId: string, + ifMatch: string, + parameters: PortalConfigContract, + options?: PortalConfigCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts index 13f28be90928..e0f92866e5f3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PortalRevisionContract, PortalRevisionListByServiceOptionalParams, @@ -26,7 +26,7 @@ import { export interface PortalRevision { /** * Lists developer portal's revisions. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -37,7 +37,7 @@ export interface PortalRevision { ): PagedAsyncIterableIterator; /** * Gets the developer portal revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -51,7 +51,7 @@ export interface PortalRevision { ): Promise; /** * Gets the developer portal's revision specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -66,7 +66,7 @@ export interface PortalRevision { /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -80,15 +80,15 @@ export interface PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionCreateOrUpdateResponse > >; /** * Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` * property indicates if the revision is publicly accessible. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -104,7 +104,7 @@ export interface PortalRevision { ): Promise; /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. @@ -121,14 +121,14 @@ export interface PortalRevision { parameters: PortalRevisionContract, options?: PortalRevisionUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PortalRevisionUpdateResponse > >; /** * Updates the description of specified portal revision or makes it current. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param portalRevisionId Portal revision identifier. Must be unique in the current API Management * service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts index a7c5274a3d18..a7ce1b08a936 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalSettings.ts @@ -15,7 +15,7 @@ import { export interface PortalSettings { /** * Lists a collection of portalsettings defined within a service instance.. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts index 47769f028af9..b6f6c5b9b32b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { PrivateEndpointConnection, PrivateEndpointConnectionListByServiceOptionalParams, @@ -28,7 +28,7 @@ import { export interface PrivateEndpointConnectionOperations { /** * Lists all private endpoint connections of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -39,7 +39,7 @@ export interface PrivateEndpointConnectionOperations { ): PagedAsyncIterableIterator; /** * Gets the details of the Private Endpoint Connection specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -52,7 +52,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -65,14 +65,14 @@ export interface PrivateEndpointConnectionOperations { privateEndpointConnectionRequest: PrivateEndpointConnectionRequest, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, PrivateEndpointConnectionCreateOrUpdateResponse > >; /** * Creates a new Private Endpoint Connection or updates an existing one. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param privateEndpointConnectionRequest A request to approve or reject a private endpoint connection @@ -87,7 +87,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -97,10 +97,10 @@ export interface PrivateEndpointConnectionOperations { serviceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes the specified Private Endpoint Connection. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateEndpointConnectionName Name of the private endpoint connection. * @param options The options parameters. @@ -113,7 +113,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -124,7 +124,7 @@ export interface PrivateEndpointConnectionOperations { ): Promise; /** * Gets the private link resources - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param privateLinkSubResourceName Name of the private link resource. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts index 66b903667cd3..f6a72fe292f0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/product.ts @@ -29,7 +29,7 @@ import { export interface Product { /** * Lists a collection of products in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -40,7 +40,7 @@ export interface Product { ): PagedAsyncIterableIterator; /** * Lists a collection of products associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -51,7 +51,7 @@ export interface Product { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -64,7 +64,7 @@ export interface Product { ): Promise; /** * Gets the details of the product specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -77,7 +77,7 @@ export interface Product { ): Promise; /** * Creates or Updates a product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -92,7 +92,7 @@ export interface Product { ): Promise; /** * Update existing product details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -110,7 +110,7 @@ export interface Product { ): Promise; /** * Delete product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts index 4e19ecab6cd3..7051be981009 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApi.ts @@ -22,7 +22,7 @@ import { export interface ProductApi { /** * Lists a collection of the APIs associated with a product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -35,7 +35,7 @@ export interface ProductApi { ): PagedAsyncIterableIterator; /** * Checks that API entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. @@ -51,7 +51,7 @@ export interface ProductApi { ): Promise; /** * Adds an API to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. @@ -67,7 +67,7 @@ export interface ProductApi { ): Promise; /** * Deletes the specified API from the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param apiId API revision identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts index b6c66bd9df75..e44872094a3d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroup.ts @@ -22,7 +22,7 @@ import { export interface ProductGroup { /** * Lists the collection of developer groups associated with the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -35,7 +35,7 @@ export interface ProductGroup { ): PagedAsyncIterableIterator; /** * Checks that Group entity specified by identifier is associated with the Product entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -50,7 +50,7 @@ export interface ProductGroup { ): Promise; /** * Adds the association between the specified developer group with the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -65,7 +65,7 @@ export interface ProductGroup { ): Promise; /** * Deletes the association between the specified group and product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts index 8db0d28d5500..9f08f040cfb3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts @@ -24,7 +24,7 @@ import { export interface ProductPolicy { /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -37,7 +37,7 @@ export interface ProductPolicy { ): Promise; /** * Get the ETag of the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -52,7 +52,7 @@ export interface ProductPolicy { ): Promise; /** * Get the policy configuration at the Product level. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -67,7 +67,7 @@ export interface ProductPolicy { ): Promise; /** * Creates or updates policy configuration for the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. @@ -84,7 +84,7 @@ export interface ProductPolicy { ): Promise; /** * Deletes the policy configuration at the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param policyId The identifier of the Policy. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts index 871a22f687f3..804f5bf882b7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productSubscriptions.ts @@ -17,7 +17,7 @@ import { export interface ProductSubscriptions { /** * Lists the collection of subscriptions to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts new file mode 100644 index 000000000000..540bdf5fa04a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWiki.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + ProductWikiGetEntityTagOptionalParams, + ProductWikiGetEntityTagResponse, + ProductWikiGetOptionalParams, + ProductWikiGetResponse, + WikiContract, + ProductWikiCreateOrUpdateOptionalParams, + ProductWikiCreateOrUpdateResponse, + WikiUpdateContract, + ProductWikiUpdateOptionalParams, + ProductWikiUpdateResponse, + ProductWikiDeleteOptionalParams +} from "../models"; + +/** Interface representing a ProductWiki. */ +export interface ProductWiki { + /** + * Gets the entity state (Etag) version of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikiGetOptionalParams + ): Promise; + /** + * Creates a new Wiki for a Product or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + parameters: WikiContract, + options?: ProductWikiCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Wiki Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + productId: string, + ifMatch: string, + parameters: WikiUpdateContract, + options?: ProductWikiUpdateOptionalParams + ): Promise; + /** + * Deletes the specified Wiki from a Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + ifMatch: string, + options?: ProductWikiDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts new file mode 100644 index 000000000000..878251c2a6a7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productWikis.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WikiContract, ProductWikisListOptionalParams } from "../models"; + +/// +/** Interface representing a ProductWikis. */ +export interface ProductWikis { + /** + * Gets the details of the Wiki for a Product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductWikisListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts index 6c6dffef8515..8b06db3207dd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByCounterKeys.ts @@ -19,7 +19,7 @@ export interface QuotaByCounterKeys { /** * Lists a collection of current quota counter periods associated with the counter-key configured in * the policy on the specified service instance. The api does not support paging yet. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -36,7 +36,7 @@ export interface QuotaByCounterKeys { /** * Updates all the quota counter values specified with the existing quota counter key to a value in the * specified service instance. This should be used for reset of the quota counter values. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts index da9ef6b67f9b..49641b09add3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/quotaByPeriodKeys.ts @@ -19,7 +19,7 @@ export interface QuotaByPeriodKeys { /** * Gets the value of the quota counter associated with the counter-key in the policy for the specific * period in service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in @@ -37,7 +37,7 @@ export interface QuotaByPeriodKeys { ): Promise; /** * Updates an existing quota counter value in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" in diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts index 96384a2f7965..b65177a34f8c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/region.ts @@ -14,7 +14,7 @@ import { RegionContract, RegionListByServiceOptionalParams } from "../models"; export interface Region { /** * Lists all azure regions in which the service exists. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts index 3f7015b510e5..0069ea94bbfc 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/reports.ts @@ -25,7 +25,7 @@ import { export interface Reports { /** * Lists report records by API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter The filter to apply on the operation. * @param options The options parameters. @@ -38,7 +38,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -63,7 +63,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by API Operations. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -87,7 +87,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -111,7 +111,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by geography. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -135,7 +135,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le @@ -159,7 +159,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by Time. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter, select @@ -187,7 +187,7 @@ export interface Reports { ): PagedAsyncIterableIterator; /** * Lists report records by Request. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param filter | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts index 0c6dd957763a..1c4b94321adb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signInSettings.ts @@ -21,7 +21,7 @@ import { export interface SignInSettings { /** * Gets the entity state (Etag) version of the SignInSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -32,7 +32,7 @@ export interface SignInSettings { ): Promise; /** * Get Sign In Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -43,7 +43,7 @@ export interface SignInSettings { ): Promise; /** * Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -59,7 +59,7 @@ export interface SignInSettings { ): Promise; /** * Create or Update Sign-In settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts index 56ee69ef6406..1dbcacd372e8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/signUpSettings.ts @@ -21,7 +21,7 @@ import { export interface SignUpSettings { /** * Gets the entity state (Etag) version of the SignUpSettings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -32,7 +32,7 @@ export interface SignUpSettings { ): Promise; /** * Get Sign Up Settings for the Portal - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -43,7 +43,7 @@ export interface SignUpSettings { ): Promise; /** * Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. @@ -59,7 +59,7 @@ export interface SignUpSettings { ): Promise; /** * Create or Update Sign-Up settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param parameters Create or update parameters. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts index 17b0413f92fa..74d50388f102 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/subscription.ts @@ -32,7 +32,7 @@ import { export interface Subscription { /** * Lists all subscriptions of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -43,7 +43,7 @@ export interface Subscription { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -57,7 +57,7 @@ export interface Subscription { ): Promise; /** * Gets the specified Subscription entity. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -71,7 +71,7 @@ export interface Subscription { ): Promise; /** * Creates or updates the subscription of specified user to the specified product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -87,7 +87,7 @@ export interface Subscription { ): Promise; /** * Updates the details of a subscription specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -106,7 +106,7 @@ export interface Subscription { ): Promise; /** * Deletes the specified subscription. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -123,7 +123,7 @@ export interface Subscription { ): Promise; /** * Regenerates primary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -137,7 +137,7 @@ export interface Subscription { ): Promise; /** * Regenerates secondary key of existing subscription of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. @@ -151,7 +151,7 @@ export interface Subscription { ): Promise; /** * Gets the specified Subscription keys. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param sid Subscription entity Identifier. The entity represents the association between a user and * a product in API Management. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts index b1340408f80e..dca054554a45 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tag.ts @@ -51,7 +51,7 @@ import { export interface Tag { /** * Lists all Tags associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -68,7 +68,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -82,7 +82,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Lists all Tags associated with the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -95,7 +95,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Lists a collection of tags defined within a service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -106,7 +106,7 @@ export interface Tag { ): PagedAsyncIterableIterator; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -125,7 +125,7 @@ export interface Tag { ): Promise; /** * Get tag associated with the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -144,7 +144,7 @@ export interface Tag { ): Promise; /** * Assign tag to the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -163,7 +163,7 @@ export interface Tag { ): Promise; /** * Detach the tag from the Operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -182,7 +182,7 @@ export interface Tag { ): Promise; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -198,7 +198,7 @@ export interface Tag { ): Promise; /** * Get tag associated with the API. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -214,7 +214,7 @@ export interface Tag { ): Promise; /** * Assign tag to the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -230,7 +230,7 @@ export interface Tag { ): Promise; /** * Detach the tag from the Api. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. @@ -246,7 +246,7 @@ export interface Tag { ): Promise; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -261,7 +261,7 @@ export interface Tag { ): Promise; /** * Get tag associated with the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -276,7 +276,7 @@ export interface Tag { ): Promise; /** * Assign tag to the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -291,7 +291,7 @@ export interface Tag { ): Promise; /** * Detach the tag from the Product. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. @@ -306,7 +306,7 @@ export interface Tag { ): Promise; /** * Gets the entity state version of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -319,7 +319,7 @@ export interface Tag { ): Promise; /** * Gets the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -332,7 +332,7 @@ export interface Tag { ): Promise; /** * Creates a tag. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param parameters Create parameters. @@ -347,7 +347,7 @@ export interface Tag { ): Promise; /** * Updates the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -365,7 +365,7 @@ export interface Tag { ): Promise; /** * Deletes specific tag of the API Management service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts index ed9c78851f25..9290bd0da6f0 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagResource.ts @@ -17,7 +17,7 @@ import { export interface TagResource { /** * Lists a collection of resources associated with tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts index 9e9bb9288bd5..21cdd2908a90 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccess.ts @@ -32,7 +32,7 @@ import { export interface TenantAccess { /** * Returns list of access infos - for Git and Management endpoints. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -43,7 +43,7 @@ export interface TenantAccess { ): PagedAsyncIterableIterator; /** * Tenant access metadata - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -56,7 +56,7 @@ export interface TenantAccess { ): Promise; /** * Get tenant access information details without secrets. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -69,7 +69,7 @@ export interface TenantAccess { ): Promise; /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -87,7 +87,7 @@ export interface TenantAccess { ): Promise; /** * Update tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -105,7 +105,7 @@ export interface TenantAccess { ): Promise; /** * Regenerate primary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -118,7 +118,7 @@ export interface TenantAccess { ): Promise; /** * Regenerate secondary access key - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -131,7 +131,7 @@ export interface TenantAccess { ): Promise; /** * Get tenant access information details. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts index b025d713a3d4..12b13c1b73e1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantAccessGit.ts @@ -16,7 +16,7 @@ import { export interface TenantAccessGit { /** * Regenerate primary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. @@ -29,7 +29,7 @@ export interface TenantAccessGit { ): Promise; /** * Regenerate secondary access key for GIT. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param accessName The identifier of the Access configuration. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts index 7ddc553fbb14..81a7460fa896 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DeployConfigurationParameters, ConfigurationIdName, @@ -26,7 +26,7 @@ export interface TenantConfiguration { /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -39,15 +39,15 @@ export interface TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationDeployOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationDeployResponse > >; /** * This operation applies changes from the specified Git branch to the configuration database. This is * a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Deploy Configuration parameters. @@ -63,7 +63,7 @@ export interface TenantConfiguration { /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -76,15 +76,15 @@ export interface TenantConfiguration { parameters: SaveConfigurationParameter, options?: TenantConfigurationSaveOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationSaveResponse > >; /** * This operation creates a commit with the current configuration snapshot to the specified branch in * the repository. This is a long running operation and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Save Configuration parameters. @@ -100,7 +100,7 @@ export interface TenantConfiguration { /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -113,15 +113,15 @@ export interface TenantConfiguration { parameters: DeployConfigurationParameters, options?: TenantConfigurationValidateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TenantConfigurationValidateResponse > >; /** * This operation validates the changes in the specified Git branch. This is a long running operation * and could take several minutes to complete. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param parameters Validate Configuration parameters. @@ -137,7 +137,7 @@ export interface TenantConfiguration { /** * Gets the status of the most recent synchronization between the configuration database and the Git * repository. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts index a9435f3e6012..4f8c4c6faa9f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts @@ -20,7 +20,7 @@ import { export interface TenantSettings { /** * Public settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -31,7 +31,7 @@ export interface TenantSettings { ): PagedAsyncIterableIterator; /** * Get tenant settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param settingsType The identifier of the settings. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts index f62b70593d15..0b6102704805 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts @@ -33,7 +33,7 @@ import { export interface User { /** * Lists a collection of registered users in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -44,7 +44,7 @@ export interface User { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -57,7 +57,7 @@ export interface User { ): Promise; /** * Gets the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -70,7 +70,7 @@ export interface User { ): Promise; /** * Creates or Updates a user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -85,7 +85,7 @@ export interface User { ): Promise; /** * Updates the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -103,7 +103,7 @@ export interface User { ): Promise; /** * Deletes specific user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -120,7 +120,7 @@ export interface User { /** * Retrieves a redirection URL containing an authentication token for signing a given user into the * developer portal. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -133,7 +133,7 @@ export interface User { ): Promise; /** * Gets the Shared Access Authorization Token for the User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create Authorization Token parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts index 5044849cb033..0479110f882e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts @@ -12,7 +12,7 @@ import { UserConfirmationPasswordSendOptionalParams } from "../models"; export interface UserConfirmationPassword { /** * Sends confirmation - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts index 1dc89d586dce..a2fbd8f792de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts @@ -14,7 +14,7 @@ import { GroupContract, UserGroupListOptionalParams } from "../models"; export interface UserGroup { /** * Lists all user groups. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts index 1c9fb3765d37..1a242a6c686d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts @@ -17,7 +17,7 @@ import { export interface UserIdentities { /** * List of all user identities. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts index 8ed8472b2794..548a266d86dd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts @@ -19,7 +19,7 @@ import { export interface UserSubscription { /** * Lists the collection of subscriptions of the specified user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -32,7 +32,7 @@ export interface UserSubscription { ): PagedAsyncIterableIterator; /** * Gets the specified Subscription entity associated with a particular user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param sid Subscription entity Identifier. The entity represents the association between a user and diff --git a/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/apimanagement/arm-apimanagement/tsconfig.json b/sdk/apimanagement/arm-apimanagement/tsconfig.json index f92121c033f6..3e6ae96443f3 100644 --- a/sdk/apimanagement/arm-apimanagement/tsconfig.json +++ b/sdk/apimanagement/arm-apimanagement/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-apimanagement": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"