From 76695a680700c8ded126bc6174fa2eeb120a87a3 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 19 Jan 2023 14:02:46 +0000 Subject: [PATCH] CodeGen from PR 21595 in Azure/azure-rest-api-specs Merge e2b8e7dc47efb515e770d9bea6c8c7a4015dc90c into dad1cbe5acd3528bc785df7c4e52397bd2cbbbf8 --- .../arm-apimanagement/CHANGELOG.md | 448 +- sdk/apimanagement/arm-apimanagement/LICENSE | 2 +- .../arm-apimanagement/_meta.json | 10 +- .../arm-apimanagement/package.json | 12 +- .../review/arm-apimanagement.api.md | 1983 +++- .../src/apiManagementClient.ts | 71 +- .../arm-apimanagement/src/models/index.ts | 4294 +++++---- .../arm-apimanagement/src/models/mappers.ts | 8390 +++++++++++------ .../src/models/parameters.ts | 356 +- .../arm-apimanagement/src/operations/api.ts | 39 +- .../src/operations/apiDiagnostic.ts | 26 +- .../src/operations/apiExport.ts | 2 +- .../src/operations/apiIssue.ts | 27 +- .../src/operations/apiIssueAttachment.ts | 22 +- .../src/operations/apiIssueComment.ts | 22 +- .../src/operations/apiManagementOperations.ts | 1 - .../src/operations/apiManagementService.ts | 173 +- .../operations/apiManagementServiceSkus.ts | 7 +- .../src/operations/apiManagementSkus.ts | 1 - .../src/operations/apiOperation.ts | 23 +- .../src/operations/apiOperationPolicy.ts | 10 +- .../src/operations/apiPolicy.ts | 10 +- .../src/operations/apiProduct.ts | 12 +- .../src/operations/apiRelease.ts | 22 +- .../src/operations/apiRevision.ts | 12 +- .../src/operations/apiSchema.ts | 39 +- .../src/operations/apiTagDescription.ts | 22 +- .../src/operations/apiVersionSet.ts | 26 +- .../src/operations/apiWiki.ts | 280 + .../src/operations/apiWikis.ts | 212 + .../src/operations/authorization.ts | 405 + .../operations/authorizationAccessPolicy.ts | 439 + .../src/operations/authorizationLoginLinks.ts | 91 + .../src/operations/authorizationProvider.ts | 366 + .../src/operations/authorizationServer.ts | 28 +- .../src/operations/backend.ts | 34 +- .../arm-apimanagement/src/operations/cache.ts | 21 +- .../src/operations/certificate.ts | 25 +- .../src/operations/contentItem.ts | 15 +- .../src/operations/contentType.ts | 21 +- .../src/operations/delegationSettings.ts | 14 +- .../src/operations/deletedServices.ts | 1 - .../src/operations/diagnostic.ts | 26 +- .../src/operations/documentation.ts | 462 + .../src/operations/emailTemplate.ts | 26 +- .../src/operations/gateway.ts | 36 +- .../src/operations/gatewayApi.ts | 20 +- .../operations/gatewayCertificateAuthority.ts | 22 +- .../gatewayHostnameConfiguration.ts | 22 +- .../src/operations/globalSchema.ts | 485 + .../src/operations/graphQLApiResolver.ts | 513 + .../operations/graphQLApiResolverPolicy.ts | 478 + .../arm-apimanagement/src/operations/group.ts | 26 +- .../src/operations/groupUser.ts | 18 +- .../src/operations/identityProvider.ts | 23 +- .../arm-apimanagement/src/operations/index.ts | 14 + .../arm-apimanagement/src/operations/issue.ts | 14 +- .../src/operations/logger.ts | 26 +- .../src/operations/namedValue.ts | 37 +- .../src/operations/networkStatus.ts | 4 +- .../src/operations/notification.ts | 11 +- .../operations/notificationRecipientEmail.ts | 8 +- .../operations/notificationRecipientUser.ts | 8 +- .../src/operations/openIdConnectProvider.ts | 28 +- .../src/operations/operationOperations.ts | 13 +- .../outboundNetworkDependenciesEndpoints.ts | 2 +- .../src/operations/policy.ts | 10 +- .../src/operations/policyDescription.ts | 2 +- .../src/operations/policyFragment.ts | 401 + .../src/operations/portalConfig.ts | 286 + .../src/operations/portalRevision.ts | 28 +- .../src/operations/portalSettings.ts | 2 +- .../privateEndpointConnectionOperations.ts | 22 +- .../src/operations/product.ts | 41 +- .../src/operations/productApi.ts | 18 +- .../src/operations/productGroup.ts | 18 +- .../src/operations/productPolicy.ts | 10 +- .../src/operations/productSubscriptions.ts | 12 +- .../src/operations/productWiki.ts | 287 + .../src/operations/productWikis.ts | 219 + .../src/operations/quotaByCounterKeys.ts | 6 +- .../src/operations/quotaByPeriodKeys.ts | 6 +- .../src/operations/region.ts | 7 +- .../src/operations/reports.ts | 224 +- .../src/operations/signInSettings.ts | 12 +- .../src/operations/signUpSettings.ts | 12 +- .../src/operations/subscription.ts | 32 +- .../arm-apimanagement/src/operations/tag.ts | 83 +- .../src/operations/tagResource.ts | 12 +- .../src/operations/tenantAccess.ts | 25 +- .../src/operations/tenantAccessGit.ts | 4 +- .../src/operations/tenantConfiguration.ts | 20 +- .../src/operations/tenantSettings.ts | 9 +- .../arm-apimanagement/src/operations/user.ts | 33 +- .../operations/userConfirmationPassword.ts | 2 +- .../src/operations/userGroup.ts | 12 +- .../src/operations/userIdentities.ts | 7 +- .../src/operations/userSubscription.ts | 14 +- .../src/operationsInterfaces/api.ts | 16 +- .../src/operationsInterfaces/apiDiagnostic.ts | 12 +- .../src/operationsInterfaces/apiExport.ts | 2 +- .../src/operationsInterfaces/apiIssue.ts | 12 +- .../apiIssueAttachment.ts | 10 +- .../operationsInterfaces/apiIssueComment.ts | 10 +- .../apiManagementService.ts | 63 +- .../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 | 27 +- .../operationsInterfaces/apiTagDescription.ts | 10 +- .../src/operationsInterfaces/apiVersionSet.ts | 12 +- .../src/operationsInterfaces/apiWiki.ts | 100 + .../src/operationsInterfaces/apiWikis.ts | 28 + .../src/operationsInterfaces/authorization.ts | 86 + .../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 +- .../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 | 114 + .../graphQLApiResolver.ts | 137 + .../graphQLApiResolverPolicy.ts | 124 + .../src/operationsInterfaces/group.ts | 12 +- .../src/operationsInterfaces/groupUser.ts | 8 +- .../operationsInterfaces/identityProvider.ts | 14 +- .../src/operationsInterfaces/index.ts | 14 + .../src/operationsInterfaces/issue.ts | 4 +- .../src/operationsInterfaces/logger.ts | 12 +- .../src/operationsInterfaces/namedValue.ts | 22 +- .../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 | 14 +- .../operationsInterfaces/portalSettings.ts | 2 +- .../privateEndpointConnectionOperations.ts | 20 +- .../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 | 14 +- .../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/src/pagingHelper.ts | 8 +- .../arm-apimanagement/test/sampleTest.ts | 43 + .../arm-apimanagement/tsconfig.json | 10 +- 187 files changed, 17626 insertions(+), 6681 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/globalSchema.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/globalSchema.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/sdk/apimanagement/arm-apimanagement/CHANGELOG.md b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md index 542228f9ba73..bb97e8f36f79 100644 --- a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md @@ -1,9 +1,453 @@ # Release History + +## 9.0.0 (2023-01-19) + +**Features** -## 8.1.3 (2022-11-11) + - 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 GlobalSchema + - 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 ApiManagementServiceMigrateToStv2OptionalParams + - 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 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 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 ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface ErrorResponseAutoGenerated + - Added Interface GlobalSchemaCollection + - Added Interface GlobalSchemaContract + - Added Interface GlobalSchemaCreateOrUpdateHeaders + - Added Interface GlobalSchemaCreateOrUpdateOptionalParams + - Added Interface GlobalSchemaDeleteOptionalParams + - Added Interface GlobalSchemaGetEntityTagHeaders + - Added Interface GlobalSchemaGetEntityTagOptionalParams + - Added Interface GlobalSchemaGetHeaders + - Added Interface GlobalSchemaGetOptionalParams + - Added Interface GlobalSchemaListByServiceNextOptionalParams + - Added Interface GlobalSchemaListByServiceOptionalParams + - 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 ProxyResourceAutoGenerated + - Added Interface ResolverCollection + - Added Interface ResolverContract + - Added Interface ResolverResultContract + - Added Interface ResolverResultLogItemContract + - Added Interface ResolverUpdateContract + - Added Interface ResourceAutoGenerated + - 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 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 GlobalSchemaCreateOrUpdateResponse + - Added Type Alias GlobalSchemaGetEntityTagResponse + - Added Type Alias GlobalSchemaGetResponse + - Added Type Alias GlobalSchemaListByServiceNextResponse + - Added Type Alias GlobalSchemaListByServiceResponse + - 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 SchemaType + - 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 ContentTypeCreateOrUpdateOptionalParams has a new optional parameter parameters + - Interface DiagnosticContract has a new optional parameter metrics + - 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 KnownSchemaType + - Added Enum KnownTranslateRequiredQueryParametersConduct + - Added function getContinuationToken - - Bug fix +**Breaking Changes** + - Interface ApiDiagnosticListByServiceNextOptionalParams no longer has parameter filter + - Interface ApiDiagnosticListByServiceNextOptionalParams no longer has parameter skip + - Interface ApiDiagnosticListByServiceNextOptionalParams no longer has parameter top + - Interface ApiIssueAttachmentListByServiceNextOptionalParams no longer has parameter filter + - Interface ApiIssueAttachmentListByServiceNextOptionalParams no longer has parameter skip + - Interface ApiIssueAttachmentListByServiceNextOptionalParams no longer has parameter top + - Interface ApiIssueCommentListByServiceNextOptionalParams no longer has parameter filter + - Interface ApiIssueCommentListByServiceNextOptionalParams no longer has parameter skip + - Interface ApiIssueCommentListByServiceNextOptionalParams no longer has parameter top + - Interface ApiIssueListByServiceNextOptionalParams no longer has parameter expandCommentsAttachments + - Interface ApiIssueListByServiceNextOptionalParams no longer has parameter filter + - Interface ApiIssueListByServiceNextOptionalParams no longer has parameter skip + - Interface ApiIssueListByServiceNextOptionalParams no longer has parameter top + - Interface ApiListByServiceNextOptionalParams no longer has parameter expandApiVersionSet + - Interface ApiListByServiceNextOptionalParams no longer has parameter filter + - Interface ApiListByServiceNextOptionalParams no longer has parameter skip + - Interface ApiListByServiceNextOptionalParams no longer has parameter tags + - Interface ApiListByServiceNextOptionalParams no longer has parameter top + - Interface ApiListByTagsNextOptionalParams no longer has parameter filter + - Interface ApiListByTagsNextOptionalParams no longer has parameter includeNotTaggedApis + - Interface ApiListByTagsNextOptionalParams no longer has parameter skip + - Interface ApiListByTagsNextOptionalParams no longer has parameter top + - Interface ApiOperationListByApiNextOptionalParams no longer has parameter filter + - Interface ApiOperationListByApiNextOptionalParams no longer has parameter skip + - Interface ApiOperationListByApiNextOptionalParams no longer has parameter tags + - Interface ApiOperationListByApiNextOptionalParams no longer has parameter top + - Interface ApiProductListByApisNextOptionalParams no longer has parameter filter + - Interface ApiProductListByApisNextOptionalParams no longer has parameter skip + - Interface ApiProductListByApisNextOptionalParams no longer has parameter top + - Interface ApiReleaseListByServiceNextOptionalParams no longer has parameter filter + - Interface ApiReleaseListByServiceNextOptionalParams no longer has parameter skip + - Interface ApiReleaseListByServiceNextOptionalParams no longer has parameter top + - Interface ApiRevisionListByServiceNextOptionalParams no longer has parameter filter + - Interface ApiRevisionListByServiceNextOptionalParams no longer has parameter skip + - Interface ApiRevisionListByServiceNextOptionalParams no longer has parameter top + - Interface ApiSchemaListByApiNextOptionalParams no longer has parameter filter + - Interface ApiSchemaListByApiNextOptionalParams no longer has parameter skip + - Interface ApiSchemaListByApiNextOptionalParams no longer has parameter top + - Interface ApiTagDescriptionListByServiceNextOptionalParams no longer has parameter filter + - Interface ApiTagDescriptionListByServiceNextOptionalParams no longer has parameter skip + - Interface ApiTagDescriptionListByServiceNextOptionalParams no longer has parameter top + - Interface ApiVersionSetListByServiceNextOptionalParams no longer has parameter filter + - Interface ApiVersionSetListByServiceNextOptionalParams no longer has parameter skip + - Interface ApiVersionSetListByServiceNextOptionalParams no longer has parameter top + - Interface AuthorizationServerListByServiceNextOptionalParams no longer has parameter filter + - Interface AuthorizationServerListByServiceNextOptionalParams no longer has parameter skip + - Interface AuthorizationServerListByServiceNextOptionalParams no longer has parameter top + - Interface BackendListByServiceNextOptionalParams no longer has parameter filter + - Interface BackendListByServiceNextOptionalParams no longer has parameter skip + - Interface BackendListByServiceNextOptionalParams no longer has parameter top + - Interface CacheListByServiceNextOptionalParams no longer has parameter skip + - Interface CacheListByServiceNextOptionalParams no longer has parameter top + - Interface CertificateListByServiceNextOptionalParams no longer has parameter filter + - Interface CertificateListByServiceNextOptionalParams no longer has parameter isKeyVaultRefreshFailed + - Interface CertificateListByServiceNextOptionalParams no longer has parameter skip + - Interface CertificateListByServiceNextOptionalParams no longer has parameter top + - Interface DiagnosticListByServiceNextOptionalParams no longer has parameter filter + - Interface DiagnosticListByServiceNextOptionalParams no longer has parameter skip + - Interface DiagnosticListByServiceNextOptionalParams no longer has parameter top + - Interface EmailTemplateListByServiceNextOptionalParams no longer has parameter filter + - Interface EmailTemplateListByServiceNextOptionalParams no longer has parameter skip + - Interface EmailTemplateListByServiceNextOptionalParams no longer has parameter top + - Interface GatewayApiListByServiceNextOptionalParams no longer has parameter filter + - Interface GatewayApiListByServiceNextOptionalParams no longer has parameter skip + - Interface GatewayApiListByServiceNextOptionalParams no longer has parameter top + - Interface GatewayCertificateAuthorityListByServiceNextOptionalParams no longer has parameter filter + - Interface GatewayCertificateAuthorityListByServiceNextOptionalParams no longer has parameter skip + - Interface GatewayCertificateAuthorityListByServiceNextOptionalParams no longer has parameter top + - Interface GatewayHostnameConfigurationListByServiceNextOptionalParams no longer has parameter filter + - Interface GatewayHostnameConfigurationListByServiceNextOptionalParams no longer has parameter skip + - Interface GatewayHostnameConfigurationListByServiceNextOptionalParams no longer has parameter top + - Interface GatewayListByServiceNextOptionalParams no longer has parameter filter + - Interface GatewayListByServiceNextOptionalParams no longer has parameter skip + - Interface GatewayListByServiceNextOptionalParams no longer has parameter top + - Interface GroupListByServiceNextOptionalParams no longer has parameter filter + - Interface GroupListByServiceNextOptionalParams no longer has parameter skip + - Interface GroupListByServiceNextOptionalParams no longer has parameter top + - Interface GroupUserListNextOptionalParams no longer has parameter filter + - Interface GroupUserListNextOptionalParams no longer has parameter skip + - Interface GroupUserListNextOptionalParams no longer has parameter top + - Interface IssueListByServiceNextOptionalParams no longer has parameter filter + - Interface IssueListByServiceNextOptionalParams no longer has parameter skip + - Interface IssueListByServiceNextOptionalParams no longer has parameter top + - Interface LoggerListByServiceNextOptionalParams no longer has parameter filter + - Interface LoggerListByServiceNextOptionalParams no longer has parameter skip + - Interface LoggerListByServiceNextOptionalParams no longer has parameter top + - Interface NamedValueListByServiceNextOptionalParams no longer has parameter filter + - Interface NamedValueListByServiceNextOptionalParams no longer has parameter isKeyVaultRefreshFailed + - Interface NamedValueListByServiceNextOptionalParams no longer has parameter skip + - Interface NamedValueListByServiceNextOptionalParams no longer has parameter top + - Interface NotificationListByServiceNextOptionalParams no longer has parameter skip + - Interface NotificationListByServiceNextOptionalParams no longer has parameter top + - Interface OpenIdConnectProviderListByServiceNextOptionalParams no longer has parameter filter + - Interface OpenIdConnectProviderListByServiceNextOptionalParams no longer has parameter skip + - Interface OpenIdConnectProviderListByServiceNextOptionalParams no longer has parameter top + - Interface OperationListByTagsNextOptionalParams no longer has parameter filter + - Interface OperationListByTagsNextOptionalParams no longer has parameter includeNotTaggedOperations + - Interface OperationListByTagsNextOptionalParams no longer has parameter skip + - Interface OperationListByTagsNextOptionalParams no longer has parameter top + - Interface PortalRevisionListByServiceNextOptionalParams no longer has parameter filter + - Interface PortalRevisionListByServiceNextOptionalParams no longer has parameter skip + - Interface PortalRevisionListByServiceNextOptionalParams no longer has parameter top + - Interface ProductApiListByProductNextOptionalParams no longer has parameter filter + - Interface ProductApiListByProductNextOptionalParams no longer has parameter skip + - Interface ProductApiListByProductNextOptionalParams no longer has parameter top + - Interface ProductGroupListByProductNextOptionalParams no longer has parameter filter + - Interface ProductGroupListByProductNextOptionalParams no longer has parameter skip + - Interface ProductGroupListByProductNextOptionalParams no longer has parameter top + - Interface ProductListByServiceNextOptionalParams no longer has parameter expandGroups + - Interface ProductListByServiceNextOptionalParams no longer has parameter filter + - Interface ProductListByServiceNextOptionalParams no longer has parameter skip + - Interface ProductListByServiceNextOptionalParams no longer has parameter tags + - Interface ProductListByServiceNextOptionalParams no longer has parameter top + - Interface ProductListByTagsNextOptionalParams no longer has parameter filter + - Interface ProductListByTagsNextOptionalParams no longer has parameter includeNotTaggedProducts + - Interface ProductListByTagsNextOptionalParams no longer has parameter skip + - Interface ProductListByTagsNextOptionalParams no longer has parameter top + - Interface ProductSubscriptionsListNextOptionalParams no longer has parameter filter + - Interface ProductSubscriptionsListNextOptionalParams no longer has parameter skip + - Interface ProductSubscriptionsListNextOptionalParams no longer has parameter top + - Interface ReportsListByApiNextOptionalParams no longer has parameter orderby + - Interface ReportsListByApiNextOptionalParams no longer has parameter skip + - Interface ReportsListByApiNextOptionalParams no longer has parameter top + - Interface ReportsListByGeoNextOptionalParams no longer has parameter skip + - Interface ReportsListByGeoNextOptionalParams no longer has parameter top + - Interface ReportsListByOperationNextOptionalParams no longer has parameter orderby + - Interface ReportsListByOperationNextOptionalParams no longer has parameter skip + - Interface ReportsListByOperationNextOptionalParams no longer has parameter top + - Interface ReportsListByProductNextOptionalParams no longer has parameter orderby + - Interface ReportsListByProductNextOptionalParams no longer has parameter skip + - Interface ReportsListByProductNextOptionalParams no longer has parameter top + - Interface ReportsListBySubscriptionNextOptionalParams no longer has parameter orderby + - Interface ReportsListBySubscriptionNextOptionalParams no longer has parameter skip + - Interface ReportsListBySubscriptionNextOptionalParams no longer has parameter top + - Interface ReportsListByTimeNextOptionalParams no longer has parameter orderby + - Interface ReportsListByTimeNextOptionalParams no longer has parameter skip + - Interface ReportsListByTimeNextOptionalParams no longer has parameter top + - Interface ReportsListByUserNextOptionalParams no longer has parameter orderby + - Interface ReportsListByUserNextOptionalParams no longer has parameter skip + - Interface ReportsListByUserNextOptionalParams no longer has parameter top + - Interface SubscriptionListNextOptionalParams no longer has parameter filter + - Interface SubscriptionListNextOptionalParams no longer has parameter skip + - Interface SubscriptionListNextOptionalParams no longer has parameter top + - Interface TagListByApiNextOptionalParams no longer has parameter filter + - Interface TagListByApiNextOptionalParams no longer has parameter skip + - Interface TagListByApiNextOptionalParams no longer has parameter top + - Interface TagListByOperationNextOptionalParams no longer has parameter filter + - Interface TagListByOperationNextOptionalParams no longer has parameter skip + - Interface TagListByOperationNextOptionalParams no longer has parameter top + - Interface TagListByProductNextOptionalParams no longer has parameter filter + - Interface TagListByProductNextOptionalParams no longer has parameter skip + - Interface TagListByProductNextOptionalParams no longer has parameter top + - Interface TagListByServiceNextOptionalParams no longer has parameter filter + - Interface TagListByServiceNextOptionalParams no longer has parameter scope + - Interface TagListByServiceNextOptionalParams no longer has parameter skip + - Interface TagListByServiceNextOptionalParams no longer has parameter top + - Interface TagResourceListByServiceNextOptionalParams no longer has parameter filter + - Interface TagResourceListByServiceNextOptionalParams no longer has parameter skip + - Interface TagResourceListByServiceNextOptionalParams no longer has parameter top + - Interface TenantAccessListByServiceNextOptionalParams no longer has parameter filter + - Interface TenantSettingsListByServiceNextOptionalParams no longer has parameter filter + - Interface UserGroupListNextOptionalParams no longer has parameter filter + - Interface UserGroupListNextOptionalParams no longer has parameter skip + - Interface UserGroupListNextOptionalParams no longer has parameter top + - Interface UserListByServiceNextOptionalParams no longer has parameter expandGroups + - Interface UserListByServiceNextOptionalParams no longer has parameter filter + - Interface UserListByServiceNextOptionalParams no longer has parameter skip + - Interface UserListByServiceNextOptionalParams no longer has parameter top + - Interface UserSubscriptionListNextOptionalParams no longer has parameter filter + - Interface UserSubscriptionListNextOptionalParams no longer has parameter skip + - Interface UserSubscriptionListNextOptionalParams no longer has parameter top + - Type of parameter versioningScheme of interface ApiVersionSetContractDetails is changed from ApiVersionSetContractDetailsVersioningScheme to VersioningScheme + - Removed Enum KnownApiVersionSetContractDetailsVersioningScheme + ## 8.1.2 (2022-10-08) **Bugs Fixed** diff --git a/sdk/apimanagement/arm-apimanagement/LICENSE b/sdk/apimanagement/arm-apimanagement/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/apimanagement/arm-apimanagement/LICENSE +++ b/sdk/apimanagement/arm-apimanagement/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/apimanagement/arm-apimanagement/_meta.json b/sdk/apimanagement/arm-apimanagement/_meta.json index 4fcda1a082bd..d08f3a802fa2 100644 --- a/sdk/apimanagement/arm-apimanagement/_meta.json +++ b/sdk/apimanagement/arm-apimanagement/_meta.json @@ -1,8 +1,8 @@ { - "commit": "b8cae07c799a07f2e779a9e301f639e9b85124b1", - "readme": "specification\\apimanagement\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "commit": "f8867d7b6d7db333aa3d3a95bbe72be4c212e256", + "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=/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.5", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.0", + "use": "@autorest/typescript@6.0.0-rc.5" } \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index aa60bbc7b123..e225ac4a7721 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ApiManagementClient.", - "version": "8.1.3", + "version": "9.0.0", "engines": { "node": ">=14.0.0" }, @@ -110,13 +110,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview" - } + "autoPublish": true } \ 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 ef7d9507cb5f..440af697f2bd 100644 --- a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md +++ b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md @@ -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[]; @@ -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; } @@ -254,9 +258,6 @@ export type ApiDiagnosticGetResponse = ApiDiagnosticGetHeaders & DiagnosticContr // @public export interface ApiDiagnosticListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -413,9 +414,6 @@ export type ApiIssueAttachmentGetResponse = ApiIssueAttachmentGetHeaders & Issue // @public export interface ApiIssueAttachmentListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -483,9 +481,6 @@ export type ApiIssueCommentGetResponse = ApiIssueCommentGetHeaders & IssueCommen // @public export interface ApiIssueCommentListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -545,10 +540,6 @@ export type ApiIssueGetResponse = ApiIssueGetHeaders & IssueContract; // @public export interface ApiIssueListByServiceNextOptionalParams extends coreClient.OperationOptions { - expandCommentsAttachments?: boolean; - filter?: string; - skip?: number; - top?: number; } // @public @@ -585,11 +576,6 @@ export interface ApiLicenseInformation { // @public export interface ApiListByServiceNextOptionalParams extends coreClient.OperationOptions { - expandApiVersionSet?: boolean; - filter?: string; - skip?: number; - tags?: string; - top?: number; } // @public @@ -609,10 +595,6 @@ export type ApiListByServiceResponse = ApiCollection; // @public export interface ApiListByTagsNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - includeNotTaggedApis?: boolean; - skip?: number; - top?: number; } // @public @@ -675,6 +657,18 @@ 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; @@ -695,6 +689,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) diagnostic: Diagnostic; // (undocumented) + documentation: Documentation; + // (undocumented) emailTemplate: EmailTemplate; // (undocumented) gateway: Gateway; @@ -705,6 +701,12 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) gatewayHostnameConfiguration: GatewayHostnameConfiguration; // (undocumented) + globalSchema: GlobalSchema; + // (undocumented) + graphQLApiResolver: GraphQLApiResolver; + // (undocumented) + graphQLApiResolverPolicy: GraphQLApiResolverPolicy; + // (undocumented) group: Group; // (undocumented) groupUser: GroupUser; @@ -735,6 +737,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) policyDescription: PolicyDescription; // (undocumented) + policyFragment: PolicyFragment; + // (undocumented) + portalConfig: PortalConfig; + // (undocumented) portalRevision: PortalRevision; // (undocumented) portalSettings: PortalSettings; @@ -751,6 +757,10 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) productSubscriptions: ProductSubscriptions; // (undocumented) + productWiki: ProductWiki; + // (undocumented) + productWikis: ProductWikis; + // (undocumented) quotaByCounterKeys: QuotaByCounterKeys; // (undocumented) quotaByPeriodKeys: QuotaByPeriodKeys; @@ -826,6 +836,8 @@ export interface ApiManagementService { beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, parameters: ApiManagementServiceResource, options?: ApiManagementServiceCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serviceName: string, options?: ApiManagementServiceDeleteOptionalParams): Promise; + 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>>; @@ -888,7 +900,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[]; @@ -1006,6 +1020,15 @@ export interface ApiManagementServiceListResult { value: ApiManagementServiceResource[]; } +// @public +export interface ApiManagementServiceMigrateToStv2OptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; + // @public export interface ApiManagementServiceNameAvailabilityResult { readonly message?: string; @@ -1038,7 +1061,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[]; @@ -1117,7 +1142,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[]; @@ -1311,10 +1338,6 @@ export type ApiOperationGetResponse = ApiOperationGetHeaders & OperationContract // @public export interface ApiOperationListByApiNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - tags?: string; - top?: number; } // @public @@ -1466,9 +1489,6 @@ export interface ApiProduct { // @public export interface ApiProductListByApisNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -1502,7 +1522,7 @@ export interface ApiReleaseCollection { } // @public -export interface ApiReleaseContract extends Resource { +export interface ApiReleaseContract extends ProxyResource { apiId?: string; readonly createdDateTime?: Date; notes?: string; @@ -1552,9 +1572,6 @@ export type ApiReleaseGetResponse = ApiReleaseGetHeaders & ApiReleaseContract; // @public export interface ApiReleaseListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -1616,9 +1633,6 @@ export interface ApiRevisionInfoContract { // @public export interface ApiRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -1690,9 +1704,6 @@ export type ApiSchemaGetResponse = ApiSchemaGetHeaders & SchemaContract; // @public export interface ApiSchemaListByApiNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -1760,9 +1771,6 @@ export type ApiTagDescriptionGetResponse = ApiTagDescriptionGetHeaders & TagDesc // @public export interface ApiTagDescriptionListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -1848,7 +1856,7 @@ export interface ApiVersionSetCollection { } // @public -export interface ApiVersionSetContract extends Resource { +export interface ApiVersionSetContract extends ProxyResource { description?: string; displayName?: string; versionHeaderName?: string; @@ -1862,13 +1870,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; @@ -1925,9 +1930,6 @@ export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & ApiVersionSetCo // @public export interface ApiVersionSetListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -1971,280 +1973,630 @@ export interface ApiVersionSetUpdateParametersProperties extends ApiVersionSetEn export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & ApiVersionSetContract; // @public -export type AppType = string; +export interface ApiWiki { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: WikiContract, options?: ApiWikiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: ApiWikiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikiGetEntityTagOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, parameters: WikiUpdateContract, options?: ApiWikiUpdateOptionalParams): Promise; +} // @public -export interface ArmIdWrapper { - readonly id?: string; +export interface ApiWikiCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface AssociationContract extends Resource { - provisioningState?: "created"; +export interface ApiWikiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type AsyncOperationStatus = "Started" | "InProgress" | "Succeeded" | "Failed"; +export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & WikiContract; // @public -export interface AuthenticationSettingsContract { - oAuth2?: OAuth2AuthenticationSettingsContract; - openid?: OpenIdAuthenticationSettingsContract; +export interface ApiWikiDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type AuthorizationMethod = "HEAD" | "OPTIONS" | "TRACE" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; +export interface ApiWikiGetEntityTagHeaders { + eTag?: string; +} // @public -export interface AuthorizationServer { - createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: AuthorizationServerContract, options?: AuthorizationServerCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options?: AuthorizationServerDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: AuthorizationServerListByServiceOptionalParams): PagedAsyncIterableIterator; - listSecrets(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerListSecretsOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, parameters: AuthorizationServerUpdateContract, options?: AuthorizationServerUpdateOptionalParams): Promise; +export interface ApiWikiGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export interface AuthorizationServerCollection { - count?: number; - nextLink?: string; - value?: AuthorizationServerContract[]; -} +export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; // @public -export interface AuthorizationServerContract extends Resource { - authorizationEndpoint?: string; - authorizationMethods?: AuthorizationMethod[]; - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - clientId?: string; - clientRegistrationEndpoint?: string; - clientSecret?: string; - defaultScope?: string; - description?: string; - displayName?: string; - grantTypes?: GrantType[]; - resourceOwnerPassword?: string; - resourceOwnerUsername?: string; - supportState?: boolean; - tokenBodyParameters?: TokenBodyParameterContract[]; - tokenEndpoint?: string; +export interface ApiWikiGetHeaders { + eTag?: string; } // @public -export interface AuthorizationServerContractBaseProperties { - authorizationMethods?: AuthorizationMethod[]; - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - defaultScope?: string; - description?: string; - resourceOwnerPassword?: string; - resourceOwnerUsername?: string; - supportState?: boolean; - tokenBodyParameters?: TokenBodyParameterContract[]; - tokenEndpoint?: string; +export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface AuthorizationServerContractProperties extends AuthorizationServerContractBaseProperties { - authorizationEndpoint: string; - clientId: string; - clientRegistrationEndpoint: string; - clientSecret?: string; - displayName: string; - grantTypes: GrantType[]; -} +export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; // @public -export interface AuthorizationServerCreateOrUpdateHeaders { - eTag?: string; +export interface ApiWikis { + list(resourceGroupName: string, serviceName: string, apiId: string, options?: ApiWikisListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface AuthorizationServerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; +export interface ApiWikisListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & AuthorizationServerContract; +export type ApiWikisListNextResponse = WikiCollection; // @public -export interface AuthorizationServerDeleteOptionalParams extends coreClient.OperationOptions { +export interface ApiWikisListOptionalParams extends coreClient.OperationOptions { } // @public -export interface AuthorizationServerGetEntityTagHeaders { +export type ApiWikisListResponse = WikiCollection; + +// @public +export interface ApiWikiUpdateHeaders { eTag?: string; } // @public -export interface AuthorizationServerGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface ApiWikiUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; +export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; // @public -export interface AuthorizationServerGetHeaders { - eTag?: string; -} +export type AppType = string; // @public -export interface AuthorizationServerGetOptionalParams extends coreClient.OperationOptions { +export interface ArmIdWrapper { + readonly id?: string; } // @public -export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & AuthorizationServerContract; +export interface AssociationContract extends ProxyResource { + provisioningState?: "created"; +} // @public -export interface AuthorizationServerListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; -} +export type AsyncOperationStatus = "Started" | "InProgress" | "Succeeded" | "Failed"; // @public -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; +export type AsyncResolverStatus = "Started" | "InProgress" | "Succeeded" | "Failed"; // @public -export interface AuthorizationServerListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface AuthenticationSettingsContract { + oAuth2?: OAuth2AuthenticationSettingsContract; + oAuth2AuthenticationSettings?: OAuth2AuthenticationSettingsContract[]; + openid?: OpenIdAuthenticationSettingsContract; + openidAuthenticationSettings?: OpenIdAuthenticationSettingsContract[]; } // @public -export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; +export interface Authorization { + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, parameters: AuthorizationContract, options?: AuthorizationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, ifMatch: string, options?: AuthorizationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, options?: AuthorizationGetOptionalParams): Promise; + listByAuthorizationProvider(resourceGroupName: string, serviceName: string, authorizationProviderId: string, options?: AuthorizationListByAuthorizationProviderOptionalParams): PagedAsyncIterableIterator; +} // @public -export interface AuthorizationServerListSecretsHeaders { - eTag?: string; +export interface AuthorizationAccessPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, parameters: AuthorizationAccessPolicyContract, options?: AuthorizationAccessPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, ifMatch: string, options?: AuthorizationAccessPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, authorizationAccessPolicyId: string, options?: AuthorizationAccessPolicyGetOptionalParams): Promise; + listByAuthorization(resourceGroupName: string, serviceName: string, authorizationProviderId: string, authorizationId: string, options?: AuthorizationAccessPolicyListByAuthorizationOptionalParams): PagedAsyncIterableIterator; } // @public -export interface AuthorizationServerListSecretsOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationAccessPolicyCollection { + count?: number; + nextLink?: string; + value?: AuthorizationAccessPolicyContract[]; } // @public -export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & AuthorizationServerSecretsContract; +export interface AuthorizationAccessPolicyContract extends ProxyResource { + objectId?: string; + tenantId?: string; +} // @public -export interface AuthorizationServerSecretsContract { - clientSecret?: string; - resourceOwnerPassword?: string; - resourceOwnerUsername?: string; +export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface AuthorizationServerUpdateContract extends Resource { - authorizationEndpoint?: string; - authorizationMethods?: AuthorizationMethod[]; - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - clientId?: string; - clientRegistrationEndpoint?: string; - clientSecret?: string; - defaultScope?: string; - description?: string; - displayName?: string; - grantTypes?: GrantType[]; - resourceOwnerPassword?: string; - resourceOwnerUsername?: string; - supportState?: boolean; - tokenBodyParameters?: TokenBodyParameterContract[]; - tokenEndpoint?: string; +export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export interface AuthorizationServerUpdateContractProperties extends AuthorizationServerContractBaseProperties { - authorizationEndpoint?: string; - clientId?: string; - clientRegistrationEndpoint?: string; - clientSecret?: string; - displayName?: string; - grantTypes?: GrantType[]; +export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & AuthorizationAccessPolicyContract; + +// @public +export interface AuthorizationAccessPolicyDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface AuthorizationServerUpdateHeaders { +export interface AuthorizationAccessPolicyGetHeaders { eTag?: string; } // @public -export interface AuthorizationServerUpdateOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationAccessPolicyGetOptionalParams extends coreClient.OperationOptions { } // @public -export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & AuthorizationServerContract; +export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & AuthorizationAccessPolicyContract; // @public -export interface Backend { - createOrUpdate(resourceGroupName: string, serviceName: string, backendId: string, parameters: BackendContract, options?: BackendCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, options?: BackendDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendGetOptionalParams): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: BackendListByServiceOptionalParams): PagedAsyncIterableIterator; - reconnect(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendReconnectOptionalParams): Promise; - update(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, parameters: BackendUpdateParameters, options?: BackendUpdateOptionalParams): Promise; +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface BackendAuthorizationHeaderCredentials { - parameter: string; - scheme: string; -} +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; // @public -export interface BackendBaseParameters { - credentials?: BackendCredentialsContract; - description?: string; - properties?: BackendProperties; - proxy?: BackendProxyContract; - resourceId?: string; - title?: string; - tls?: BackendTlsProperties; +export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; } // @public -export interface BackendCollection { - count?: number; - nextLink?: string; - value?: BackendContract[]; -} +export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; // @public -export interface BackendContract extends Resource { - credentials?: BackendCredentialsContract; - description?: string; - properties?: BackendProperties; - protocol?: BackendProtocol; - proxy?: BackendProxyContract; - resourceId?: string; - title?: string; - tls?: BackendTlsProperties; - url?: string; +export interface AuthorizationCollection { + count?: number; + nextLink?: string; + value?: AuthorizationContract[]; } // @public -export interface BackendContractProperties extends BackendBaseParameters { - protocol: BackendProtocol; - url: string; +export interface AuthorizationContract extends ProxyResource { + authorizationType?: AuthorizationType; + error?: AuthorizationError; + oAuth2GrantType?: OAuth2GrantType; + parameters?: { + [propertyName: string]: string; + }; + status?: string; } // @public -export interface BackendCreateOrUpdateHeaders { +export interface AuthorizationCreateOrUpdateHeaders { eTag?: string; } // @public -export interface BackendCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface AuthorizationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { ifMatch?: string; } // @public -export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & BackendContract; +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 { + count?: number; + 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; + delete(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options?: AuthorizationServerDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: AuthorizationServerListByServiceOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, serviceName: string, authsid: string, options?: AuthorizationServerListSecretsOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, parameters: AuthorizationServerUpdateContract, options?: AuthorizationServerUpdateOptionalParams): Promise; +} + +// @public +export interface AuthorizationServerCollection { + count?: number; + nextLink?: string; + value?: AuthorizationServerContract[]; +} + +// @public +export interface AuthorizationServerContract extends ProxyResource { + authorizationEndpoint?: string; + authorizationMethods?: AuthorizationMethod[]; + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + clientId?: string; + clientRegistrationEndpoint?: string; + clientSecret?: string; + defaultScope?: string; + description?: string; + displayName?: string; + grantTypes?: GrantType[]; + resourceOwnerPassword?: string; + resourceOwnerUsername?: string; + supportState?: boolean; + tokenBodyParameters?: TokenBodyParameterContract[]; + tokenEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; +} + +// @public +export interface AuthorizationServerContractBaseProperties { + authorizationMethods?: AuthorizationMethod[]; + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + defaultScope?: string; + description?: string; + resourceOwnerPassword?: string; + resourceOwnerUsername?: string; + supportState?: boolean; + tokenBodyParameters?: TokenBodyParameterContract[]; + tokenEndpoint?: string; +} + +// @public +export interface AuthorizationServerContractProperties extends AuthorizationServerContractBaseProperties { + authorizationEndpoint: string; + clientId: string; + clientRegistrationEndpoint: string; + clientSecret?: string; + displayName: string; + grantTypes: GrantType[]; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; +} + +// @public +export interface AuthorizationServerCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationServerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & AuthorizationServerContract; + +// @public +export interface AuthorizationServerDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AuthorizationServerGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationServerGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; + +// @public +export interface AuthorizationServerGetHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationServerGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & AuthorizationServerContract; + +// @public +export interface AuthorizationServerListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; + +// @public +export interface AuthorizationServerListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; + +// @public +export interface AuthorizationServerListSecretsHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationServerListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & AuthorizationServerSecretsContract; + +// @public +export interface AuthorizationServerSecretsContract { + clientSecret?: string; + resourceOwnerPassword?: string; + resourceOwnerUsername?: string; +} + +// @public +export interface AuthorizationServerUpdateContract extends ProxyResource { + authorizationEndpoint?: string; + authorizationMethods?: AuthorizationMethod[]; + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + clientId?: string; + clientRegistrationEndpoint?: string; + clientSecret?: string; + defaultScope?: string; + description?: string; + displayName?: string; + grantTypes?: GrantType[]; + resourceOwnerPassword?: string; + resourceOwnerUsername?: string; + supportState?: boolean; + tokenBodyParameters?: TokenBodyParameterContract[]; + tokenEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; +} + +// @public +export interface AuthorizationServerUpdateContractProperties extends AuthorizationServerContractBaseProperties { + authorizationEndpoint?: string; + clientId?: string; + clientRegistrationEndpoint?: string; + clientSecret?: string; + displayName?: string; + grantTypes?: GrantType[]; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; +} + +// @public +export interface AuthorizationServerUpdateHeaders { + eTag?: string; +} + +// @public +export interface AuthorizationServerUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @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; + delete(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, options?: BackendDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: BackendListByServiceOptionalParams): PagedAsyncIterableIterator; + reconnect(resourceGroupName: string, serviceName: string, backendId: string, options?: BackendReconnectOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, parameters: BackendUpdateParameters, options?: BackendUpdateOptionalParams): Promise; +} + +// @public +export interface BackendAuthorizationHeaderCredentials { + parameter: string; + scheme: string; +} + +// @public +export interface BackendBaseParameters { + credentials?: BackendCredentialsContract; + description?: string; + properties?: BackendProperties; + proxy?: BackendProxyContract; + resourceId?: string; + title?: string; + tls?: BackendTlsProperties; +} + +// @public +export interface BackendCollection { + count?: number; + nextLink?: string; + value?: BackendContract[]; +} + +// @public +export interface BackendContract extends ProxyResource { + credentials?: BackendCredentialsContract; + description?: string; + properties?: BackendProperties; + protocol?: BackendProtocol; + proxy?: BackendProxyContract; + resourceId?: string; + title?: string; + tls?: BackendTlsProperties; + url?: string; +} + +// @public +export interface BackendContractProperties extends BackendBaseParameters { + protocol: BackendProtocol; + url: string; +} + +// @public +export interface BackendCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface BackendCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & BackendContract; // @public export interface BackendCredentialsContract { @@ -2289,9 +2641,6 @@ export type BackendGetResponse = BackendGetHeaders & BackendContract; // @public export interface BackendListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -2323,7 +2672,7 @@ export interface BackendProxyContract { } // @public -export interface BackendReconnectContract extends Resource { +export interface BackendReconnectContract extends ProxyResource { after?: string; } @@ -2409,7 +2758,7 @@ export interface CacheCollection { } // @public -export interface CacheContract extends Resource { +export interface CacheContract extends ProxyResource { connectionString?: string; description?: string; resourceId?: string; @@ -2459,8 +2808,6 @@ export type CacheGetResponse = CacheGetHeaders & CacheContract; // @public export interface CacheListByServiceNextOptionalParams extends coreClient.OperationOptions { - skip?: number; - top?: number; } // @public @@ -2524,7 +2871,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; @@ -2588,10 +2935,6 @@ export interface CertificateInformation { // @public export interface CertificateListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - isKeyVaultRefreshFailed?: boolean; - skip?: number; - top?: number; } // @public @@ -2743,7 +3086,7 @@ export interface ContentItemCollection { } // @public -export interface ContentItemContract extends Resource { +export interface ContentItemContract extends ProxyResource { properties?: { [propertyName: string]: any; }; @@ -2819,7 +3162,7 @@ export interface ContentTypeCollection { } // @public -export interface ContentTypeContract extends Resource { +export interface ContentTypeContract extends ProxyResource { description?: string; idPropertiesId?: string; namePropertiesName?: string; @@ -2835,6 +3178,7 @@ export interface ContentTypeCreateOrUpdateHeaders { // @public export interface ContentTypeCreateOrUpdateOptionalParams extends coreClient.OperationOptions { ifMatch?: string; + parameters?: ContentTypeContract; } // @public @@ -2941,7 +3285,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; @@ -3013,90 +3357,183 @@ export interface DiagnosticCollection { } // @public -export interface DiagnosticContract extends Resource { - alwaysLog?: AlwaysLog; - backend?: PipelineDiagnosticSettings; - frontend?: PipelineDiagnosticSettings; - httpCorrelationProtocol?: HttpCorrelationProtocol; - logClientIp?: boolean; - loggerId?: string; - operationNameFormat?: OperationNameFormat; - sampling?: SamplingSettings; - verbosity?: Verbosity; +export interface DiagnosticContract extends ProxyResource { + alwaysLog?: AlwaysLog; + backend?: PipelineDiagnosticSettings; + frontend?: PipelineDiagnosticSettings; + httpCorrelationProtocol?: HttpCorrelationProtocol; + logClientIp?: boolean; + loggerId?: string; + metrics?: boolean; + operationNameFormat?: OperationNameFormat; + sampling?: SamplingSettings; + verbosity?: Verbosity; +} + +// @public +export interface DiagnosticCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface DiagnosticCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & DiagnosticContract; + +// @public +export interface DiagnosticDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface DiagnosticGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface DiagnosticGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; + +// @public +export interface DiagnosticGetHeaders { + eTag?: string; +} + +// @public +export interface DiagnosticGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; + +// @public +export interface DiagnosticListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DiagnosticListByServiceNextResponse = DiagnosticCollection; + +// @public +export interface DiagnosticListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type DiagnosticListByServiceResponse = DiagnosticCollection; + +// @public +export interface DiagnosticUpdateHeaders { + eTag?: string; +} + +// @public +export interface DiagnosticUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @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 ProxyResourceAutoGenerated { + content?: string; + title?: string; } // @public -export interface DiagnosticCreateOrUpdateHeaders { +export interface DocumentationCreateOrUpdateHeaders { eTag?: string; } // @public -export interface DiagnosticCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface DocumentationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { ifMatch?: string; } // @public -export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & DiagnosticContract; +export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & DocumentationContract; // @public -export interface DiagnosticDeleteOptionalParams extends coreClient.OperationOptions { +export interface DocumentationDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface DiagnosticGetEntityTagHeaders { +export interface DocumentationGetEntityTagHeaders { eTag?: string; } // @public -export interface DiagnosticGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface DocumentationGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; +export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; // @public -export interface DiagnosticGetHeaders { +export interface DocumentationGetHeaders { eTag?: string; } // @public -export interface DiagnosticGetOptionalParams extends coreClient.OperationOptions { +export interface DocumentationGetOptionalParams extends coreClient.OperationOptions { } // @public -export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; +export type DocumentationGetResponse = DocumentationGetHeaders & DocumentationContract; // @public -export interface DiagnosticListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface DocumentationListByServiceNextOptionalParams extends coreClient.OperationOptions { } // @public -export type DiagnosticListByServiceNextResponse = DiagnosticCollection; +export type DocumentationListByServiceNextResponse = DocumentationCollection; // @public -export interface DiagnosticListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface DocumentationListByServiceOptionalParams extends coreClient.OperationOptions { } // @public -export type DiagnosticListByServiceResponse = DiagnosticCollection; +export type DocumentationListByServiceResponse = DocumentationCollection; // @public -export interface DiagnosticUpdateHeaders { +export interface DocumentationUpdateContract { + content?: string; + title?: string; +} + +// @public +export interface DocumentationUpdateHeaders { eTag?: string; } // @public -export interface DiagnosticUpdateOptionalParams extends coreClient.OperationOptions { +export interface DocumentationUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & DiagnosticContract; +export type DocumentationUpdateResponse = DocumentationUpdateHeaders & DocumentationContract; // @public export interface EmailTemplate { @@ -3116,7 +3553,7 @@ export interface EmailTemplateCollection { } // @public -export interface EmailTemplateContract extends Resource { +export interface EmailTemplateContract extends ProxyResource { body?: string; description?: string; readonly isDefault?: boolean; @@ -3163,9 +3600,6 @@ export type EmailTemplateGetResponse = EmailTemplateGetHeaders & EmailTemplateCo // @public export interface EmailTemplateListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -3221,6 +3655,21 @@ export interface EndpointDetail { region?: string; } +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface ErrorFieldContract { code?: string; @@ -3235,6 +3684,11 @@ export interface ErrorResponse { message?: string; } +// @public +export interface ErrorResponseAutoGenerated { + error?: ErrorDetail; +} + // @public export interface ErrorResponseBody { code?: string; @@ -3298,9 +3752,6 @@ export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; // @public export interface GatewayApiListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -3332,7 +3783,7 @@ export interface GatewayCertificateAuthorityCollection { } // @public -export interface GatewayCertificateAuthorityContract extends Resource { +export interface GatewayCertificateAuthorityContract extends ProxyResource { isTrusted?: boolean; } @@ -3379,9 +3830,6 @@ export type GatewayCertificateAuthorityGetResponse = GatewayCertificateAuthority // @public export interface GatewayCertificateAuthorityListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -3405,7 +3853,7 @@ export interface GatewayCollection { } // @public -export interface GatewayContract extends Resource { +export interface GatewayContract extends ProxyResource { description?: string; locationData?: ResourceLocationDataContract; } @@ -3474,7 +3922,7 @@ export interface GatewayHostnameConfigurationCollection { } // @public -export interface GatewayHostnameConfigurationContract extends Resource { +export interface GatewayHostnameConfigurationContract extends ProxyResource { certificateId?: string; hostname?: string; http2Enabled?: boolean; @@ -3484,146 +3932,370 @@ export interface GatewayHostnameConfigurationContract extends Resource { } // @public -export interface GatewayHostnameConfigurationCreateOrUpdateHeaders { +export interface GatewayHostnameConfigurationCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationCreateOrUpdateHeaders & GatewayHostnameConfigurationContract; + +// @public +export interface GatewayHostnameConfigurationDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GatewayHostnameConfigurationGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface GatewayHostnameConfigurationGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders; + +// @public +export interface GatewayHostnameConfigurationGetHeaders { + eTag?: string; +} + +// @public +export interface GatewayHostnameConfigurationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationGetHeaders & GatewayHostnameConfigurationContract; + +// @public +export interface GatewayHostnameConfigurationListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection; + +// @public +export interface GatewayHostnameConfigurationListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; + +// @public +export interface GatewayKeyRegenerationRequestContract { + keyType: KeyType_2; +} + +// @public +export interface GatewayKeysContract { + primary?: string; + secondary?: string; +} + +// @public +export interface GatewayListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayListByServiceNextResponse = GatewayCollection; + +// @public +export interface GatewayListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type GatewayListByServiceResponse = GatewayCollection; + +// @public +export interface GatewayListKeysHeaders { + eTag?: string; +} + +// @public +export interface GatewayListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayListKeysResponse = GatewayListKeysHeaders & GatewayKeysContract; + +// @public +export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GatewayTokenContract { + value?: string; +} + +// @public +export interface GatewayTokenRequestContract { + expiry: Date; + keyType: KeyType_2; +} + +// @public +export interface GatewayUpdateHeaders { + eTag?: string; +} + +// @public +export interface GatewayUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; + +// @public +export interface GenerateSsoUrlResult { + value?: string; +} + +// @public +export function getContinuationToken(page: unknown): string | undefined; + +// @public +export interface GlobalSchema { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise, GlobalSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, schemaId: string, ifMatch: string, options?: GlobalSchemaDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: GlobalSchemaListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GlobalSchemaCollection { + count?: number; + readonly nextLink?: string; + readonly value?: GlobalSchemaContract[]; +} + +// @public +export interface GlobalSchemaContract extends ProxyResource { + description?: string; + document?: Record; + schemaType?: SchemaType; + value?: any; +} + +// @public +export interface GlobalSchemaCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface GlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type GlobalSchemaCreateOrUpdateResponse = GlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; + +// @public +export interface GlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GlobalSchemaGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface GlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; + +// @public +export interface GlobalSchemaGetHeaders { + eTag?: string; +} + +// @public +export interface GlobalSchemaGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & GlobalSchemaContract; + +// @public +export interface GlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; + +// @public +export interface GlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +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 GatewayHostnameConfigurationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface GraphQLApiResolverCreateOrUpdateOptionalParams extends coreClient.OperationOptions { ifMatch?: string; } // @public -export type GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationCreateOrUpdateHeaders & GatewayHostnameConfigurationContract; +export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & ResolverContract; // @public -export interface GatewayHostnameConfigurationDeleteOptionalParams extends coreClient.OperationOptions { +export interface GraphQLApiResolverDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface GatewayHostnameConfigurationGetEntityTagHeaders { +export interface GraphQLApiResolverGetEntityTagHeaders { eTag?: string; } // @public -export interface GatewayHostnameConfigurationGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface GraphQLApiResolverGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders; +export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; // @public -export interface GatewayHostnameConfigurationGetHeaders { +export interface GraphQLApiResolverGetHeaders { eTag?: string; } // @public -export interface GatewayHostnameConfigurationGetOptionalParams extends coreClient.OperationOptions { +export interface GraphQLApiResolverGetOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationGetHeaders & GatewayHostnameConfigurationContract; +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & ResolverContract; // @public -export interface GatewayHostnameConfigurationListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface GraphQLApiResolverListByApiNextOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection; +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; // @public -export interface GatewayHostnameConfigurationListByServiceOptionalParams extends coreClient.OperationOptions { +export interface GraphQLApiResolverListByApiOptionalParams extends coreClient.OperationOptions { filter?: string; skip?: number; top?: number; } // @public -export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; +export type GraphQLApiResolverListByApiResponse = ResolverCollection; // @public -export interface GatewayKeyRegenerationRequestContract { - keyType: KeyType_2; +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 GatewayKeysContract { - primary?: string; - secondary?: string; +export interface GraphQLApiResolverPolicyCreateOrUpdateHeaders { + eTag?: string; } // @public -export interface GatewayListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; } // @public -export type GatewayListByServiceNextResponse = GatewayCollection; +export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & PolicyContract; // @public -export interface GatewayListByServiceOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; +export interface GraphQLApiResolverPolicyDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayListByServiceResponse = GatewayCollection; - -// @public -export interface GatewayListKeysHeaders { +export interface GraphQLApiResolverPolicyGetEntityTagHeaders { eTag?: string; } // @public -export interface GatewayListKeysOptionalParams extends coreClient.OperationOptions { +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayListKeysResponse = GatewayListKeysHeaders & GatewayKeysContract; +export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; // @public -export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions { +export interface GraphQLApiResolverPolicyGetHeaders { + eTag?: string; } // @public -export interface GatewayTokenContract { - value?: string; +export interface GraphQLApiResolverPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; } // @public -export interface GatewayTokenRequestContract { - expiry: Date; - keyType: KeyType_2; -} +export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & PolicyContract; // @public -export interface GatewayUpdateHeaders { - eTag?: string; +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface GatewayUpdateOptionalParams extends coreClient.OperationOptions { +export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; + +// @public +export interface GraphQLApiResolverPolicyListByResolverOptionalParams extends coreClient.OperationOptions { } // @public -export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; // @public -export interface GenerateSsoUrlResult { - value?: string; +export interface GraphQLApiResolverUpdateHeaders { + eTag?: string; } // @public -export function getContinuationToken(page: unknown): string | undefined; +export interface GraphQLApiResolverUpdateOptionalParams extends coreClient.OperationOptions { +} // @public -export type GrantType = string; +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & ResolverContract; // @public export interface Group { @@ -3643,7 +4315,7 @@ export interface GroupCollection { } // @public -export interface GroupContract extends Resource { +export interface GroupContract extends ProxyResource { readonly builtIn?: boolean; description?: string; displayName?: string; @@ -3711,9 +4383,6 @@ export type GroupGetResponse = GroupGetHeaders & GroupContract; // @public export interface GroupListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -3782,9 +4451,6 @@ export interface GroupUserDeleteOptionalParams extends coreClient.OperationOptio // @public export interface GroupUserListNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -3849,6 +4515,7 @@ export interface IdentityProvider { export interface IdentityProviderBaseParameters { allowedTenants?: string[]; authority?: string; + clientLibrary?: string; passwordResetPolicyName?: string; profileEditingPolicyName?: string; signinPolicyName?: string; @@ -3858,10 +4525,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; @@ -3878,10 +4546,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; @@ -3988,6 +4657,7 @@ export interface IdentityProviderUpdateParameters { allowedTenants?: string[]; authority?: string; clientId?: string; + clientLibrary?: string; clientSecret?: string; passwordResetPolicyName?: string; profileEditingPolicyName?: string; @@ -4020,7 +4690,7 @@ export interface IssueAttachmentCollection { } // @public -export interface IssueAttachmentContract extends Resource { +export interface IssueAttachmentContract extends ProxyResource { content?: string; contentFormat?: string; title?: string; @@ -4041,14 +4711,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; @@ -4085,9 +4755,6 @@ export type IssueGetResponse = IssueGetHeaders & IssueContract; // @public export interface IssueListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -4179,19 +4846,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", @@ -4381,6 +5046,12 @@ export enum KnownMethod { Post = "POST" } +// @public +export enum KnownNatGatewayState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownNotificationName { AccountClosedPublisher = "AccountClosedPublisher", @@ -4392,6 +5063,12 @@ export enum KnownNotificationName { RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage" } +// @public +export enum KnownOAuth2GrantType { + AuthorizationCode = "AuthorizationCode", + ClientCredentials = "ClientCredentials" +} + // @public export enum KnownOperationNameFormat { Name = "Name", @@ -4427,6 +5104,12 @@ export enum KnownPolicyExportFormat { Xml = "xml" } +// @public +export enum KnownPolicyFragmentContentFormat { + Rawxml = "rawxml", + Xml = "xml" +} + // @public export enum KnownPolicyIdName { Policy = "policy" @@ -4440,6 +5123,13 @@ export enum KnownPortalRevisionStatus { Publishing = "publishing" } +// @public +export enum KnownPortalSettingsCspMode { + Disabled = "disabled", + Enabled = "enabled", + ReportOnly = "reportOnly" +} + // @public export enum KnownPreferredIPVersion { IPv4 = "IPv4" @@ -4486,6 +5176,12 @@ export enum KnownSamplingType { Fixed = "fixed" } +// @public +export enum KnownSchemaType { + Json = "json", + Xml = "xml" +} + // @public export enum KnownSettingsTypeName { Public = "public" @@ -4542,6 +5238,12 @@ export enum KnownTemplateName { RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage" } +// @public +export enum KnownTranslateRequiredQueryParametersConduct { + Query = "query", + Template = "template" +} + // @public export enum KnownUserState { Active = "active", @@ -4589,7 +5291,7 @@ export interface LoggerCollection { } // @public -export interface LoggerContract extends Resource { +export interface LoggerContract extends ProxyResource { credentials?: { [propertyName: string]: string; }; @@ -4642,9 +5344,6 @@ export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; // @public export interface LoggerListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -4714,7 +5413,7 @@ export interface NamedValueCollection { } // @public -export interface NamedValueContract extends Resource { +export interface NamedValueContract extends ProxyResource { displayName?: string; keyVault?: KeyVaultContractProperties; secret?: boolean; @@ -4730,7 +5429,7 @@ export interface NamedValueContractProperties extends NamedValueEntityBaseParame } // @public -export interface NamedValueCreateContract extends Resource { +export interface NamedValueCreateContract extends ProxyResource { displayName?: string; keyVault?: KeyVaultContractCreateProperties; secret?: boolean; @@ -4796,10 +5495,6 @@ export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; // @public export interface NamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - isKeyVaultRefreshFailed?: boolean; - skip?: number; - top?: number; } // @public @@ -4877,6 +5572,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; @@ -4925,7 +5623,7 @@ export interface NotificationCollection { } // @public -export interface NotificationContract extends Resource { +export interface NotificationContract extends ProxyResource { description?: string; recipients?: RecipientsContractProperties; title?: string; @@ -4948,8 +5646,6 @@ export type NotificationGetResponse = NotificationContract; // @public export interface NotificationListByServiceNextOptionalParams extends coreClient.OperationOptions { - skip?: number; - top?: number; } // @public @@ -5043,6 +5739,9 @@ export interface OAuth2AuthenticationSettingsContract { scope?: string; } +// @public +export type OAuth2GrantType = string; + // @public export interface OpenIdAuthenticationSettingsContract { bearerTokenSendingMethods?: BearerTokenSendingMethods[]; @@ -5068,12 +5767,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 @@ -5119,9 +5820,6 @@ export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & // @public export interface OpenIdConnectProviderListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -5156,6 +5854,8 @@ export interface OpenidConnectProviderUpdateContract { description?: string; displayName?: string; metadataEndpoint?: string; + useInApiDocumentation?: boolean; + useInTestConsole?: boolean; } // @public @@ -5186,7 +5886,7 @@ export interface OperationCollection { } // @public -export interface OperationContract extends Resource { +export interface OperationContract extends ProxyResource { description?: string; displayName?: string; method?: string; @@ -5223,10 +5923,6 @@ export interface OperationEntityBaseContract { // @public export interface OperationListByTagsNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - includeNotTaggedOperations?: boolean; - skip?: number; - top?: number; } // @public @@ -5258,7 +5954,7 @@ export interface OperationOperations { } // @public -export interface OperationResultContract extends Resource { +export interface OperationResultContract extends ProxyResource { readonly actionLog?: OperationResultLogItemContract[]; error?: ErrorResponseBody; idPropertiesId?: string; @@ -5394,7 +6090,7 @@ export interface PolicyCollection { export type PolicyContentFormat = string; // @public -export interface PolicyContract extends Resource { +export interface PolicyContract extends ProxyResource { format?: PolicyContentFormat; value?: string; } @@ -5405,85 +6101,285 @@ export interface PolicyCreateOrUpdateHeaders { } // @public -export interface PolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - ifMatch?: string; -} +export interface PolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface PolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PolicyDescription { + listByService(resourceGroupName: string, serviceName: string, options?: PolicyDescriptionListByServiceOptionalParams): Promise; +} + +// @public +export interface PolicyDescriptionCollection { + count?: number; + value?: PolicyDescriptionContract[]; +} + +// @public +export interface PolicyDescriptionContract extends ProxyResource { + readonly description?: string; + readonly scope?: number; +} + +// @public +export interface PolicyDescriptionListByServiceOptionalParams extends coreClient.OperationOptions { + scope?: PolicyScopeContract; +} + +// @public +export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; + +// @public +export type PolicyExportFormat = string; + +// @public +export interface PolicyFragment { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, id: string, parameters: PolicyFragmentContract, options?: PolicyFragmentCreateOrUpdateOptionalParams): Promise, PolicyFragmentCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, id: string, parameters: PolicyFragmentContract, options?: PolicyFragmentCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, id: string, ifMatch: string, options?: PolicyFragmentDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): 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; +} + +// @public +export interface PolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; + +// @public +export interface PolicyGetHeaders { + eTag?: string; +} + +// @public +export interface PolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; + +// @public +export type PolicyIdName = string; + +// @public +export interface PolicyListByServiceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyListByServiceResponse = PolicyCollection; // @public -export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & PolicyContract; +export type PolicyScopeContract = "Tenant" | "Product" | "Api" | "Operation" | "All"; // @public -export interface PolicyDeleteOptionalParams extends coreClient.OperationOptions { +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 PolicyDescription { - listByService(resourceGroupName: string, serviceName: string, options?: PolicyDescriptionListByServiceOptionalParams): Promise; +export interface PortalConfigCollection { + readonly nextLink?: string; + value?: PortalConfigContract[]; } // @public -export interface PolicyDescriptionCollection { - count?: number; - value?: PolicyDescriptionContract[]; +export interface PortalConfigContract extends ProxyResource { + cors?: PortalConfigCorsProperties; + csp?: PortalConfigCspProperties; + delegation?: PortalConfigDelegationProperties; + enableBasicAuth?: boolean; + // (undocumented) + signin?: PortalConfigPropertiesSignin; + // (undocumented) + signup?: PortalConfigPropertiesSignup; } // @public -export interface PolicyDescriptionContract extends Resource { - readonly description?: string; - readonly scope?: number; +export interface PortalConfigCorsProperties { + allowedOrigins?: string[]; } // @public -export interface PolicyDescriptionListByServiceOptionalParams extends coreClient.OperationOptions { - scope?: PolicyScopeContract; +export interface PortalConfigCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; // @public -export type PolicyExportFormat = string; +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 PolicyGetEntityTagHeaders { +export interface PortalConfigGetEntityTagHeaders { eTag?: string; } // @public -export interface PolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +export interface PortalConfigGetEntityTagOptionalParams extends coreClient.OperationOptions { } // @public -export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; // @public -export interface PolicyGetHeaders { +export interface PortalConfigGetHeaders { eTag?: string; } // @public -export interface PolicyGetOptionalParams extends coreClient.OperationOptions { - format?: PolicyExportFormat; +export interface PortalConfigGetOptionalParams extends coreClient.OperationOptions { } // @public -export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; +export type PortalConfigGetResponse = PortalConfigGetHeaders & PortalConfigContract; // @public -export type PolicyIdName = string; +export interface PortalConfigListByServiceOptionalParams extends coreClient.OperationOptions { +} // @public -export interface PolicyListByServiceOptionalParams extends coreClient.OperationOptions { +export type PortalConfigListByServiceResponse = PortalConfigCollection; + +// @public (undocumented) +export interface PortalConfigPropertiesSignin { + require?: boolean; +} + +// @public (undocumented) +export interface PortalConfigPropertiesSignup { + termsOfService?: PortalConfigTermsOfServiceProperties; } // @public -export type PolicyListByServiceResponse = PolicyCollection; +export interface PortalConfigTermsOfServiceProperties { + requireConsent?: boolean; + text?: string; +} // @public -export type PolicyScopeContract = "Tenant" | "Product" | "Api" | "Operation" | "All"; +export interface PortalConfigUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigUpdateResponse = PortalConfigContract; // @public -export interface PortalDelegationSettings extends Resource { +export interface PortalDelegationSettings extends ProxyResource { subscriptions?: SubscriptionsDelegationSettingsProperties; url?: string; userRegistration?: RegistrationDelegationSettingsProperties; @@ -5508,7 +6404,7 @@ export interface PortalRevisionCollection { } // @public -export interface PortalRevisionContract extends Resource { +export interface PortalRevisionContract extends ProxyResource { readonly createdDateTime?: Date; description?: string; isCurrent?: boolean; @@ -5557,9 +6453,6 @@ export type PortalRevisionGetResponse = PortalRevisionGetHeaders & PortalRevisio // @public export interface PortalRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -5604,7 +6497,7 @@ export interface PortalSettingsCollection { } // @public -export interface PortalSettingsContract extends Resource { +export interface PortalSettingsContract extends ProxyResource { enabled?: boolean; subscriptions?: SubscriptionsDelegationSettingsProperties; termsOfService?: TermsOfServiceProperties; @@ -5613,6 +6506,9 @@ export interface PortalSettingsContract extends Resource { validationKey?: string; } +// @public +export type PortalSettingsCspMode = string; + // @public export interface PortalSettingsListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -5626,12 +6522,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; } @@ -5788,9 +6684,6 @@ export interface ProductApiDeleteOptionalParams extends coreClient.OperationOpti // @public export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -5814,7 +6707,7 @@ export interface ProductCollection { } // @public -export interface ProductContract extends Resource { +export interface ProductContract extends ProxyResource { approvalRequired?: boolean; description?: string; displayName?: string; @@ -5911,9 +6804,6 @@ export interface ProductGroupDeleteOptionalParams extends coreClient.OperationOp // @public export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -5931,11 +6821,6 @@ export type ProductGroupListByProductResponse = GroupCollection; // @public export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions { - expandGroups?: boolean; - filter?: string; - skip?: number; - tags?: string; - top?: number; } // @public @@ -5955,10 +6840,6 @@ export type ProductListByServiceResponse = ProductCollection; // @public export interface ProductListByTagsNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - includeNotTaggedProducts?: boolean; - skip?: number; - top?: number; } // @public @@ -6043,9 +6924,6 @@ export interface ProductSubscriptions { // @public export interface ProductSubscriptionsListNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -6095,9 +6973,108 @@ 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 { +} + +// @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 interface ProxyResourceAutoGenerated extends ResourceAutoGenerated { +} + // @public export type PublicNetworkAccess = string; @@ -6183,7 +7160,7 @@ export interface RecipientEmailCollection { } // @public -export interface RecipientEmailContract extends Resource { +export interface RecipientEmailContract extends ProxyResource { email?: string; } @@ -6201,7 +7178,7 @@ export interface RecipientUserCollection { } // @public -export interface RecipientUserContract extends Resource { +export interface RecipientUserContract extends ProxyResource { userId?: string; } @@ -6305,9 +7282,6 @@ export interface Reports { // @public export interface ReportsListByApiNextOptionalParams extends coreClient.OperationOptions { - orderby?: string; - skip?: number; - top?: number; } // @public @@ -6325,8 +7299,6 @@ export type ReportsListByApiResponse = ReportCollection; // @public export interface ReportsListByGeoNextOptionalParams extends coreClient.OperationOptions { - skip?: number; - top?: number; } // @public @@ -6343,9 +7315,6 @@ export type ReportsListByGeoResponse = ReportCollection; // @public export interface ReportsListByOperationNextOptionalParams extends coreClient.OperationOptions { - orderby?: string; - skip?: number; - top?: number; } // @public @@ -6363,9 +7332,6 @@ export type ReportsListByOperationResponse = ReportCollection; // @public export interface ReportsListByProductNextOptionalParams extends coreClient.OperationOptions { - orderby?: string; - skip?: number; - top?: number; } // @public @@ -6392,9 +7358,6 @@ export type ReportsListByRequestResponse = RequestReportCollection; // @public export interface ReportsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { - orderby?: string; - skip?: number; - top?: number; } // @public @@ -6412,9 +7375,6 @@ export type ReportsListBySubscriptionResponse = ReportCollection; // @public export interface ReportsListByTimeNextOptionalParams extends coreClient.OperationOptions { - orderby?: string; - skip?: number; - top?: number; } // @public @@ -6432,9 +7392,6 @@ export type ReportsListByTimeResponse = ReportCollection; // @public export interface ReportsListByUserNextOptionalParams extends coreClient.OperationOptions { - orderby?: string; - skip?: number; - top?: number; } // @public @@ -6497,6 +7454,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; @@ -6504,6 +7500,25 @@ export interface Resource { readonly type?: string; } +// @public +export interface ResourceAutoGenerated { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + 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; @@ -6572,13 +7587,16 @@ export interface SchemaCollection { } // @public -export interface SchemaContract extends Resource { +export interface SchemaContract extends ProxyResource { components?: Record; contentType?: string; definitions?: Record; value?: string; } +// @public +export type SchemaType = string; + // @public export type SettingsTypeName = string; @@ -6703,7 +7721,7 @@ export interface SubscriptionCollection { } // @public -export interface SubscriptionContract extends Resource { +export interface SubscriptionContract extends ProxyResource { allowTracing?: boolean; readonly createdDate?: Date; displayName?: string; @@ -6787,9 +7805,6 @@ export interface SubscriptionKeysContract { // @public export interface SubscriptionListNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -6929,7 +7944,7 @@ export interface TagCollection { } // @public -export interface TagContract extends Resource { +export interface TagContract extends ProxyResource { displayName?: string; } @@ -6970,7 +7985,7 @@ export interface TagDescriptionCollection { } // @public -export interface TagDescriptionContract extends Resource { +export interface TagDescriptionContract extends ProxyResource { description?: string; displayName?: string; externalDocsDescription?: string; @@ -7101,9 +8116,6 @@ export type TagGetResponse = TagGetHeaders & TagContract; // @public export interface TagListByApiNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -7121,9 +8133,6 @@ export type TagListByApiResponse = TagCollection; // @public export interface TagListByOperationNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -7141,9 +8150,6 @@ export type TagListByOperationResponse = TagCollection; // @public export interface TagListByProductNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -7161,10 +8167,6 @@ export type TagListByProductResponse = TagCollection; // @public export interface TagListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - scope?: string; - skip?: number; - top?: number; } // @public @@ -7209,9 +8211,6 @@ export interface TagResourceContractProperties { // @public export interface TagResourceListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -7306,7 +8305,6 @@ export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams extends cor // @public export interface TenantAccessListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; } // @public @@ -7389,7 +8387,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; @@ -7422,7 +8420,7 @@ export interface TenantSettingsCollection { } // @public -export interface TenantSettingsContract extends Resource { +export interface TenantSettingsContract extends ProxyResource { settings?: { [propertyName: string]: string; }; @@ -7442,7 +8440,6 @@ export type TenantSettingsGetResponse = TenantSettingsGetHeaders & TenantSetting // @public export interface TenantSettingsListByServiceNextOptionalParams extends coreClient.OperationOptions { - filter?: string; } // @public @@ -7469,6 +8466,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; @@ -7499,7 +8499,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[]; @@ -7615,9 +8615,6 @@ export interface UserGroup { // @public export interface UserGroupListNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -7673,10 +8670,6 @@ export interface UserIdentityProperties { // @public export interface UserListByServiceNextOptionalParams extends coreClient.OperationOptions { - expandGroups?: boolean; - filter?: string; - skip?: number; - top?: number; } // @public @@ -7716,9 +8709,6 @@ export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & Subscript // @public export interface UserSubscriptionListNextOptionalParams extends coreClient.OperationOptions { - filter?: string; - skip?: number; - top?: number; } // @public @@ -7792,6 +8782,27 @@ export interface VirtualNetworkConfiguration { // @public export type VirtualNetworkType = string; +// @public +export interface WikiCollection { + readonly nextLink?: string; + readonly value?: WikiContract[]; +} + +// @public +export interface WikiContract extends ProxyResourceAutoGenerated { + 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 6becb3849d55..d399afd24a83 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -23,6 +23,8 @@ import { ApiOperationImpl, ApiOperationPolicyImpl, TagImpl, + GraphQLApiResolverImpl, + GraphQLApiResolverPolicyImpl, ApiProductImpl, ApiPolicyImpl, ApiSchemaImpl, @@ -32,9 +34,15 @@ import { ApiIssueAttachmentImpl, ApiTagDescriptionImpl, OperationOperationsImpl, + ApiWikiImpl, + ApiWikisImpl, ApiExportImpl, ApiVersionSetImpl, AuthorizationServerImpl, + AuthorizationProviderImpl, + AuthorizationImpl, + AuthorizationLoginLinksImpl, + AuthorizationAccessPolicyImpl, BackendImpl, CacheImpl, CertificateImpl, @@ -64,6 +72,8 @@ import { OutboundNetworkDependenciesEndpointsImpl, PolicyImpl, PolicyDescriptionImpl, + PolicyFragmentImpl, + PortalConfigImpl, PortalRevisionImpl, PortalSettingsImpl, SignInSettingsImpl, @@ -75,10 +85,13 @@ import { ProductGroupImpl, ProductSubscriptionsImpl, ProductPolicyImpl, + ProductWikiImpl, + ProductWikisImpl, QuotaByCounterKeysImpl, QuotaByPeriodKeysImpl, RegionImpl, ReportsImpl, + GlobalSchemaImpl, TenantSettingsImpl, ApiManagementSkusImpl, SubscriptionImpl, @@ -90,7 +103,8 @@ import { UserGroupImpl, UserSubscriptionImpl, UserIdentitiesImpl, - UserConfirmationPasswordImpl + UserConfirmationPasswordImpl, + DocumentationImpl } from "./operations"; import { Api, @@ -99,6 +113,8 @@ import { ApiOperation, ApiOperationPolicy, Tag, + GraphQLApiResolver, + GraphQLApiResolverPolicy, ApiProduct, ApiPolicy, ApiSchema, @@ -108,9 +124,15 @@ import { ApiIssueAttachment, ApiTagDescription, OperationOperations, + ApiWiki, + ApiWikis, ApiExport, ApiVersionSet, AuthorizationServer, + AuthorizationProvider, + Authorization, + AuthorizationLoginLinks, + AuthorizationAccessPolicy, Backend, Cache, Certificate, @@ -140,6 +162,8 @@ import { OutboundNetworkDependenciesEndpoints, Policy, PolicyDescription, + PolicyFragment, + PortalConfig, PortalRevision, PortalSettings, SignInSettings, @@ -151,10 +175,13 @@ import { ProductGroup, ProductSubscriptions, ProductPolicy, + ProductWiki, + ProductWikis, QuotaByCounterKeys, QuotaByPeriodKeys, Region, Reports, + GlobalSchema, TenantSettings, ApiManagementSkus, Subscription, @@ -166,7 +193,8 @@ import { UserGroup, UserSubscription, UserIdentities, - UserConfirmationPassword + UserConfirmationPassword, + Documentation } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -185,8 +213,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( @@ -210,7 +237,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-apimanagement/8.1.3`; + const packageDetails = `azsdk-js-arm-apimanagement/9.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -263,13 +290,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); @@ -279,9 +308,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); @@ -317,6 +352,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); @@ -330,10 +367,13 @@ 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); this.reports = new ReportsImpl(this); + this.globalSchema = new GlobalSchemaImpl(this); this.tenantSettings = new TenantSettingsImpl(this); this.apiManagementSkus = new ApiManagementSkusImpl(this); this.subscription = new SubscriptionImpl(this); @@ -346,6 +386,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); } @@ -380,7 +421,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. @@ -457,7 +498,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. @@ -483,6 +524,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiOperation: ApiOperation; apiOperationPolicy: ApiOperationPolicy; tag: Tag; + graphQLApiResolver: GraphQLApiResolver; + graphQLApiResolverPolicy: GraphQLApiResolverPolicy; apiProduct: ApiProduct; apiPolicy: ApiPolicy; apiSchema: ApiSchema; @@ -492,9 +535,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; @@ -524,6 +573,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { outboundNetworkDependenciesEndpoints: OutboundNetworkDependenciesEndpoints; policy: Policy; policyDescription: PolicyDescription; + policyFragment: PolicyFragment; + portalConfig: PortalConfig; portalRevision: PortalRevision; portalSettings: PortalSettings; signInSettings: SignInSettings; @@ -535,10 +586,13 @@ export class ApiManagementClient extends coreClient.ServiceClient { productGroup: ProductGroup; productSubscriptions: ProductSubscriptions; productPolicy: ProductPolicy; + productWiki: ProductWiki; + productWikis: ProductWikis; quotaByCounterKeys: QuotaByCounterKeys; quotaByPeriodKeys: QuotaByPeriodKeys; region: Region; reports: Reports; + globalSchema: GlobalSchema; tenantSettings: TenantSettings; apiManagementSkus: ApiManagementSkus; subscription: Subscription; @@ -551,6 +605,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/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index a73993359a12..51cbb0910488 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,121 @@ export interface OperationTagResourceContractProperties { readonly urlTemplate?: string; } +/** Wiki documentation details. */ +export interface WikiDocumentationContract { + /** Documentation Identifier */ + documentationId?: string; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface ResourceAutoGenerated { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} + +/** 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 +1032,72 @@ export interface AuthorizationServerSecretsContract { resourceOwnerPassword?: string; } +/** Paged Authorization Provider list representation. */ +export interface AuthorizationProviderCollection { + /** Page values. */ + value?: AuthorizationProviderContract[]; + /** Total record count number across all pages. */ + count?: number; + /** 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; +} + +/** 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 +1114,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 +1202,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; @@ -1054,7 +1267,7 @@ export interface KeyVaultLastAccessStatusContractProperties { export interface KeyVaultContractCreateProperties { /** Key vault secret identifier for fetching secret. Providing a versioned secret will prevent auto-refresh. This requires API Management service to be configured with aka.ms/apimmsi */ secretIdentifier?: string; - /** SystemAssignedIdentity or UserAssignedIdentity Client Id which will be used to access key vault secret. */ + /** Null for SystemAssignedIdentity or Client Id for UserAssignedIdentity , which will be used to access key vault secret. */ identityClientId?: string; } @@ -1441,6 +1654,13 @@ export interface ApiManagementServiceBaseProperties { 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 +1692,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 +1757,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; /** @@ -1642,22 +1869,6 @@ export interface UserIdentityProperties { clientId?: string; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - /** The Resource definition. */ export interface ApimResource { /** @@ -1958,6 +2169,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 +2191,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 +2365,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 +2406,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 +2504,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 +2721,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; @@ -2506,6 +2801,22 @@ export interface RequestReportRecordContract { requestSize?: number; } +/** The response of the list schema operation. */ +export interface GlobalSchemaCollection { + /** + * Global Schema Contract value. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: GlobalSchemaContract[]; + /** Total record count number. */ + 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; +} + /** Paged AccessInformation list representation. */ export interface TenantSettingsCollection { /** @@ -2927,6 +3238,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. */ @@ -2947,6 +3280,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. */ @@ -2990,85 +3333,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. */ @@ -3077,80 +3387,40 @@ export interface OperationContract extends Resource { urlTemplate?: string; } -/** Policy Contract details. */ -export interface PolicyContract extends Resource { - /** Contents of the Policy as defined by the format. */ - value?: string; - /** Format of the policyContent. */ - format?: PolicyContentFormat; +/** Product profile. */ +export interface ProductContractProperties extends ProductEntityBaseParameters { + /** Product name. */ + displayName: string; } -/** Tag Contract details. */ -export interface TagContract extends Resource { - /** Tag name. */ - displayName?: string; +/** Product profile. */ +export interface ProductTagResourceContractProperties + extends ProductEntityBaseParameters { + /** Identifier of the product in the form of /products/{productId} */ + id?: string; + /** Product name. */ + name: string; } -/** Product details. */ -export interface ProductContract extends Resource { - /** Product description. May include HTML formatting tags. */ - description?: string; - /** Product terms of use. Developers trying to subscribe to the product will be presented and required to accept these terms before they can complete the subscription process. */ - terms?: string; - /** Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included in the product can be made without a subscription key. If property is omitted when creating a new product it's value is assumed to be true. */ - subscriptionRequired?: boolean; - /** whether subscription approval is required. If false, new subscriptions will be approved automatically enabling developers to call the product’s APIs immediately after subscribing. If true, administrators must manually approve the subscription before the developer can any of the product’s APIs. Can be present only if subscriptionRequired property is present and has a value of false. */ - approvalRequired?: boolean; - /** Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of false. */ - subscriptionsLimit?: number; - /** whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished. */ - state?: ProductState; +/** Parameters supplied to the Update Product operation. */ +export interface ProductUpdateProperties extends ProductEntityBaseParameters { /** Product name. */ displayName?: string; } -/** 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 OpenAPI v2 (Swagger) schemas only, null otherwise. */ - definitions?: Record; - /** Types definitions. Used for OpenAPI 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; +/** 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. */ @@ -3159,114 +3429,66 @@ 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; +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResourceAutoGenerated extends ResourceAutoGenerated {} + +/** 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. */ @@ -3279,1065 +3501,1355 @@ 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 { +/** A single API Management service resource in List or Get response. */ +export interface ApiManagementServiceResource extends ApimResource { + /** SKU properties of the API Management service. */ + sku: ApiManagementServiceSkuProperties; + /** Managed service identity of the Api Management service. */ + identity?: ApiManagementServiceIdentity; /** - * API Management Service Master Location. + * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; - /** Fully-qualified API Management Service Resource ID */ - serviceId?: string; - /** UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. */ - scheduledPurgeDate?: Date; - /** UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. */ - deletionDate?: Date; -} - -/** Email Template details. */ -export interface EmailTemplateContract extends Resource { - /** Subject of the Template. */ - subject?: string; - /** Email Template Body. This should be a valid XDocument */ - body?: string; - /** Title of the Template. */ - title?: string; - /** Description of the Email Template. */ - description?: string; + readonly systemData?: SystemData; + /** Resource location. */ + location: string; /** - * Whether the template is the default template provided by API Management or has been edited. + * ETag of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDefault?: boolean; - /** Email Template Parameter values. */ - parameters?: EmailTemplateParametersContractProperties[]; -} - -/** Gateway details. */ -export interface GatewayContract extends Resource { - /** Gateway location. */ - locationData?: ResourceLocationDataContract; - /** Gateway description */ - description?: string; -} - -/** Gateway hostname configuration details. */ -export interface GatewayHostnameConfigurationContract extends Resource { - /** Hostname value. Supports valid domain name, partial or full wildcard */ - hostname?: string; - /** Identifier of Certificate entity that will be used for TLS connection establishment */ - certificateId?: string; - /** Determines whether gateway requests client certificate */ - negotiateClientCertificate?: boolean; - /** Specifies if TLS 1.0 is supported */ - tls10Enabled?: boolean; - /** Specifies if TLS 1.1 is supported */ - tls11Enabled?: boolean; - /** Specifies if HTTP/2.0 is supported */ - http2Enabled?: boolean; -} - -/** Association entity details. */ -export interface AssociationContract extends Resource { - /** Provisioning state. */ - provisioningState?: "created"; -} - -/** Gateway certificate authority details. */ -export interface GatewayCertificateAuthorityContract extends Resource { - /** Determines whether certificate authority is trusted. */ - isTrusted?: boolean; -} - -/** Contract details. */ -export interface GroupContract extends Resource { - /** Group name. */ - displayName?: string; - /** Group description. Can contain HTML formatting tags. */ - description?: string; + readonly etag?: string; + /** A list of availability zones denoting where the resource needs to come from. */ + zones?: string[]; + /** Email address from which the notification will be sent. */ + notificationSenderEmail?: string; /** - * true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false. + * The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly builtIn?: boolean; - /** Group type. */ - typePropertiesType?: GroupType; - /** For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null. */ - externalId?: string; -} - -/** User details. */ -export interface UserContract extends Resource { - /** Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. */ - state?: UserState; - /** Optional note about a user set by the administrator. */ - note?: string; - /** Collection of user identities. */ - identities?: UserIdentityContract[]; - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; - /** Email address. */ - email?: string; + readonly provisioningState?: string; /** - * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * The provisioning state of the API Management service, which is targeted by the long running operation started on the service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - registrationDate?: Date; + readonly targetProvisioningState?: string; /** - * Collection of groups user is part of. + * Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groups?: GroupContractProperties[]; -} - -/** Identity Provider details. */ -export interface IdentityProviderContract extends Resource { - /** Identity Provider Type identifier. */ - typePropertiesType?: IdentityProviderType; - /** The TenantId to use instead of Common when logging into Active Directory */ - signinTenant?: string; - /** List of Allowed Tenants when configuring Azure Active Directory login. */ - allowedTenants?: string[]; - /** OpenID Connect discovery endpoint hostname for AAD or AAD B2C. */ - authority?: string; - /** Signup Policy Name. Only applies to AAD B2C Identity Provider. */ - signupPolicyName?: string; - /** Signin Policy Name. Only applies to AAD B2C Identity Provider. */ - signinPolicyName?: string; - /** Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. */ - profileEditingPolicyName?: string; - /** Password Reset Policy Name. Only applies to AAD B2C Identity Provider. */ - passwordResetPolicyName?: string; - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId?: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; -} - -/** Identity Provider details. */ -export interface IdentityProviderCreateContract extends Resource { - /** Identity Provider Type identifier. */ - typePropertiesType?: IdentityProviderType; - /** The TenantId to use instead of Common when logging into Active Directory */ - signinTenant?: string; - /** List of Allowed Tenants when configuring Azure Active Directory login. */ - allowedTenants?: string[]; - /** OpenID Connect discovery endpoint hostname for AAD or AAD B2C. */ - authority?: string; - /** Signup Policy Name. Only applies to AAD B2C Identity Provider. */ - signupPolicyName?: string; - /** Signin Policy Name. Only applies to AAD B2C Identity Provider. */ - signinPolicyName?: string; - /** Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. */ - profileEditingPolicyName?: string; - /** Password Reset Policy Name. Only applies to AAD B2C Identity Provider. */ - passwordResetPolicyName?: string; - /** Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. */ - clientId?: string; - /** Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - clientSecret?: string; -} - -/** Logger details. */ -export interface LoggerContract extends Resource { - /** Logger type. */ - loggerType?: LoggerType; - /** Logger description. */ - description?: string; + readonly createdAtUtc?: Date; /** - * The name and SendRule connection string of the event hub for azureEventHub logger. - * Instrumentation key for applicationInsights logger. + * Gateway URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - credentials?: { [propertyName: string]: string }; - /** Whether records are buffered in the logger before publishing. Default is assumed to be true. */ - isBuffered?: boolean; - /** Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource). */ - resourceId?: string; -} - -/** NamedValue details. */ -export interface NamedValueContract extends Resource { - /** Optional tags that when provided can be used to filter the NamedValue list. */ - tags?: string[]; - /** Determines whether the value is a secret and should be encrypted or not. Default value is false. */ - secret?: boolean; - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ - displayName?: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractProperties; -} - -/** NamedValue details. */ -export interface NamedValueCreateContract extends Resource { - /** Optional tags that when provided can be used to filter the NamedValue list. */ - tags?: string[]; - /** Determines whether the value is a secret and should be encrypted or not. Default value is false. */ - secret?: boolean; - /** Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore characters. */ - displayName?: string; - /** Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - value?: string; - /** KeyVault location details of the namedValue. */ - keyVault?: KeyVaultContractCreateProperties; -} - -/** Notification details. */ -export interface NotificationContract extends Resource { - /** Title of the Notification. */ - title?: string; - /** Description of the Notification. */ - description?: string; - /** Recipient Parameter values. */ - recipients?: RecipientsContractProperties; -} - -/** Recipient User details. */ -export interface RecipientUserContract extends Resource { - /** API Management UserId subscribed to notification. */ - userId?: string; -} - -/** Recipient Email details. */ -export interface RecipientEmailContract extends Resource { - /** User Email subscribed to notification. */ - email?: string; -} - -/** OpenId Connect Provider details. */ -export interface OpenidConnectProviderContract extends Resource { - /** User-friendly OpenID Connect Provider name. */ - displayName?: string; - /** User-friendly description of OpenID Connect Provider. */ - description?: string; - /** Metadata endpoint URI. */ - metadataEndpoint?: string; - /** Client ID of developer console which is the client application. */ - clientId?: string; - /** Client Secret of developer console which is the client application. */ - clientSecret?: string; -} - -/** Policy description details. */ -export interface PolicyDescriptionContract extends Resource { + readonly gatewayUrl?: string; /** - * Policy description. + * Gateway URL of the API Management service in the Default Region. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly gatewayRegionalUrl?: string; /** - * Binary OR value of the Snippet scope. + * Publisher portal endpoint Url of the API Management service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scope?: number; -} - -/** Portal Revision's contract details. */ -export interface PortalRevisionContract extends Resource { - /** Portal revision description. */ - description?: string; + readonly portalUrl?: string; /** - * Portal revision publishing status details. + * Management API endpoint URL of the API Management service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statusDetails?: string; + readonly managementApiUrl?: string; /** - * Status of the portal's revision. + * SCM endpoint URL of the API Management service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: PortalRevisionStatus; - /** Indicates if the portal's revision is public. */ - isCurrent?: boolean; + readonly scmUrl?: string; /** - * Portal's revision creation date and time. + * DEveloper Portal endpoint URL of the API Management service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdDateTime?: Date; + readonly developerPortalUrl?: string; + /** Custom hostname configuration of the API Management service. */ + hostnameConfigurations?: HostnameConfiguration[]; /** - * Last updated date and time. + * Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard, Premium and Isolated SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly updatedDateTime?: Date; -} - -/** Portal Settings for the Developer Portal. */ -export interface PortalSettingsContract extends Resource { - /** A delegation Url. */ - url?: string; - /** A base64-encoded validation key to validate, that a request is coming from Azure API Management. */ - validationKey?: string; - /** Subscriptions delegation settings. */ - subscriptions?: SubscriptionsDelegationSettingsProperties; - /** User registration delegation settings. */ - userRegistration?: RegistrationDelegationSettingsProperties; - /** Redirect Anonymous users to the Sign-In page. */ - enabled?: boolean; - /** Terms of service contract properties. */ - termsOfService?: TermsOfServiceProperties; -} - -/** Sign-In settings for the Developer Portal. */ -export interface PortalSigninSettings extends Resource { - /** Redirect Anonymous users to the Sign-In page. */ - enabled?: boolean; -} - -/** Sign-Up settings for a developer portal. */ -export interface PortalSignupSettings extends Resource { - /** Allow users to sign up on a developer portal. */ - enabled?: boolean; - /** Terms of service contract properties. */ - termsOfService?: TermsOfServiceProperties; -} - -/** Delegation settings for a developer portal. */ -export interface PortalDelegationSettings extends Resource { - /** A delegation Url. */ - url?: string; - /** A base64-encoded validation key to validate, that a request is coming from Azure API Management. */ - validationKey?: string; - /** Subscriptions delegation settings. */ - subscriptions?: SubscriptionsDelegationSettingsProperties; - /** User registration delegation settings. */ - userRegistration?: RegistrationDelegationSettingsProperties; -} - -/** The Private Endpoint Connection resource. */ -export interface PrivateEndpointConnection extends Resource { - /** The resource of private end point. */ - privateEndpoint?: PrivateEndpoint; - /** A collection of information about the state of the connection between service consumer and provider. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly publicIPAddresses?: string[]; /** - * The provisioning state of the private endpoint connection resource. + * Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; -} - -/** A private link resource */ -export interface PrivateLinkResource extends Resource { + readonly privateIPAddresses?: string[]; + /** Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the region. Supported only for Developer and Premium SKU being deployed in Virtual Network. */ + publicIpAddressId?: string; + /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ + publicNetworkAccess?: PublicNetworkAccess; + /** Virtual network configuration of the API Management service. */ + virtualNetworkConfiguration?: VirtualNetworkConfiguration; + /** Additional datacenter locations of the API Management service. */ + additionalLocations?: AdditionalLocation[]; + /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 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 can be used to enable NAT Gateway for this API Management service. */ + natGatewayState?: NatGatewayState; /** - * The private link resource group id. + * Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly outboundPublicIPAddresses?: string[]; + /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ + disableGateway?: boolean; + /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ + virtualNetworkType?: VirtualNetworkType; + /** Control Plane Apis version constraint for the API Management service. */ + apiVersionConstraint?: ApiVersionConstraint; + /** Undelete Api Management Service if it was previously soft-deleted. If this flag is specified and set to True all other properties will be ignored. */ + restore?: boolean; + /** List of Private Endpoint Connections of this service. */ + privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; /** - * The private link resource required member names. + * Compute Platform Version running the service in this location. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; - /** The private link resource Private link DNS zone name. */ - requiredZoneNames?: string[]; + readonly platformVersion?: PlatformVersion; + /** Publisher email. */ + publisherEmail: string; + /** Publisher name. */ + publisherName: string; } -/** Subscription details. */ -export interface SubscriptionContract extends Resource { - /** The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{userId} where {userId} is a user identifier. */ - ownerId?: string; - /** Scope like /products/{productId} or /apis or /apis/{apiId}. */ - scope?: string; - /** The name of the subscription, or null if the subscription has no name. */ - displayName?: string; - /** Subscription state. Possible states are * active – the subscription is active, * suspended – the subscription is blocked, and the subscriber cannot call any APIs of the product, * submitted – the subscription request has been made by the developer, but has not yet been approved or rejected, * rejected – the subscription request has been denied by an administrator, * cancelled – the subscription has been cancelled by the developer or administrator, * expired – the subscription reached its expiration date and was deactivated. */ - state?: SubscriptionState; +/** Parameter supplied to Update Api Management Service. */ +export interface ApiManagementServiceUpdateParameters extends ApimResource { + /** SKU properties of the API Management service. */ + sku?: ApiManagementServiceSkuProperties; + /** Managed service identity of the Api Management service. */ + identity?: ApiManagementServiceIdentity; /** - * Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * ETag of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdDate?: Date; + readonly etag?: string; + /** A list of availability zones denoting where the resource needs to come from. */ + zones?: string[]; + /** Email address from which the notification will be sent. */ + notificationSenderEmail?: string; /** - * Subscription activation date. The setting is for audit purposes only and the subscription is not automatically activated. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - startDate?: Date; + readonly provisioningState?: string; /** - * Subscription expiration date. The setting is for audit purposes only and the subscription is not automatically expired. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * The provisioning state of the API Management service, which is targeted by the long running operation started on the service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - expirationDate?: Date; + readonly targetProvisioningState?: string; /** - * Date when subscription was cancelled or expired. The setting is for audit purposes only and the subscription is not automatically cancelled. The subscription lifecycle can be managed by using the `state` property. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - endDate?: Date; + readonly createdAtUtc?: Date; /** - * Upcoming subscription expiration notification date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * + * Gateway URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - notificationDate?: Date; - /** Subscription primary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - primaryKey?: string; - /** Subscription secondary key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ - secondaryKey?: string; - /** Optional subscription comment added by an administrator when the state is changed to the 'rejected'. */ - stateComment?: string; - /** Determines whether tracing is enabled */ - allowTracing?: boolean; -} - -/** 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[]; + readonly managementApiUrl?: string; + /** + * SCM endpoint URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly scmUrl?: string; + /** + * DEveloper Portal endpoint URL of the API Management service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly developerPortalUrl?: string; + /** Custom hostname configuration of the API Management service. */ + hostnameConfigurations?: HostnameConfiguration[]; + /** + * Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard, Premium and Isolated SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publicIPAddresses?: string[]; + /** + * Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateIPAddresses?: string[]; + /** Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the region. Supported only for Developer and Premium SKU being deployed in Virtual Network. */ + publicIpAddressId?: string; + /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ + publicNetworkAccess?: PublicNetworkAccess; + /** Virtual network configuration of the API Management service. */ + virtualNetworkConfiguration?: VirtualNetworkConfiguration; + /** Additional datacenter locations of the API Management service. */ + additionalLocations?: AdditionalLocation[]; + /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them. Note: next ciphers can't be disabled since they are required by Azure CloudService internal components: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ + customProperties?: { [propertyName: string]: string }; + /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ + certificates?: CertificateConfiguration[]; + /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ + enableClientCertificate?: boolean; + /** Property 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. */ + 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; } -/** 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; +/** User profile. */ +export interface UserContractProperties extends UserEntityBaseParameters { + /** First name. */ + firstName?: string; + /** Last name. */ + lastName?: string; + /** Email address. */ + email?: 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. + * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. * */ - syncDate?: Date; + registrationDate?: 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. - * + * Collection of groups user is part of. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - configurationChangeDate?: Date; - /** Most recent tenant configuration operation identifier */ - lastOperationId?: string; + readonly groups?: GroupContractProperties[]; } -/** Operation Contract Properties */ -export interface OperationContractProperties - extends OperationEntityBaseContract { - /** Operation Name. */ - displayName: string; - /** A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. */ - method: string; - /** Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date} */ - urlTemplate: string; +/** Parameters supplied to the 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; } -/** 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; +/** 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; } -/** Product profile. */ -export interface ProductContractProperties extends ProductEntityBaseParameters { - /** Product name. */ - displayName: 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; } -/** Product profile. */ -export interface ProductTagResourceContractProperties - extends ProductEntityBaseParameters { - /** Identifier of the product in the form of /products/{productId} */ - id?: string; - /** Product name. */ - name: 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 Product operation. */ -export interface ProductUpdateProperties extends ProductEntityBaseParameters { - /** Product name. */ - displayName?: 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; } -/** 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; +/** 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; } -/** 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; +/** 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; } -/** TagDescription contract Properties. */ -export interface TagDescriptionContractProperties - extends TagDescriptionBaseProperties { - /** Identifier of the tag in the form of /tags/{tagId} */ - tagId?: string; - /** Tag name. */ +/** 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; } -/** 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 { +/** 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; +} + +/** 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 Properties. */ -export interface AuthorizationServerContractProperties - extends AuthorizationServerContractBaseProperties { +/** 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; + 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 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 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; +/** 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; + /** + * Expiration date of the certificate. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * + */ + expirationDate?: Date; + /** KeyVault location details of the certificate. */ + keyVault?: KeyVaultContractProperties; +} + +/** Content type contract details. */ +export interface ContentTypeContract extends ProxyResource { + /** Content type identifier */ + idPropertiesId?: string; + /** Content type name. Must be 1 to 250 characters long. */ + namePropertiesName?: string; + /** Content type description. */ + description?: string; + /** Content type schema. */ + schema?: Record; + /** Content type version. */ + version?: string; +} + +/** Content type contract details. */ +export interface ContentItemContract extends ProxyResource { + /** Properties of the content item. */ + properties?: { [propertyName: string]: any }; +} + +/** Deleted API Management Service information. */ +export interface DeletedServiceContract extends ProxyResource { + /** + * API Management Service Master Location. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + /** Fully-qualified API Management Service Resource ID */ + serviceId?: string; + /** UTC Date and Time when the service will be automatically purged. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. */ + scheduledPurgeDate?: Date; + /** UTC Timestamp when the service was soft-deleted. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. */ + deletionDate?: Date; +} + +/** Email Template details. */ +export interface EmailTemplateContract extends ProxyResource { + /** Subject of the Template. */ + subject?: string; + /** Email Template Body. This should be a valid XDocument */ + body?: string; + /** Title of the Template. */ + title?: string; + /** Description of the Email Template. */ + description?: string; + /** + * Whether the template is the default template provided by API Management or has been edited. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDefault?: boolean; + /** Email Template Parameter values. */ + parameters?: EmailTemplateParametersContractProperties[]; +} + +/** Gateway details. */ +export interface GatewayContract extends ProxyResource { + /** Gateway location. */ + locationData?: ResourceLocationDataContract; + /** Gateway description */ + description?: string; +} + +/** Gateway hostname configuration details. */ +export interface GatewayHostnameConfigurationContract extends ProxyResource { + /** Hostname value. Supports valid domain name, partial or full wildcard */ + hostname?: string; + /** Identifier of Certificate entity that will be used for TLS connection establishment */ + certificateId?: string; + /** Determines whether gateway requests client certificate */ + negotiateClientCertificate?: boolean; + /** Specifies if TLS 1.0 is supported */ + tls10Enabled?: boolean; + /** Specifies if TLS 1.1 is supported */ + tls11Enabled?: boolean; + /** Specifies if HTTP/2.0 is supported */ + http2Enabled?: boolean; +} + +/** 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; + /** + * true if the group is one of the three system groups (Administrators, Developers, or Guests); otherwise false. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly builtIn?: boolean; + /** Group type. */ + typePropertiesType?: GroupType; + /** For external groups, this property contains the id of the group from the external identity provider, e.g. for Azure Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null. */ + externalId?: string; +} + +/** 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; + /** + * The name and SendRule connection string of the event hub for azureEventHub logger. + * Instrumentation key for applicationInsights logger. + */ + credentials?: { [propertyName: string]: string }; + /** Whether records are buffered in the logger before publishing. Default is assumed to be true. */ + isBuffered?: boolean; + /** Azure Resource Id of a log target (either Azure Event Hub resource or Azure Application Insights resource). */ + resourceId?: string; } -/** Parameters supplied to the Create Backend operation. */ -export interface BackendContractProperties extends BackendBaseParameters { - /** Runtime Url of the Backend. */ - url: string; - /** Backend communication protocol. */ - protocol: BackendProtocol; +/** 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; } -/** Parameters supplied to the Update Backend operation. */ -export interface BackendUpdateParameterProperties - extends BackendBaseParameters { - /** Runtime Url of the Backend. */ - url?: string; - /** Backend communication protocol. */ - protocol?: BackendProtocol; +/** 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; } -/** KeyVault contract details. */ -export interface KeyVaultContractProperties - extends KeyVaultContractCreateProperties { - /** Last time sync and refresh status of secret from key vault. */ - lastStatus?: KeyVaultLastAccessStatusContractProperties; +/** Notification details. */ +export interface NotificationContract extends ProxyResource { + /** Title of the Notification. */ + title?: string; + /** Description of the Notification. */ + description?: string; + /** Recipient Parameter values. */ + recipients?: RecipientsContractProperties; } -/** Properties of an API Management service resource description. */ -export interface ApiManagementServiceProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail: string; - /** Publisher name. */ - publisherName: string; +/** Recipient User details. */ +export interface RecipientUserContract extends ProxyResource { + /** API Management UserId subscribed to notification. */ + userId?: string; } -/** Properties of an API Management service resource description. */ -export interface ApiManagementServiceUpdateProperties - extends ApiManagementServiceBaseProperties { - /** Publisher email. */ - publisherEmail?: string; - /** Publisher name. */ - publisherName?: string; +/** Recipient Email details. */ +export interface RecipientEmailContract extends ProxyResource { + /** User Email subscribed to notification. */ + email?: 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. - */ - readonly developerPortalUrl?: string; - /** Custom hostname configuration of the API Management service. */ - hostnameConfigurations?: HostnameConfiguration[]; - /** - * Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard, Premium and Isolated SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publicIPAddresses?: string[]; - /** - * Private Static Load Balanced IP addresses of the API Management service in Primary region which is deployed in an Internal Virtual Network. Available only for Basic, Standard, Premium and Isolated SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateIPAddresses?: string[]; - /** Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the region. Supported only for Developer and Premium SKU being deployed in Virtual Network. */ - publicIpAddressId?: string; - /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ - publicNetworkAccess?: PublicNetworkAccess; - /** Virtual network configuration of the API Management service. */ - virtualNetworkConfiguration?: VirtualNetworkConfiguration; - /** Additional datacenter locations of the API Management service. */ - additionalLocations?: AdditionalLocation[]; - /** Custom properties of the API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.
Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.
Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.

You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them. Note: next ciphers can't be disabled since they are required by Azure CloudService internal components: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ - customProperties?: { [propertyName: string]: string }; - /** List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10. */ - certificates?: CertificateConfiguration[]; - /** Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway. */ - enableClientCertificate?: boolean; - /** Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region. */ - disableGateway?: boolean; - /** The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only. */ - virtualNetworkType?: VirtualNetworkType; - /** Control Plane Apis version constraint for the API Management service. */ - apiVersionConstraint?: ApiVersionConstraint; - /** Undelete Api Management Service if it was previously soft-deleted. If this flag is specified and set to True all other properties will be ignored. */ - restore?: boolean; - /** List of Private Endpoint Connections of this service. */ - privateEndpointConnections?: RemotePrivateEndpointConnectionWrapper[]; - /** - * Compute Platform Version running the service in this location. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly platformVersion?: PlatformVersion; - /** Publisher email. */ - publisherEmail: string; - /** Publisher name. */ - publisherName: 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; } -/** Parameter supplied to Update Api Management Service. */ -export interface ApiManagementServiceUpdateParameters extends ApimResource { - /** SKU properties of the API Management service. */ - sku?: ApiManagementServiceSkuProperties; - /** Managed service identity of the Api Management service. */ - identity?: ApiManagementServiceIdentity; - /** - * ETag of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly etag?: string; - /** A list of availability zones denoting where the resource needs to come from. */ - zones?: string[]; - /** Email address from which the notification will be sent. */ - notificationSenderEmail?: string; - /** - * The current provisioning state of the API Management service which can be one of the following: Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** - * The provisioning state of the API Management service, which is targeted by the long running operation started on the service. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly targetProvisioningState?: string; - /** - * Creation UTC date of the API Management service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdAtUtc?: Date; +/** Policy description details. */ +export interface PolicyDescriptionContract extends ProxyResource { /** - * Gateway URL of the API Management service. + * Policy description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gatewayUrl?: string; + readonly description?: string; /** - * Gateway URL of the API Management service in the Default Region. + * Binary OR value of the Snippet scope. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gatewayRegionalUrl?: 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; /** - * Publisher 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 portalUrl?: string; + readonly statusDetails?: string; /** - * Management API endpoint URL of the API Management service. + * Status of the portal's revision. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly managementApiUrl?: string; + readonly status?: PortalRevisionStatus; + /** Indicates if the portal's revision is public. */ + isCurrent?: boolean; /** - * SCM endpoint URL of the API Management service. + * Portal's revision creation date and time. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly scmUrl?: string; + readonly createdDateTime?: Date; /** - * DEveloper Portal endpoint URL of the API Management service. + * Last updated date and time. * 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 updatedDateTime?: Date; +} + +/** 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; /** - * Public Static Load Balanced IP addresses of the API Management service in Primary region. Available only for Basic, Standard, Premium and Isolated SKU. + * Subscription creation date. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicIPAddresses?: string[]; + readonly createdDate?: Date; /** - * 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. + * 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 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[]; + startDate?: Date; /** - * Compute Platform Version running the service in this location. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. + * */ - readonly platformVersion?: PlatformVersion; - /** Publisher email. */ - publisherEmail?: string; - /** Publisher name. */ - publisherName?: string; -} - -/** User profile. */ -export interface UserContractProperties extends UserEntityBaseParameters { - /** First name. */ - firstName?: string; - /** Last name. */ - lastName?: string; - /** Email address. */ - email?: string; + expirationDate?: Date; /** - * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * 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. * */ - registrationDate?: Date; + endDate?: Date; /** - * Collection of groups user is part of. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Upcoming subscription expiration notification date. 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; -} - -/** 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; + 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 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; +/** 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; } -/** 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 TenantSettingsContract extends ProxyResource { + /** Tenant settings */ + settings?: { [propertyName: string]: 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; +/** 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 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; +/** 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 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; +/** 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; } -/** 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[]; +} + +/** Wiki properties */ +export interface WikiContract extends ProxyResourceAutoGenerated { + /** Collection wiki documents included into this wiki. */ + documents?: WikiDocumentationContract[]; +} + +/** Markdown documentation details. */ +export interface DocumentationContract extends ProxyResourceAutoGenerated { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: string; } /** Defines headers for Api_getEntityTag operation. */ @@ -4496,6 +5008,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. */ @@ -4634,6 +5188,30 @@ export interface ApiTagDescriptionCreateOrUpdateHeaders { eTag?: string; } +/** Defines headers for ApiWiki_getEntityTag operation. */ +export interface ApiWikiGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** 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. */ @@ -4688,6 +5266,48 @@ export interface AuthorizationServerListSecretsHeaders { eTag?: string; } +/** Defines headers for AuthorizationProvider_get operation. */ +export interface AuthorizationProviderGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** 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 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 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 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 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 AuthorizationAccessPolicy_createOrUpdate operation. */ +export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for Backend_getEntityTag operation. */ export interface BackendGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5072,6 +5692,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. */ @@ -5174,6 +5824,60 @@ 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. */ + eTag?: string; +} + +/** Defines headers for GlobalSchema_get operation. */ +export interface GlobalSchemaGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for GlobalSchema_createOrUpdate operation. */ +export interface GlobalSchemaCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for TenantSettings_get operation. */ export interface TenantSettingsGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5270,6 +5974,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 */ @@ -5294,26 +6022,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 { @@ -5426,15 +6154,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" } @@ -5444,9 +6190,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; @@ -5606,17 +6352,41 @@ export enum KnownState { } /** - * Defines values for State. \ - * {@link KnownState} can be used interchangeably with State, + * Defines values for State. \ + * {@link KnownState} can be used interchangeably with State, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **proposed**: The issue is proposed. \ + * **open**: The issue is opened. \ + * **removed**: The issue was removed. \ + * **resolved**: The issue is now resolved. \ + * **closed**: The issue was closed. + */ +export type State = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **proposed**: The issue is proposed. \ - * **open**: The issue is opened. \ - * **removed**: The issue was removed. \ - * **resolved**: The issue is now resolved. \ - * **closed**: The issue was closed. + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type State = string; +export type CreatedByType = string; /** Known values of {@link ExportFormat} that the service accepts. */ export enum KnownExportFormat { @@ -5684,27 +6454,6 @@ 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. */ @@ -5765,6 +6514,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. */ @@ -6101,6 +6883,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. */ @@ -6209,30 +7009,6 @@ export enum KnownApimIdentityType { */ export type ApimIdentityType = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - /** Known values of {@link TemplateName} that the service accepts. */ export enum KnownTemplateName { /** ApplicationApprovedNotificationMessage */ @@ -6416,6 +7192,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. */ @@ -6464,6 +7279,24 @@ export enum KnownPrivateEndpointConnectionProvisioningState { */ export type PrivateEndpointConnectionProvisioningState = string; +/** Known values of {@link SchemaType} that the service accepts. */ +export enum KnownSchemaType { + /** XML schema type. */ + Xml = "xml", + /** Json schema type. */ + Json = "json" +} + +/** + * Defines values for SchemaType. \ + * {@link KnownSchemaType} can be used interchangeably with SchemaType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: XML schema type. \ + * **json**: Json schema type. + */ +export type SchemaType = string; + /** Known values of {@link SettingsTypeName} that the service accepts. */ export enum KnownSettingsTypeName { /** Public */ @@ -6594,6 +7427,12 @@ export type AsyncOperationStatus = | "InProgress" | "Succeeded" | "Failed"; +/** Defines values for AsyncResolverStatus. */ +export type AsyncResolverStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; /** Optional parameters. */ export interface ApiListByServiceOptionalParams @@ -6670,34 +7509,14 @@ export type ApiListByTagsResponse = TagResourceCollection; /** Optional parameters. */ export interface ApiListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include tags in the response. */ - tags?: string; - /** Include full ApiVersionSet resource in response */ - expandApiVersionSet?: boolean; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type ApiListByServiceNextResponse = ApiCollection; /** Optional parameters. */ export interface ApiListByTagsNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include not tagged APIs. */ - includeNotTaggedApis?: boolean; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByTagsNext operation. */ export type ApiListByTagsNextResponse = TagResourceCollection; @@ -6718,14 +7537,7 @@ export type ApiRevisionListByServiceResponse = ApiRevisionCollection; /** Optional parameters. */ export interface ApiRevisionListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection; @@ -6783,14 +7595,7 @@ export interface ApiReleaseDeleteOptionalParams /** Optional parameters. */ export interface ApiReleaseListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection; @@ -6851,16 +7656,7 @@ export interface ApiOperationDeleteOptionalParams /** Optional parameters. */ export interface ApiOperationListByApiNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include tags in the response. */ - tags?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByApiNext operation. */ export type ApiOperationListByApiNextResponse = OperationCollection; @@ -7072,36 +7868,36 @@ export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ export interface TagListByOperationNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByOperationNext operation. */ export type TagListByOperationNextResponse = TagCollection; /** Optional parameters. */ export interface TagListByApiNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + 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 |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| 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; @@ -7109,24 +7905,100 @@ export interface TagListByProductNextOptionalParams skip?: number; } -/** Contains response data for the listByProductNext operation. */ -export type TagListByProductNextResponse = TagCollection; +/** Contains response data for the listByApi operation. */ +export type GraphQLApiResolverListByApiResponse = ResolverCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GraphQLApiResolverGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GraphQLApiResolverListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolver operation. */ +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & + PolicyContract; /** Optional parameters. */ -export interface TagListByServiceNextOptionalParams +export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams 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; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the listByServiceNext operation. */ -export type TagListByServiceNextResponse = TagCollection; +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolverNext operation. */ +export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; /** Optional parameters. */ export interface ApiProductListByApisOptionalParams @@ -7144,14 +8016,7 @@ export type ApiProductListByApisResponse = ProductCollection; /** Optional parameters. */ export interface ApiProductListByApisNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByApisNext operation. */ export type ApiProductListByApisNextResponse = ProductCollection; @@ -7247,14 +8112,7 @@ export interface ApiSchemaDeleteOptionalParams /** Optional parameters. */ export interface ApiSchemaListByApiNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByApiNext operation. */ export type ApiSchemaListByApiNextResponse = SchemaCollection; @@ -7313,14 +8171,7 @@ export interface ApiDiagnosticDeleteOptionalParams /** Optional parameters. */ export interface ApiDiagnosticListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection; @@ -7381,16 +8232,7 @@ export interface ApiIssueDeleteOptionalParams /** Optional parameters. */ export interface ApiIssueListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Expand the comment attachments. */ - expandCommentsAttachments?: boolean; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type ApiIssueListByServiceNextResponse = IssueCollection; @@ -7441,14 +8283,7 @@ export interface ApiIssueCommentDeleteOptionalParams /** Optional parameters. */ export interface ApiIssueCommentListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type ApiIssueCommentListByServiceNextResponse = IssueCommentCollection; @@ -7499,14 +8334,7 @@ export interface ApiIssueAttachmentDeleteOptionalParams /** Optional parameters. */ export interface ApiIssueAttachmentListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type ApiIssueAttachmentListByServiceNextResponse = IssueAttachmentCollection; @@ -7557,14 +8385,7 @@ export interface ApiTagDescriptionDeleteOptionalParams /** Optional parameters. */ export interface ApiTagDescriptionListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type ApiTagDescriptionListByServiceNextResponse = TagDescriptionCollection; @@ -7587,20 +8408,60 @@ export type OperationListByTagsResponse = TagResourceCollection; /** Optional parameters. */ export interface OperationListByTagsNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include not tagged Operations. */ - includeNotTaggedOperations?: boolean; -} + 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 {} + +/** 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 {} @@ -7662,14 +8523,7 @@ export interface ApiVersionSetDeleteOptionalParams /** Optional parameters. */ export interface ApiVersionSetListByServiceNextOptionalParams - 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; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; @@ -7736,6 +8590,13 @@ export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecr /** 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; @@ -7745,8 +8606,134 @@ export interface AuthorizationServerListByServiceNextOptionalParams skip?: number; } +/** Contains response data for the listByService operation. */ +export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; + +/** Optional parameters. */ +export interface AuthorizationProviderGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & + AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationProviderCreateOrUpdateResponse = AuthorizationProviderCreateOrUpdateHeaders & + AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listByServiceNext operation. */ -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; +export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; + +/** Optional parameters. */ +export interface AuthorizationListByAuthorizationProviderOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByAuthorizationProvider operation. */ +export type AuthorizationListByAuthorizationProviderResponse = AuthorizationCollection; + +/** Optional parameters. */ +export interface AuthorizationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationGetResponse = AuthorizationGetHeaders & + AuthorizationContract; + +/** Optional parameters. */ +export interface AuthorizationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationCreateOrUpdateResponse = AuthorizationCreateOrUpdateHeaders & + AuthorizationContract; + +/** Optional parameters. */ +export interface AuthorizationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationListByAuthorizationProviderNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAuthorizationProviderNext operation. */ +export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; + +/** Optional parameters. */ +export interface AuthorizationLoginLinksPostOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the post operation. */ +export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & + AuthorizationLoginResponseContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByAuthorization operation. */ +export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & + AuthorizationAccessPolicyContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & + AuthorizationAccessPolicyContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAuthorizationNext operation. */ +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; /** Optional parameters. */ export interface BackendListByServiceOptionalParams @@ -7806,14 +8793,7 @@ export interface BackendReconnectOptionalParams /** Optional parameters. */ export interface BackendListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type BackendListByServiceNextResponse = BackendCollection; @@ -7866,13 +8846,8 @@ export interface CacheDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface CacheListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface CacheListByServiceNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type CacheListByServiceNextResponse = CacheCollection; @@ -7933,16 +8908,7 @@ export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & /** Optional parameters. */ export interface CertificateListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| subject | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| thumbprint | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| expirationDate | filter | ge, le, eq, ne, gt, lt | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** When set to true, the response contains only certificates entities which failed refresh. */ - isKeyVaultRefreshFailed?: boolean; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type CertificateListByServiceNextResponse = CertificateCollection; @@ -7979,6 +8945,8 @@ export interface ContentTypeCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Content type contract details. */ + parameters?: ContentTypeContract; } /** Contains response data for the createOrUpdate operation. */ @@ -8162,6 +9130,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 {} @@ -8278,14 +9258,7 @@ export interface DiagnosticDeleteOptionalParams /** Optional parameters. */ export interface DiagnosticListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type DiagnosticListByServiceNextResponse = DiagnosticCollection; @@ -8343,14 +9316,7 @@ export interface EmailTemplateDeleteOptionalParams /** Optional parameters. */ export interface EmailTemplateListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; @@ -8425,14 +9391,7 @@ export type GatewayGenerateTokenResponse = GatewayTokenContract; /** Optional parameters. */ export interface GatewayListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| region | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type GatewayListByServiceNextResponse = GatewayCollection; @@ -8483,14 +9442,7 @@ export interface GatewayHostnameConfigurationDeleteOptionalParams /** Optional parameters. */ export interface GatewayHostnameConfigurationListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| hostname | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection; @@ -8532,14 +9484,7 @@ export interface GatewayApiDeleteOptionalParams /** Optional parameters. */ export interface GatewayApiListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type GatewayApiListByServiceNextResponse = ApiCollection; @@ -8590,14 +9535,7 @@ export interface GatewayCertificateAuthorityDeleteOptionalParams /** Optional parameters. */ export interface GatewayCertificateAuthorityListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq, ne | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type GatewayCertificateAuthorityListByServiceNextResponse = GatewayCertificateAuthorityCollection; @@ -8653,14 +9591,7 @@ export interface GroupDeleteOptionalParams /** Optional parameters. */ export interface GroupListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type GroupListByServiceNextResponse = GroupCollection; @@ -8701,14 +9632,7 @@ export interface GroupUserDeleteOptionalParams /** Optional parameters. */ export interface GroupUserListNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type GroupUserListNextResponse = UserCollection; @@ -8795,14 +9719,7 @@ export type IssueGetResponse = IssueGetHeaders & IssueContract; /** Optional parameters. */ export interface IssueListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type IssueListByServiceNextResponse = IssueCollection; @@ -8858,14 +9775,7 @@ export interface LoggerDeleteOptionalParams /** Optional parameters. */ export interface LoggerListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| loggerType | filter | eq | |
| resourceId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type LoggerListByServiceNextResponse = LoggerCollection; @@ -8955,16 +9865,7 @@ export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & /** Optional parameters. */ export interface NamedValueListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** When set to true, the response contains only named value entities which failed refresh. */ - isKeyVaultRefreshFailed?: boolean; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type NamedValueListByServiceNextResponse = NamedValueCollection; @@ -9014,12 +9915,7 @@ export type NotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ export interface NotificationListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type NotificationListByServiceNextResponse = NotificationCollection; @@ -9140,14 +10036,7 @@ export type OpenIdConnectProviderListSecretsResponse = OpenIdConnectProviderList /** Optional parameters. */ export interface OpenIdConnectProviderListByServiceNextOptionalParams - 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; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection; @@ -9207,6 +10096,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 { @@ -9272,22 +10262,7 @@ export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & /** Optional parameters. */ export interface PortalRevisionListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** - * | Field | Supported operators | Supported functions | - * |-------------|------------------------|-----------------------------------| - * - * |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| - * |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| - * |isCurrent | eq, ne | | - * - */ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; @@ -9516,34 +10491,14 @@ export type ProductListByTagsResponse = TagResourceCollection; /** Optional parameters. */ export interface ProductListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Products which are part of a specific tag. */ - tags?: string; - /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ - expandGroups?: boolean; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ProductListByServiceNextResponse = ProductCollection; - -/** Optional parameters. */ -export interface ProductListByTagsNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include not tagged Products. */ - includeNotTaggedProducts?: boolean; -} +export type ProductListByServiceNextResponse = ProductCollection; + +/** Optional parameters. */ +export interface ProductListByTagsNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByTagsNext operation. */ export type ProductListByTagsNextResponse = TagResourceCollection; @@ -9584,14 +10539,7 @@ export interface ProductApiDeleteOptionalParams /** Optional parameters. */ export interface ProductApiListByProductNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByProductNext operation. */ export type ProductApiListByProductNextResponse = ApiCollection; @@ -9632,14 +10580,7 @@ export interface ProductGroupDeleteOptionalParams /** Optional parameters. */ export interface ProductGroupListByProductNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | |
| displayName | filter | eq, ne | |
| description | filter | eq, ne | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByProductNext operation. */ export type ProductGroupListByProductNextResponse = GroupCollection; @@ -9660,14 +10601,7 @@ export type ProductSubscriptionsListResponse = SubscriptionCollection; /** Optional parameters. */ export interface ProductSubscriptionsListNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ProductSubscriptionsListNextResponse = SubscriptionCollection; @@ -9711,6 +10645,57 @@ 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 {} + +/** 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 {} @@ -9863,99 +10848,107 @@ export type ReportsListByRequestResponse = RequestReportCollection; /** Optional parameters. */ export interface ReportsListByApiNextOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByApiNext operation. */ export type ReportsListByApiNextResponse = ReportCollection; /** Optional parameters. */ export interface ReportsListByUserNextOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByUserNext operation. */ export type ReportsListByUserNextResponse = ReportCollection; /** Optional parameters. */ export interface ReportsListByOperationNextOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByOperationNext operation. */ export type ReportsListByOperationNextResponse = ReportCollection; /** Optional parameters. */ export interface ReportsListByProductNextOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByProductNext operation. */ export type ReportsListByProductNextResponse = ReportCollection; /** Optional parameters. */ export interface ReportsListByGeoNextOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByGeoNext operation. */ export type ReportsListByGeoNextResponse = ReportCollection; /** Optional parameters. */ export interface ReportsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ export type ReportsListBySubscriptionNextResponse = ReportCollection; /** Optional parameters. */ export interface ReportsListByTimeNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTimeNext operation. */ +export type ReportsListByTimeNextResponse = ReportCollection; + +/** Optional parameters. */ +export interface GlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; } -/** Contains response data for the listByTimeNext operation. */ -export type ReportsListByTimeNextResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; + +/** Optional parameters. */ +export interface GlobalSchemaGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GlobalSchemaGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & + GlobalSchemaContract; + +/** Optional parameters. */ +export interface GlobalSchemaCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GlobalSchemaCreateOrUpdateResponse = GlobalSchemaCreateOrUpdateHeaders & + GlobalSchemaContract; + +/** Optional parameters. */ +export interface GlobalSchemaDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GlobalSchemaListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; /** Optional parameters. */ export interface TenantSettingsListByServiceOptionalParams @@ -9977,10 +10970,7 @@ export type TenantSettingsGetResponse = TenantSettingsGetHeaders & /** Optional parameters. */ export interface TenantSettingsListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** Not used */ - filter?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type TenantSettingsListByServiceNextResponse = TenantSettingsCollection; @@ -10086,14 +11076,7 @@ export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & /** Optional parameters. */ export interface SubscriptionListNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SubscriptionListNextResponse = SubscriptionCollection; @@ -10114,14 +11097,7 @@ export type TagResourceListByServiceResponse = TagResourceCollection; /** Optional parameters. */ export interface TagResourceListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| aid | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| isCurrent | filter | eq | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type TagResourceListByServiceNextResponse = TagResourceCollection; @@ -10185,10 +11161,7 @@ export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & /** Optional parameters. */ export interface TenantAccessListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** Not used */ - filter?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type TenantAccessListByServiceNextResponse = AccessInformationCollection; @@ -10318,16 +11291,7 @@ export type UserGetSharedAccessTokenResponse = UserTokenResult; /** Optional parameters. */ export interface UserListByServiceNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| groups | expand | | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Detailed Group in response. */ - expandGroups?: boolean; -} + extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ export type UserListByServiceNextResponse = UserCollection; @@ -10348,14 +11312,7 @@ export type UserGroupListResponse = GroupCollection; /** Optional parameters. */ export interface UserGroupListNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type UserGroupListNextResponse = GroupCollection; @@ -10384,14 +11341,7 @@ export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & /** Optional parameters. */ export interface UserSubscriptionListNextOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
|name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type UserSubscriptionListNextResponse = SubscriptionCollection; @@ -10417,6 +11367,58 @@ export interface UserConfirmationPasswordSendOptionalParams appType?: AppType; } +/** Optional parameters. */ +export interface DocumentationListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** 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 c67eb9aab5f1..006dcd715a1d 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,157 +2632,434 @@ export const OperationTagResourceContractProperties: coreClient.CompositeMapper } }; -export const ApiExportResult: coreClient.CompositeMapper = { - serializedName: "ApiExportResult", +export const WikiDocumentationContract: coreClient.CompositeMapper = { + serializedName: "WikiDocumentationContract", type: { name: "Composite", - className: "ApiExportResult", + className: "WikiDocumentationContract", + modelProperties: { + documentationId: { + serializedName: "documentationId", + xmlName: "documentationId", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceAutoGenerated: coreClient.CompositeMapper = { + serializedName: "ResourceAutoGenerated", + type: { + name: "Composite", + className: "ResourceAutoGenerated", modelProperties: { id: { serializedName: "id", + readOnly: true, xmlName: "id", type: { name: "String" } }, - exportResultFormat: { - serializedName: "format", - xmlName: "format", + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", type: { name: "String" } }, - value: { - serializedName: "value", - xmlName: "value", + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + xmlName: "systemData", type: { name: "Composite", - className: "ApiExportResultValue" + className: "SystemData" } } } } }; -export const ApiExportResultValue: coreClient.CompositeMapper = { - serializedName: "ApiExportResultValue", +export const SystemData: coreClient.CompositeMapper = { + serializedName: "SystemData", type: { name: "Composite", - className: "ApiExportResultValue", + className: "SystemData", modelProperties: { - link: { - serializedName: "link", - xmlName: "link", + createdBy: { + serializedName: "createdBy", + xmlName: "createdBy", type: { name: "String" } - } - } - } -}; - -export const ApiVersionSetCollection: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetCollection", - type: { - name: "Composite", - className: "ApiVersionSetCollection", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "ApiVersionSetContract", + }, + createdByType: { + serializedName: "createdByType", + xmlName: "createdByType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiVersionSetContract" - } - } + name: "String" } }, - count: { - serializedName: "count", - xmlName: "count", + createdAt: { + serializedName: "createdAt", + xmlName: "createdAt", type: { - name: "Number" + name: "DateTime" } }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", + lastModifiedBy: { + serializedName: "lastModifiedBy", + xmlName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + xmlName: "lastModifiedByType", type: { name: "String" } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + xmlName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } }; -export const ApiVersionSetEntityBase: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetEntityBase", +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + serializedName: "ErrorResponseAutoGenerated", type: { name: "Composite", - className: "ApiVersionSetEntityBase", + className: "ErrorResponseAutoGenerated", modelProperties: { - description: { - serializedName: "description", - xmlName: "description", - type: { - name: "String" - } - }, - versionQueryName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "versionQueryName", - xmlName: "versionQueryName", - type: { - name: "String" - } - }, - versionHeaderName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "versionHeaderName", - xmlName: "versionHeaderName", + error: { + serializedName: "error", + xmlName: "error", type: { - name: "String" + name: "Composite", + className: "ErrorDetail" } } } } }; -export const ApiVersionSetUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetUpdateParameters", +export const ErrorDetail: coreClient.CompositeMapper = { + serializedName: "ErrorDetail", type: { name: "Composite", - className: "ApiVersionSetUpdateParameters", + className: "ErrorDetail", modelProperties: { - description: { - serializedName: "properties.description", - xmlName: "properties.description", + code: { + serializedName: "code", + readOnly: true, + xmlName: "code", type: { name: "String" } }, - versionQueryName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.versionQueryName", - xmlName: "properties.versionQueryName", + message: { + serializedName: "message", + readOnly: true, + xmlName: "message", type: { name: "String" } }, - versionHeaderName: { + target: { + serializedName: "target", + readOnly: true, + xmlName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + xmlName: "details", + xmlElementName: "ErrorDetail", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + xmlName: "additionalInfo", + xmlElementName: "ErrorAdditionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", + type: { + name: "String" + } + }, + info: { + serializedName: "info", + readOnly: true, + xmlName: "info", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +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: { + name: "Composite", + className: "ApiExportResult", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String" + } + }, + exportResultFormat: { + serializedName: "format", + xmlName: "format", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + xmlName: "value", + type: { + name: "Composite", + className: "ApiExportResultValue" + } + } + } + } +}; + +export const ApiExportResultValue: coreClient.CompositeMapper = { + serializedName: "ApiExportResultValue", + type: { + name: "Composite", + className: "ApiExportResultValue", + modelProperties: { + link: { + serializedName: "link", + xmlName: "link", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetCollection: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetCollection", + type: { + name: "Composite", + className: "ApiVersionSetCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ApiVersionSetContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiVersionSetContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetEntityBase: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetEntityBase", + type: { + name: "Composite", + className: "ApiVersionSetEntityBase", + modelProperties: { + description: { + serializedName: "description", + xmlName: "description", + type: { + name: "String" + } + }, + versionQueryName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "versionQueryName", + xmlName: "versionQueryName", + type: { + name: "String" + } + }, + versionHeaderName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "versionHeaderName", + xmlName: "versionHeaderName", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetUpdateParameters: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetUpdateParameters", + type: { + name: "Composite", + className: "ApiVersionSetUpdateParameters", + modelProperties: { + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + versionQueryName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.versionQueryName", + xmlName: "properties.versionQueryName", + type: { + name: "String" + } + }, + versionHeaderName: { constraints: { MaxLength: 100, MinLength: 1 @@ -2908,22 +3302,245 @@ 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", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationProviderOAuth2Settings: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderOAuth2Settings", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2Settings", + modelProperties: { + redirectUrl: { + serializedName: "redirectUrl", + xmlName: "redirectUrl", + type: { + name: "String" + } + }, + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes" + } + } + } + } +}; + +export const AuthorizationProviderOAuth2GrantTypes: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderOAuth2GrantTypes", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2GrantTypes", + modelProperties: { + authorizationCode: { + serializedName: "authorizationCode", + xmlName: "authorizationCode", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + clientCredentials: { + serializedName: "clientCredentials", + xmlName: "clientCredentials", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const AuthorizationCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationCollection", + type: { + name: "Composite", + className: "AuthorizationCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "AuthorizationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationError: coreClient.CompositeMapper = { + serializedName: "AuthorizationError", + type: { + name: "Composite", + className: "AuthorizationError", + modelProperties: { + code: { + serializedName: "code", + xmlName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + xmlName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginRequestContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginRequestContract", + type: { + name: "Composite", + className: "AuthorizationLoginRequestContract", + modelProperties: { + postLoginRedirectUrl: { + serializedName: "postLoginRedirectUrl", + xmlName: "postLoginRedirectUrl", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginResponseContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginResponseContract", + type: { + name: "Composite", + className: "AuthorizationLoginResponseContract", + modelProperties: { + loginLink: { + serializedName: "loginLink", + xmlName: "loginLink", + type: { + name: "String" + } + } + } + } +}; + +export const 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" } } } @@ -4578,6 +5195,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 +5525,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", @@ -5176,94 +5836,42 @@ export const UserIdentityProperties: coreClient.CompositeMapper = { } }; -export const SystemData: coreClient.CompositeMapper = { - serializedName: "SystemData", +export const ApimResource: coreClient.CompositeMapper = { + serializedName: "ApimResource", type: { name: "Composite", - className: "SystemData", + className: "ApimResource", modelProperties: { - createdBy: { - serializedName: "createdBy", - xmlName: "createdBy", + id: { + serializedName: "id", + readOnly: true, + xmlName: "id", type: { name: "String" } }, - createdByType: { - serializedName: "createdByType", - xmlName: "createdByType", + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", type: { name: "String" } }, - createdAt: { - serializedName: "createdAt", - xmlName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - xmlName: "lastModifiedBy", + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", type: { name: "String" } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - xmlName: "lastModifiedByType", + tags: { + serializedName: "tags", + xmlName: "tags", type: { - name: "String" - } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - xmlName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ApimResource: coreClient.CompositeMapper = { - serializedName: "ApimResource", - type: { - name: "Composite", - className: "ApimResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - xmlName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Dictionary", + value: { type: { name: "String" } } } } } @@ -6192,6 +6800,16 @@ export const IdentityProviderBaseParameters: coreClient.CompositeMapper = { type: { name: "String" } + }, + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "clientLibrary", + xmlName: "clientLibrary", + type: { + name: "String" + } } } } @@ -6280,6 +6898,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 +7544,20 @@ export const OpenidConnectProviderUpdateContract: coreClient.CompositeMapper = { type: { name: "String" } + }, + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean" + } + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean" + } } } } @@ -7071,30 +7713,35 @@ export const PolicyDescriptionCollection: coreClient.CompositeMapper = { } }; -export const PortalRevisionCollection: coreClient.CompositeMapper = { - serializedName: "PortalRevisionCollection", +export const PolicyFragmentCollection: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentCollection", type: { name: "Composite", - className: "PortalRevisionCollection", + className: "PolicyFragmentCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "PortalRevisionContract", + xmlElementName: "PolicyFragmentContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PortalRevisionContract" + className: "PolicyFragmentContract" } } } }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { name: "String" @@ -7104,22 +7751,22 @@ export const PortalRevisionCollection: coreClient.CompositeMapper = { } }; -export const PortalSettingsCollection: coreClient.CompositeMapper = { - serializedName: "PortalSettingsCollection", +export const ResourceCollection: coreClient.CompositeMapper = { + serializedName: "ResourceCollection", type: { name: "Composite", - className: "PortalSettingsCollection", + className: "ResourceCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "PortalSettingsContract", + xmlElementName: "ResourceCollectionValueItem", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PortalSettingsContract" + className: "ResourceCollectionValueItem" } } } @@ -7130,37 +7777,60 @@ export const PortalSettingsCollection: coreClient.CompositeMapper = { type: { name: "Number" } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } } } } }; -export const SubscriptionsDelegationSettingsProperties: coreClient.CompositeMapper = { - serializedName: "SubscriptionsDelegationSettingsProperties", +export const PortalConfigCollection: coreClient.CompositeMapper = { + serializedName: "PortalConfigCollection", type: { name: "Composite", - className: "SubscriptionsDelegationSettingsProperties", + className: "PortalConfigCollection", modelProperties: { - enabled: { - serializedName: "enabled", - xmlName: "enabled", + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PortalConfigContract", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PortalConfigContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" } } } } }; -export const RegistrationDelegationSettingsProperties: coreClient.CompositeMapper = { - serializedName: "RegistrationDelegationSettingsProperties", +export const PortalConfigPropertiesSignin: coreClient.CompositeMapper = { + serializedName: "PortalConfigPropertiesSignin", type: { name: "Composite", - className: "RegistrationDelegationSettingsProperties", + className: "PortalConfigPropertiesSignin", modelProperties: { - enabled: { - serializedName: "enabled", - xmlName: "enabled", + require: { + defaultValue: false, + serializedName: "require", + xmlName: "require", type: { name: "Boolean" } @@ -7169,11 +7839,29 @@ export const RegistrationDelegationSettingsProperties: coreClient.CompositeMappe } }; -export const TermsOfServiceProperties: coreClient.CompositeMapper = { - serializedName: "TermsOfServiceProperties", +export const PortalConfigPropertiesSignup: coreClient.CompositeMapper = { + serializedName: "PortalConfigPropertiesSignup", type: { name: "Composite", - className: "TermsOfServiceProperties", + 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", @@ -7182,16 +7870,10 @@ export const TermsOfServiceProperties: coreClient.CompositeMapper = { name: "String" } }, - enabled: { - serializedName: "enabled", - xmlName: "enabled", - type: { - name: "Boolean" - } - }, - consentRequired: { - serializedName: "consentRequired", - xmlName: "consentRequired", + requireConsent: { + defaultValue: false, + serializedName: "requireConsent", + xmlName: "requireConsent", type: { name: "Boolean" } @@ -7200,12 +7882,35 @@ export const TermsOfServiceProperties: coreClient.CompositeMapper = { } }; -export const PortalSettingValidationKeyContract: coreClient.CompositeMapper = { - serializedName: "PortalSettingValidationKeyContract", +export const PortalConfigDelegationProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigDelegationProperties", type: { name: "Composite", - className: "PortalSettingValidationKeyContract", + 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", @@ -7217,22 +7922,21 @@ export const PortalSettingValidationKeyContract: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnectionListResult", +export const PortalConfigCorsProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigCorsProperties", type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "PortalConfigCorsProperties", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "PrivateEndpointConnection", + allowedOrigins: { + serializedName: "allowedOrigins", + xmlName: "allowedOrigins", + xmlElementName: "PortalConfigCorsPropertiesAllowedOriginsItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateEndpointConnection" + name: "String" } } } @@ -7241,93 +7945,307 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const PrivateEndpoint: coreClient.CompositeMapper = { - serializedName: "PrivateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionRequest: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnectionRequest", +export const PortalConfigCspProperties: coreClient.CompositeMapper = { + serializedName: "PortalConfigCspProperties", type: { name: "Composite", - className: "PrivateEndpointConnectionRequest", + className: "PortalConfigCspProperties", modelProperties: { - id: { - serializedName: "id", - xmlName: "id", + mode: { + defaultValue: "disabled", + serializedName: "mode", + xmlName: "mode", type: { name: "String" } }, - properties: { - serializedName: "properties", - xmlName: "properties", + reportUri: { + serializedName: "reportUri", + xmlName: "reportUri", + xmlElementName: "PortalConfigCspPropertiesReportUriItem", type: { - name: "Composite", - className: "PrivateEndpointConnectionRequestProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const PrivateEndpointConnectionRequestProperties: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnectionRequestProperties", - type: { - name: "Composite", - className: "PrivateEndpointConnectionRequestProperties", - modelProperties: { - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", - xmlName: "privateLinkServiceConnectionState", + }, + allowedSources: { + serializedName: "allowedSources", + xmlName: "allowedSources", + xmlElementName: "PortalConfigCspPropertiesAllowedSourcesItem", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", +export const PortalRevisionCollection: coreClient.CompositeMapper = { + serializedName: "PortalRevisionCollection", type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "PortalRevisionCollection", modelProperties: { value: { serializedName: "value", + readOnly: true, xmlName: "value", - xmlElementName: "PrivateLinkResource", + xmlElementName: "PortalRevisionContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "PortalRevisionContract" } } } - } - } - } -}; - -export const ProductUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ProductUpdateParameters", + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PortalSettingsCollection: coreClient.CompositeMapper = { + serializedName: "PortalSettingsCollection", + type: { + name: "Composite", + className: "PortalSettingsCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PortalSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PortalSettingsContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + } + } + } +}; + +export const SubscriptionsDelegationSettingsProperties: coreClient.CompositeMapper = { + serializedName: "SubscriptionsDelegationSettingsProperties", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const RegistrationDelegationSettingsProperties: coreClient.CompositeMapper = { + serializedName: "RegistrationDelegationSettingsProperties", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const TermsOfServiceProperties: coreClient.CompositeMapper = { + serializedName: "TermsOfServiceProperties", + type: { + name: "Composite", + className: "TermsOfServiceProperties", + modelProperties: { + text: { + serializedName: "text", + xmlName: "text", + type: { + name: "String" + } + }, + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean" + } + }, + consentRequired: { + serializedName: "consentRequired", + xmlName: "consentRequired", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PortalSettingValidationKeyContract: coreClient.CompositeMapper = { + serializedName: "PortalSettingValidationKeyContract", + type: { + name: "Composite", + className: "PortalSettingValidationKeyContract", + modelProperties: { + validationKey: { + serializedName: "validationKey", + xmlName: "validationKey", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PrivateEndpointConnection", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + } + } + } +}; + +export const PrivateEndpoint: coreClient.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + xmlName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionRequest: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnectionRequest", + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequest", + modelProperties: { + id: { + serializedName: "id", + xmlName: "id", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + xmlName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestProperties" + } + } + } + } +}; + +export const PrivateEndpointConnectionRequestProperties: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnectionRequestProperties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionRequestProperties", + modelProperties: { + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + xmlName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + } + } + } +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "PrivateLinkResource", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + } + } + } +}; + +export const ProductUpdateParameters: coreClient.CompositeMapper = { + serializedName: "ProductUpdateParameters", type: { name: "Composite", className: "ProductUpdateParameters", @@ -8044,27 +8962,34 @@ export const RequestReportRecordContract: coreClient.CompositeMapper = { } }; -export const TenantSettingsCollection: coreClient.CompositeMapper = { - serializedName: "TenantSettingsCollection", +export const GlobalSchemaCollection: coreClient.CompositeMapper = { + serializedName: "GlobalSchemaCollection", type: { name: "Composite", - className: "TenantSettingsCollection", + className: "GlobalSchemaCollection", modelProperties: { value: { serializedName: "value", readOnly: true, xmlName: "value", - xmlElementName: "TenantSettingsContract", + xmlElementName: "GlobalSchemaContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TenantSettingsContract" + className: "GlobalSchemaContract" } } } }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, nextLink: { serializedName: "nextLink", readOnly: true, @@ -8077,15 +9002,48 @@ export const TenantSettingsCollection: coreClient.CompositeMapper = { } }; -export const ApiManagementSkusResult: coreClient.CompositeMapper = { - serializedName: "ApiManagementSkusResult", +export const TenantSettingsCollection: coreClient.CompositeMapper = { + serializedName: "TenantSettingsCollection", type: { name: "Composite", - className: "ApiManagementSkusResult", + className: "TenantSettingsCollection", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, + xmlName: "value", + xmlElementName: "TenantSettingsContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TenantSettingsContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementSkusResult: coreClient.CompositeMapper = { + serializedName: "ApiManagementSkusResult", + type: { + name: "Composite", + className: "ApiManagementSkusResult", + modelProperties: { + value: { + serializedName: "value", + required: true, xmlName: "value", xmlElementName: "ApiManagementSku", type: { @@ -9250,6 +10208,63 @@ export const UserTokenResult: coreClient.CompositeMapper = { } }; +export const DocumentationCollection: coreClient.CompositeMapper = { + serializedName: "DocumentationCollection", + type: { + name: "Composite", + className: "DocumentationCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "DocumentationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DocumentationContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationUpdateContract: coreClient.CompositeMapper = { + serializedName: "DocumentationUpdateContract", + type: { + name: "Composite", + className: "DocumentationUpdateContract", + modelProperties: { + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", + type: { + name: "String" + } + } + } + } +}; + export const ApiRevisionInfoContract: coreClient.CompositeMapper = { serializedName: "ApiRevisionInfoContract", type: { @@ -9319,6 +10334,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: { @@ -9509,232 +10555,173 @@ export const ApiTagResourceContractProperties: coreClient.CompositeMapper = { } }; -export const ApiContract: coreClient.CompositeMapper = { - serializedName: "ApiContract", +export const ProxyResource: coreClient.CompositeMapper = { + serializedName: "ProxyResource", type: { name: "Composite", - className: "ApiContract", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", modelProperties: { ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - xmlName: "properties.authenticationSettings", + privateEndpoint: { + serializedName: "properties.privateEndpoint", + xmlName: "properties.privateEndpoint", type: { name: "Composite", - className: "AuthenticationSettingsContract" + className: "PrivateEndpoint" } }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - xmlName: "properties.subscriptionKeyParameterNames", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + xmlName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } - }, - apiType: { - serializedName: "properties.type", - xmlName: "properties.type", - type: { - name: "String" + className: "PrivateLinkServiceConnectionState" } }, - apiRevision: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.apiRevision", - xmlName: "properties.apiRevision", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { name: "String" } - }, - apiVersion: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.apiVersion", - xmlName: "properties.apiVersion", + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + groupId: { + serializedName: "properties.groupId", + readOnly: true, + xmlName: "properties.groupId", type: { name: "String" } }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", - type: { - name: "Boolean" - } - }, - isOnline: { - serializedName: "properties.isOnline", + requiredMembers: { + serializedName: "properties.requiredMembers", readOnly: true, - xmlName: "properties.isOnline", + xmlName: "properties.requiredMembers", + xmlElementName: "PrivateLinkResourcePropertiesRequiredMembersItem", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - apiRevisionDescription: { - constraints: { - MaxLength: 256 - }, - serializedName: "properties.apiRevisionDescription", - xmlName: "properties.apiRevisionDescription", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + xmlName: "properties.requiredZoneNames", + xmlElementName: "PrivateLinkResourcePropertiesRequiredZoneNamesItem", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - apiVersionDescription: { + } + } + } +}; + +export const OperationContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationContractProperties", + type: { + name: "Composite", + className: "OperationContractProperties", + modelProperties: { + ...OperationEntityBaseContract.type.modelProperties, + displayName: { constraints: { - MaxLength: 256 + MaxLength: 300, + MinLength: 1 }, - serializedName: "properties.apiVersionDescription", - xmlName: "properties.apiVersionDescription", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", - xmlName: "properties.apiVersionSetId", + method: { + serializedName: "method", + required: true, + xmlName: "method", type: { name: "String" } }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", - type: { - name: "Boolean" - } - }, - termsOfServiceUrl: { - serializedName: "properties.termsOfServiceUrl", - xmlName: "properties.termsOfServiceUrl", - type: { - name: "String" - } - }, - contact: { - serializedName: "properties.contact", - xmlName: "properties.contact", - type: { - name: "Composite", - className: "ApiContactInformation" - } - }, - license: { - serializedName: "properties.license", - xmlName: "properties.license", - type: { - name: "Composite", - className: "ApiLicenseInformation" - } - }, - sourceApiId: { - serializedName: "properties.sourceApiId", - xmlName: "properties.sourceApiId", - type: { - name: "String" - } - }, - displayName: { + urlTemplate: { constraints: { - MaxLength: 300, + MaxLength: 1000, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } - }, - serviceUrl: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.serviceUrl", - xmlName: "properties.serviceUrl", - type: { - name: "String" - } - }, - path: { - constraints: { - MaxLength: 400 - }, - serializedName: "properties.path", - xmlName: "properties.path", + serializedName: "urlTemplate", + required: true, + xmlName: "urlTemplate", type: { name: "String" } - }, - protocols: { - serializedName: "properties.protocols", - xmlName: "properties.protocols", - xmlElementName: "Protocol", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", - xmlName: "properties.apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } } } } }; -export const ApiReleaseContract: coreClient.CompositeMapper = { - serializedName: "ApiReleaseContract", +export const OperationUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "OperationUpdateContractProperties", type: { name: "Composite", - className: "ApiReleaseContract", + className: "OperationUpdateContractProperties", modelProperties: { - ...Resource.type.modelProperties, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + ...OperationEntityBaseContract.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", - type: { - name: "DateTime" - } - }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", + method: { + serializedName: "method", + xmlName: "method", type: { - name: "DateTime" + name: "String" } }, - notes: { - serializedName: "properties.notes", - xmlName: "properties.notes", + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "urlTemplate", + xmlName: "urlTemplate", type: { name: "String" } @@ -9743,91 +10730,21 @@ export const ApiReleaseContract: coreClient.CompositeMapper = { } }; -export const OperationContract: coreClient.CompositeMapper = { - serializedName: "OperationContract", +export const ProductContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductContractProperties", type: { name: "Composite", - className: "OperationContract", + className: "ProductContractProperties", modelProperties: { - ...Resource.type.modelProperties, - templateParameters: { - serializedName: "properties.templateParameters", - xmlName: "properties.templateParameters", - xmlElementName: "ParameterContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ParameterContract" - } - } - } - }, - description: { - constraints: { - MaxLength: 1000 - }, - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - request: { - serializedName: "properties.request", - xmlName: "properties.request", - type: { - name: "Composite", - className: "RequestContract" - } - }, - responses: { - serializedName: "properties.responses", - xmlName: "properties.responses", - xmlElementName: "ResponseContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResponseContract" - } - } - } - }, - policies: { - serializedName: "properties.policies", - xmlName: "properties.policies", - type: { - name: "String" - } - }, + ...ProductEntityBaseParameters.type.modelProperties, displayName: { constraints: { MaxLength: 300, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } - }, - method: { - serializedName: "properties.method", - xmlName: "properties.method", - type: { - name: "String" - } - }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "properties.urlTemplate", - xmlName: "properties.urlTemplate", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } @@ -9836,24 +10753,28 @@ export const OperationContract: coreClient.CompositeMapper = { } }; -export const PolicyContract: coreClient.CompositeMapper = { - serializedName: "PolicyContract", +export const ProductTagResourceContractProperties: coreClient.CompositeMapper = { + serializedName: "ProductTagResourceContractProperties", type: { name: "Composite", - className: "PolicyContract", + className: "ProductTagResourceContractProperties", modelProperties: { - ...Resource.type.modelProperties, - value: { - serializedName: "properties.value", - xmlName: "properties.value", + ...ProductEntityBaseParameters.type.modelProperties, + id: { + serializedName: "id", + xmlName: "id", type: { name: "String" } }, - format: { - defaultValue: "xml", - serializedName: "properties.format", - xmlName: "properties.format", + name: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "name", + required: true, + xmlName: "name", type: { name: "String" } @@ -9862,20 +10783,20 @@ export const PolicyContract: coreClient.CompositeMapper = { } }; -export const TagContract: coreClient.CompositeMapper = { - serializedName: "TagContract", +export const ProductUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ProductUpdateProperties", type: { name: "Composite", - className: "TagContract", + className: "ProductUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, + ...ProductEntityBaseParameters.type.modelProperties, displayName: { constraints: { - MaxLength: 160, + MaxLength: 300, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } @@ -9884,66 +10805,94 @@ export const TagContract: coreClient.CompositeMapper = { } }; -export const ProductContract: coreClient.CompositeMapper = { - serializedName: "ProductContract", +export const IssueContractProperties: coreClient.CompositeMapper = { + serializedName: "IssueContractProperties", type: { name: "Composite", - className: "ProductContract", + className: "IssueContractProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { - constraints: { - MaxLength: 1000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + ...IssueContractBaseProperties.type.modelProperties, + title: { + serializedName: "title", + required: true, + xmlName: "title", type: { name: "String" } }, - terms: { - serializedName: "properties.terms", - xmlName: "properties.terms", + description: { + serializedName: "description", + required: true, + xmlName: "description", type: { name: "String" } }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - xmlName: "properties.subscriptionRequired", + userId: { + serializedName: "userId", + required: true, + xmlName: "userId", type: { - name: "Boolean" + name: "String" } - }, - approvalRequired: { - serializedName: "properties.approvalRequired", - xmlName: "properties.approvalRequired", + } + } + } +}; + +export const IssueUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "IssueUpdateContractProperties", + type: { + name: "Composite", + className: "IssueUpdateContractProperties", + modelProperties: { + ...IssueContractBaseProperties.type.modelProperties, + title: { + serializedName: "title", + xmlName: "title", type: { - name: "Boolean" + name: "String" } }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", - xmlName: "properties.subscriptionsLimit", + description: { + serializedName: "description", + xmlName: "description", type: { - name: "Number" + name: "String" } }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + userId: { + serializedName: "userId", + xmlName: "userId", type: { - name: "Enum", - allowedValues: ["notPublished", "published"] + name: "String" + } + } + } + } +}; + +export const TagDescriptionContractProperties: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContractProperties", + type: { + name: "Composite", + className: "TagDescriptionContractProperties", + modelProperties: { + ...TagDescriptionBaseProperties.type.modelProperties, + tagId: { + serializedName: "tagId", + xmlName: "tagId", + type: { + name: "String" } }, displayName: { constraints: { - MaxLength: 300, + MaxLength: 160, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } @@ -9952,116 +10901,151 @@ export const ProductContract: coreClient.CompositeMapper = { } }; -export const SchemaContract: coreClient.CompositeMapper = { - serializedName: "SchemaContract", +export const ProxyResourceAutoGenerated: coreClient.CompositeMapper = { + serializedName: "ProxyResourceAutoGenerated", type: { name: "Composite", - className: "SchemaContract", + className: "ProxyResourceAutoGenerated", modelProperties: { - ...Resource.type.modelProperties, - contentType: { - serializedName: "properties.contentType", - xmlName: "properties.contentType", + ...ResourceAutoGenerated.type.modelProperties + } + } +}; + +export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContractProperties", + type: { + name: "Composite", + className: "ApiVersionSetContractProperties", + modelProperties: { + ...ApiVersionSetEntityBase.type.modelProperties, + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } }, - value: { - serializedName: "properties.document.value", - xmlName: "properties.document.value", + versioningScheme: { + serializedName: "versioningScheme", + required: true, + xmlName: "versioningScheme", type: { name: "String" } - }, - definitions: { - serializedName: "properties.document.definitions", - xmlName: "properties.document.definitions", + } + } + } +}; + +export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetUpdateParametersProperties", + type: { + name: "Composite", + className: "ApiVersionSetUpdateParametersProperties", + modelProperties: { + ...ApiVersionSetEntityBase.type.modelProperties, + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - components: { - serializedName: "properties.document.components", - xmlName: "properties.document.components", + versioningScheme: { + serializedName: "versioningScheme", + xmlName: "versioningScheme", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } } } } }; -export const DiagnosticContract: coreClient.CompositeMapper = { - serializedName: "DiagnosticContract", +export const AuthorizationServerContractProperties: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContractProperties", type: { name: "Composite", - className: "DiagnosticContract", + className: "AuthorizationServerContractProperties", 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", + required: true, + xmlName: "displayName", type: { name: "String" } }, - sampling: { - serializedName: "properties.sampling", - xmlName: "properties.sampling", + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", type: { - name: "Composite", - className: "SamplingSettings" + name: "Boolean" } }, - frontend: { - serializedName: "properties.frontend", - xmlName: "properties.frontend", + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", type: { - name: "Composite", - className: "PipelineDiagnosticSettings" + name: "Boolean" } }, - backend: { - serializedName: "properties.backend", - xmlName: "properties.backend", + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + required: true, + xmlName: "clientRegistrationEndpoint", type: { - name: "Composite", - className: "PipelineDiagnosticSettings" + name: "String" } }, - logClientIp: { - serializedName: "properties.logClientIp", - xmlName: "properties.logClientIp", + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + required: true, + xmlName: "authorizationEndpoint", type: { - name: "Boolean" + name: "String" } }, - httpCorrelationProtocol: { - serializedName: "properties.httpCorrelationProtocol", - xmlName: "properties.httpCorrelationProtocol", + grantTypes: { + serializedName: "grantTypes", + required: true, + xmlName: "grantTypes", + xmlElementName: "GrantType", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - verbosity: { - serializedName: "properties.verbosity", - xmlName: "properties.verbosity", + clientId: { + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { name: "String" } }, - operationNameFormat: { - serializedName: "properties.operationNameFormat", - xmlName: "properties.operationNameFormat", + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { name: "String" } @@ -10070,51 +11054,75 @@ export const DiagnosticContract: coreClient.CompositeMapper = { } }; -export const IssueContract: coreClient.CompositeMapper = { - serializedName: "IssueContract", +export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContractProperties", type: { name: "Composite", - className: "IssueContract", + className: "AuthorizationServerUpdateContractProperties", modelProperties: { - ...Resource.type.modelProperties, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", + ...AuthorizationServerContractBaseProperties.type.modelProperties, + displayName: { + constraints: { + MaxLength: 50, + MinLength: 1 + }, + serializedName: "displayName", + xmlName: "displayName", type: { - name: "DateTime" + name: "String" } }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + useInTestConsole: { + serializedName: "useInTestConsole", + xmlName: "useInTestConsole", type: { - name: "String" + name: "Boolean" } }, - apiId: { - serializedName: "properties.apiId", - xmlName: "properties.apiId", + useInApiDocumentation: { + serializedName: "useInApiDocumentation", + xmlName: "useInApiDocumentation", + type: { + name: "Boolean" + } + }, + clientRegistrationEndpoint: { + serializedName: "clientRegistrationEndpoint", + xmlName: "clientRegistrationEndpoint", type: { name: "String" } }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + authorizationEndpoint: { + serializedName: "authorizationEndpoint", + xmlName: "authorizationEndpoint", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + grantTypes: { + serializedName: "grantTypes", + xmlName: "grantTypes", + xmlElementName: "GrantType", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientId: { + serializedName: "clientId", + xmlName: "clientId", type: { name: "String" } }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", type: { name: "String" } @@ -10123,30 +11131,29 @@ export const IssueContract: coreClient.CompositeMapper = { } }; -export const IssueCommentContract: coreClient.CompositeMapper = { - serializedName: "IssueCommentContract", +export const BackendContractProperties: coreClient.CompositeMapper = { + serializedName: "BackendContractProperties", type: { name: "Composite", - className: "IssueCommentContract", + className: "BackendContractProperties", modelProperties: { - ...Resource.type.modelProperties, - text: { - serializedName: "properties.text", - xmlName: "properties.text", + ...BackendBaseParameters.type.modelProperties, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "url", + required: true, + xmlName: "url", type: { name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", - xmlName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + protocol: { + serializedName: "protocol", + required: true, + xmlName: "protocol", type: { name: "String" } @@ -10155,30 +11162,27 @@ export const IssueCommentContract: coreClient.CompositeMapper = { } }; -export const IssueAttachmentContract: coreClient.CompositeMapper = { - serializedName: "IssueAttachmentContract", +export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "BackendUpdateParameterProperties", type: { name: "Composite", - className: "IssueAttachmentContract", + className: "BackendUpdateParameterProperties", modelProperties: { - ...Resource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } - }, - contentFormat: { - serializedName: "properties.contentFormat", - xmlName: "properties.contentFormat", + ...BackendBaseParameters.type.modelProperties, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "url", + xmlName: "url", type: { name: "String" } }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", + protocol: { + serializedName: "protocol", + xmlName: "protocol", type: { name: "String" } @@ -10187,51 +11191,50 @@ export const IssueAttachmentContract: coreClient.CompositeMapper = { } }; -export const TagDescriptionContract: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContract", +export const KeyVaultContractProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultContractProperties", type: { name: "Composite", - className: "TagDescriptionContract", + className: "KeyVaultContractProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + ...KeyVaultContractCreateProperties.type.modelProperties, + lastStatus: { + serializedName: "lastStatus", + xmlName: "lastStatus", type: { - name: "String" + name: "Composite", + className: "KeyVaultLastAccessStatusContractProperties" } - }, - externalDocsUrl: { + } + } + } +}; + +export const ApiManagementServiceProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceProperties", + type: { + name: "Composite", + className: "ApiManagementServiceProperties", + modelProperties: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { constraints: { - MaxLength: 2000 + MaxLength: 100 }, - serializedName: "properties.externalDocsUrl", - xmlName: "properties.externalDocsUrl", - type: { - name: "String" - } - }, - externalDocsDescription: { - serializedName: "properties.externalDocsDescription", - xmlName: "properties.externalDocsDescription", - type: { - name: "String" - } - }, - tagId: { - serializedName: "properties.tagId", - xmlName: "properties.tagId", + serializedName: "publisherEmail", + required: true, + xmlName: "publisherEmail", type: { name: "String" } }, - displayName: { + publisherName: { constraints: { - MaxLength: 160, - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "publisherName", + required: true, + xmlName: "publisherName", type: { name: "String" } @@ -10240,56 +11243,29 @@ export const TagDescriptionContract: coreClient.CompositeMapper = { } }; -export const ApiVersionSetContract: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContract", +export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceUpdateProperties", type: { name: "Composite", - className: "ApiVersionSetContract", + className: "ApiManagementServiceUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - versionQueryName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "properties.versionQueryName", - xmlName: "properties.versionQueryName", - type: { - name: "String" - } - }, - versionHeaderName: { + ...ApiManagementServiceBaseProperties.type.modelProperties, + publisherEmail: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.versionHeaderName", - xmlName: "properties.versionHeaderName", + serializedName: "publisherEmail", + xmlName: "publisherEmail", type: { name: "String" } }, - displayName: { + publisherName: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } - }, - versioningScheme: { - serializedName: "properties.versioningScheme", - xmlName: "properties.versioningScheme", + serializedName: "publisherName", + xmlName: "publisherName", type: { name: "String" } @@ -10298,95 +11274,57 @@ export const ApiVersionSetContract: coreClient.CompositeMapper = { } }; -export const AuthorizationServerContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContract", +export const ApiManagementServiceResource: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceResource", type: { name: "Composite", - className: "AuthorizationServerContract", + className: "ApiManagementServiceResource", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", type: { - name: "String" + name: "Composite", + className: "ApiManagementServiceSkuProperties" } }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } - } - }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", - xmlName: "properties.clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", + identity: { + serializedName: "identity", + xmlName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ApiManagementServiceIdentity" } }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + systemData: { + serializedName: "systemData", + xmlName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } + name: "Composite", + className: "SystemData" } }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + location: { + serializedName: "location", + required: true, + xmlName: "location", type: { name: "String" } }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", - type: { - name: "Boolean" - } - }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", type: { name: "String" } }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceResourceZonesItem", type: { name: "Sequence", element: { @@ -10396,117 +11334,108 @@ export const AuthorizationServerContract: coreClient.CompositeMapper = { } } }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", + notificationSenderEmail: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", type: { name: "String" } }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { name: "String" } }, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", type: { name: "String" } }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", + type: { + name: "DateTime" + } + }, + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", type: { name: "String" } }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", type: { name: "String" } }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", type: { name: "String" } }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", 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", + }, + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", + readOnly: true, + xmlName: "properties.developerPortalUrl", type: { name: "String" } }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", - xmlName: "properties.authorizationMethods", - xmlElementName: "AuthorizationMethod", + 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: { @@ -10516,97 +11445,100 @@ export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { } } }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - xmlName: "properties.tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "TokenBodyParameterContract" + name: "String" } } } }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - xmlName: "properties.tokenEndpoint", + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", type: { name: "String" } }, - supportState: { - serializedName: "properties.supportState", - xmlName: "properties.supportState", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", type: { - name: "Boolean" + name: "String" } }, - defaultScope: { - serializedName: "properties.defaultScope", - xmlName: "properties.defaultScope", + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", type: { - name: "String" + name: "Composite", + className: "VirtualNetworkConfiguration" } }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - xmlName: "properties.bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", type: { name: "Sequence", element: { type: { - name: "String" - } + name: "Composite", + className: "AdditionalLocation" + } } } }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - xmlName: "properties.resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - xmlName: "properties.resourceOwnerPassword", + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } } }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - xmlName: "properties.clientRegistrationEndpoint", + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", type: { - name: "String" + name: "Boolean" } }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", - xmlName: "properties.authorizationEndpoint", + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", type: { name: "String" } }, - grantTypes: { - serializedName: "properties.grantTypes", - xmlName: "properties.grantTypes", - xmlElementName: "GrantType", + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", type: { name: "Sequence", element: { @@ -10616,110 +11548,78 @@ export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { } } }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", - type: { - name: "String" - } - }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", - 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", - type: { - name: "String" - } - }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.description", - xmlName: "properties.description", + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", type: { - name: "String" + name: "Boolean" } }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", type: { name: "String" } }, - properties: { - serializedName: "properties.properties", - xmlName: "properties.properties", + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", type: { name: "Composite", - className: "BackendProperties" + className: "ApiVersionConstraint" } }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", type: { - name: "Composite", - className: "BackendCredentialsContract" + name: "Boolean" } }, - proxy: { - serializedName: "properties.proxy", - xmlName: "properties.proxy", + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", type: { - name: "Composite", - className: "BackendProxyContract" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper" + } + } } }, - tls: { - serializedName: "properties.tls", - xmlName: "properties.tls", + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", type: { - name: "Composite", - className: "BackendTlsProperties" + name: "String" } }, - url: { + publisherEmail: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxLength: 100 }, - serializedName: "properties.url", - xmlName: "properties.url", + serializedName: "properties.publisherEmail", + required: true, + xmlName: "properties.publisherEmail", type: { name: "String" } }, - protocol: { - serializedName: "properties.protocol", - xmlName: "properties.protocol", + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.publisherName", + required: true, + xmlName: "properties.publisherName", type: { name: "String" } @@ -10728,455 +11628,334 @@ export const BackendContract: coreClient.CompositeMapper = { } }; -export const BackendReconnectContract: coreClient.CompositeMapper = { - serializedName: "BackendReconnectContract", +export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = { + serializedName: "ApiManagementServiceUpdateParameters", type: { name: "Composite", - className: "BackendReconnectContract", + className: "ApiManagementServiceUpdateParameters", modelProperties: { - ...Resource.type.modelProperties, - after: { - serializedName: "properties.after", - xmlName: "properties.after", + ...ApimResource.type.modelProperties, + sku: { + serializedName: "sku", + xmlName: "sku", type: { - name: "TimeSpan" + name: "Composite", + className: "ApiManagementServiceSkuProperties" } - } - } - } -}; - -export const CacheContract: coreClient.CompositeMapper = { - serializedName: "CacheContract", - type: { - name: "Composite", - className: "CacheContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + }, + identity: { + serializedName: "identity", + xmlName: "identity", type: { - name: "String" + name: "Composite", + className: "ApiManagementServiceIdentity" } }, - connectionString: { - constraints: { - MaxLength: 300 - }, - serializedName: "properties.connectionString", - xmlName: "properties.connectionString", + etag: { + serializedName: "etag", + readOnly: true, + xmlName: "etag", type: { name: "String" } }, - useFromLocation: { + zones: { + serializedName: "zones", + xmlName: "zones", + xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + notificationSenderEmail: { constraints: { - MaxLength: 256 + MaxLength: 100 }, - serializedName: "properties.useFromLocation", - xmlName: "properties.useFromLocation", + serializedName: "properties.notificationSenderEmail", + xmlName: "properties.notificationSenderEmail", type: { name: "String" } }, - resourceId: { - constraints: { - MaxLength: 2000 - }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", - type: { - name: "String" - } - } - } - } -}; - -export const CertificateContract: coreClient.CompositeMapper = { - serializedName: "CertificateContract", - type: { - name: "Composite", - className: "CertificateContract", - modelProperties: { - ...Resource.type.modelProperties, - subject: { - serializedName: "properties.subject", - xmlName: "properties.subject", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + xmlName: "properties.provisioningState", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", - xmlName: "properties.thumbprint", + targetProvisioningState: { + serializedName: "properties.targetProvisioningState", + readOnly: true, + xmlName: "properties.targetProvisioningState", type: { name: "String" } }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + createdAtUtc: { + serializedName: "properties.createdAtUtc", + readOnly: true, + xmlName: "properties.createdAtUtc", type: { name: "DateTime" } }, - keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", - type: { - name: "Composite", - className: "KeyVaultContractProperties" - } - } - } - } -}; - -export const ContentTypeContract: coreClient.CompositeMapper = { - serializedName: "ContentTypeContract", - type: { - name: "Composite", - className: "ContentTypeContract", - modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + gatewayUrl: { + serializedName: "properties.gatewayUrl", + readOnly: true, + xmlName: "properties.gatewayUrl", type: { name: "String" } }, - namePropertiesName: { - serializedName: "properties.name", - xmlName: "properties.name", + gatewayRegionalUrl: { + serializedName: "properties.gatewayRegionalUrl", + readOnly: true, + xmlName: "properties.gatewayRegionalUrl", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + portalUrl: { + serializedName: "properties.portalUrl", + readOnly: true, + xmlName: "properties.portalUrl", type: { name: "String" } }, - schema: { - serializedName: "properties.schema", - xmlName: "properties.schema", + managementApiUrl: { + serializedName: "properties.managementApiUrl", + readOnly: true, + xmlName: "properties.managementApiUrl", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - version: { - serializedName: "properties.version", - xmlName: "properties.version", + scmUrl: { + serializedName: "properties.scmUrl", + readOnly: true, + xmlName: "properties.scmUrl", type: { name: "String" } - } - } - } -}; - -export const ContentItemContract: coreClient.CompositeMapper = { - serializedName: "ContentItemContract", - type: { - name: "Composite", - className: "ContentItemContract", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", - xmlName: "properties", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } -}; - -export const DeletedServiceContract: coreClient.CompositeMapper = { - serializedName: "DeletedServiceContract", - type: { - name: "Composite", - className: "DeletedServiceContract", - modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", + }, + developerPortalUrl: { + serializedName: "properties.developerPortalUrl", readOnly: true, - xmlName: "location", + xmlName: "properties.developerPortalUrl", type: { name: "String" } }, - serviceId: { - serializedName: "properties.serviceId", - xmlName: "properties.serviceId", + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", + xmlName: "properties.hostnameConfigurations", + xmlElementName: "HostnameConfiguration", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration" + } + } } }, - scheduledPurgeDate: { - serializedName: "properties.scheduledPurgeDate", - xmlName: "properties.scheduledPurgeDate", + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + xmlName: "properties.publicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPublicIPAddressesItem", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - deletionDate: { - serializedName: "properties.deletionDate", - xmlName: "properties.deletionDate", + privateIPAddresses: { + serializedName: "properties.privateIPAddresses", + readOnly: true, + xmlName: "properties.privateIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const EmailTemplateContract: coreClient.CompositeMapper = { - serializedName: "EmailTemplateContract", - type: { - name: "Composite", - className: "EmailTemplateContract", - modelProperties: { - ...Resource.type.modelProperties, - subject: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "properties.subject", - xmlName: "properties.subject", + }, + publicIpAddressId: { + serializedName: "properties.publicIpAddressId", + xmlName: "properties.publicIpAddressId", type: { name: "String" } }, - body: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.body", - xmlName: "properties.body", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + xmlName: "properties.publicNetworkAccess", type: { name: "String" } }, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + xmlName: "properties.virtualNetworkConfiguration", type: { - name: "String" + name: "Composite", + className: "VirtualNetworkConfiguration" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + additionalLocations: { + serializedName: "properties.additionalLocations", + xmlName: "properties.additionalLocations", + xmlElementName: "AdditionalLocation", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation" + } + } } }, - isDefault: { - serializedName: "properties.isDefault", - readOnly: true, - xmlName: "properties.isDefault", + customProperties: { + serializedName: "properties.customProperties", + xmlName: "properties.customProperties", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } } }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", - xmlElementName: "EmailTemplateParametersContractProperties", + certificates: { + serializedName: "properties.certificates", + xmlName: "properties.certificates", + xmlElementName: "CertificateConfiguration", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EmailTemplateParametersContractProperties" + className: "CertificateConfiguration" } } } - } - } - } -}; - -export const GatewayContract: coreClient.CompositeMapper = { - serializedName: "GatewayContract", - type: { - name: "Composite", - className: "GatewayContract", - modelProperties: { - ...Resource.type.modelProperties, - locationData: { - serializedName: "properties.locationData", - xmlName: "properties.locationData", - type: { - name: "Composite", - className: "ResourceLocationDataContract" - } }, - description: { - constraints: { - MaxLength: 1000 - }, - serializedName: "properties.description", - xmlName: "properties.description", + enableClientCertificate: { + defaultValue: false, + serializedName: "properties.enableClientCertificate", + xmlName: "properties.enableClientCertificate", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfigurationContract", - type: { - name: "Composite", - className: "GatewayHostnameConfigurationContract", - modelProperties: { - ...Resource.type.modelProperties, - hostname: { - serializedName: "properties.hostname", - xmlName: "properties.hostname", + }, + natGatewayState: { + serializedName: "properties.natGatewayState", + xmlName: "properties.natGatewayState", type: { name: "String" } }, - certificateId: { - serializedName: "properties.certificateId", - xmlName: "properties.certificateId", + outboundPublicIPAddresses: { + serializedName: "properties.outboundPublicIPAddresses", + readOnly: true, + xmlName: "properties.outboundPublicIPAddresses", + xmlElementName: + "ApiManagementServiceBasePropertiesOutboundPublicIPAddressesItem", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - negotiateClientCertificate: { - serializedName: "properties.negotiateClientCertificate", - xmlName: "properties.negotiateClientCertificate", + disableGateway: { + defaultValue: false, + serializedName: "properties.disableGateway", + xmlName: "properties.disableGateway", type: { name: "Boolean" } }, - tls10Enabled: { - serializedName: "properties.tls10Enabled", - xmlName: "properties.tls10Enabled", + virtualNetworkType: { + defaultValue: "None", + serializedName: "properties.virtualNetworkType", + xmlName: "properties.virtualNetworkType", type: { - name: "Boolean" + name: "String" } }, - tls11Enabled: { - serializedName: "properties.tls11Enabled", - xmlName: "properties.tls11Enabled", + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + xmlName: "properties.apiVersionConstraint", type: { - name: "Boolean" + name: "Composite", + className: "ApiVersionConstraint" } }, - http2Enabled: { - serializedName: "properties.http2Enabled", - xmlName: "properties.http2Enabled", + restore: { + defaultValue: false, + serializedName: "properties.restore", + xmlName: "properties.restore", type: { name: "Boolean" } - } - } - } -}; - -export const AssociationContract: coreClient.CompositeMapper = { - serializedName: "AssociationContract", - type: { - name: "Composite", - className: "AssociationContract", - modelProperties: { - ...Resource.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: { - ...Resource.type.modelProperties, - isTrusted: { - serializedName: "properties.isTrusted", - xmlName: "properties.isTrusted", + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + xmlName: "properties.privateEndpointConnections", + xmlElementName: "RemotePrivateEndpointConnectionWrapper", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RemotePrivateEndpointConnectionWrapper" + } + } } - } - } - } -}; - -export const GroupContract: coreClient.CompositeMapper = { - serializedName: "GroupContract", - type: { - name: "Composite", - className: "GroupContract", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + }, + platformVersion: { + serializedName: "properties.platformVersion", + readOnly: true, + xmlName: "properties.platformVersion", type: { name: "String" } }, - description: { + publisherEmail: { constraints: { - MaxLength: 1000 + MaxLength: 100 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "properties.publisherEmail", + xmlName: "properties.publisherEmail", 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", + publisherName: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.publisherName", + xmlName: "properties.publisherName", type: { name: "String" } @@ -11185,74 +11964,45 @@ export const GroupContract: coreClient.CompositeMapper = { } }; -export const UserContract: coreClient.CompositeMapper = { - serializedName: "UserContract", +export const UserContractProperties: coreClient.CompositeMapper = { + serializedName: "UserContractProperties", type: { name: "Composite", - className: "UserContract", + className: "UserContractProperties", modelProperties: { - ...Resource.type.modelProperties, - state: { - defaultValue: "active", - serializedName: "properties.state", - xmlName: "properties.state", - type: { - name: "String" - } - }, - note: { - serializedName: "properties.note", - xmlName: "properties.note", - type: { - name: "String" - } - }, - identities: { - serializedName: "properties.identities", - xmlName: "properties.identities", - xmlElementName: "UserIdentityContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } - } - }, + ...UserEntityBaseParameters.type.modelProperties, firstName: { - serializedName: "properties.firstName", - xmlName: "properties.firstName", + serializedName: "firstName", + xmlName: "firstName", type: { name: "String" } }, lastName: { - serializedName: "properties.lastName", - xmlName: "properties.lastName", + serializedName: "lastName", + xmlName: "lastName", type: { name: "String" } }, email: { - serializedName: "properties.email", - xmlName: "properties.email", + serializedName: "email", + xmlName: "email", type: { name: "String" } }, registrationDate: { - serializedName: "properties.registrationDate", - xmlName: "properties.registrationDate", + serializedName: "registrationDate", + xmlName: "registrationDate", type: { name: "DateTime" } }, groups: { - serializedName: "properties.groups", + serializedName: "groups", readOnly: true, - xmlName: "properties.groups", + xmlName: "groups", xmlElementName: "GroupContractProperties", type: { name: "Sequence", @@ -11268,106 +12018,66 @@ export const UserContract: coreClient.CompositeMapper = { } }; -export const IdentityProviderContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContract", - type: { +export const UserCreateParameterProperties: coreClient.CompositeMapper = { + serializedName: "UserCreateParameterProperties", + type: { name: "Composite", - className: "IdentityProviderContract", + className: "UserCreateParameterProperties", modelProperties: { - ...Resource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", - type: { - name: "String" - } - }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", - type: { - name: "String" - } - }, - allowedTenants: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", - type: { - name: "String" - } - }, - signupPolicyName: { + ...UserEntityBaseParameters.type.modelProperties, + email: { constraints: { + MaxLength: 254, MinLength: 1 }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", + serializedName: "email", + required: true, + xmlName: "email", type: { name: "String" } }, - signinPolicyName: { + firstName: { constraints: { + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + serializedName: "firstName", + required: true, + xmlName: "firstName", type: { name: "String" } }, - profileEditingPolicyName: { + lastName: { constraints: { + MaxLength: 100, MinLength: 1 }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + serializedName: "lastName", + required: true, + xmlName: "lastName", type: { name: "String" } }, - passwordResetPolicyName: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + password: { + serializedName: "password", + xmlName: "password", type: { name: "String" } }, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + appType: { + serializedName: "appType", + xmlName: "appType", type: { name: "String" } }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + confirmation: { + serializedName: "confirmation", + xmlName: "confirmation", type: { name: "String" } @@ -11376,96 +12086,135 @@ export const IdentityProviderContract: coreClient.CompositeMapper = { } }; -export const IdentityProviderCreateContract: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContract", +export const UserUpdateParametersProperties: coreClient.CompositeMapper = { + serializedName: "UserUpdateParametersProperties", type: { name: "Composite", - className: "IdentityProviderCreateContract", + className: "UserUpdateParametersProperties", modelProperties: { - ...Resource.type.modelProperties, - typePropertiesType: { - serializedName: "properties.type", - xmlName: "properties.type", + ...UserEntityBaseParameters.type.modelProperties, + email: { + constraints: { + MaxLength: 254, + MinLength: 1 + }, + serializedName: "email", + xmlName: "email", type: { name: "String" } }, - signinTenant: { - serializedName: "properties.signinTenant", - xmlName: "properties.signinTenant", + password: { + serializedName: "password", + xmlName: "password", type: { name: "String" } }, - allowedTenants: { + firstName: { constraints: { - MaxItems: 32 + MaxLength: 100, + MinLength: 1 }, - serializedName: "properties.allowedTenants", - xmlName: "properties.allowedTenants", - xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", + serializedName: "firstName", + xmlName: "firstName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - authority: { - serializedName: "properties.authority", - xmlName: "properties.authority", + lastName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "lastName", + xmlName: "lastName", type: { name: "String" } - }, - signupPolicyName: { + } + } + } +}; + +export const IdentityProviderContractProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContractProperties", + type: { + name: "Composite", + className: "IdentityProviderContractProperties", + modelProperties: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { constraints: { MinLength: 1 }, - serializedName: "properties.signupPolicyName", - xmlName: "properties.signupPolicyName", + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { name: "String" } }, - signinPolicyName: { + clientSecret: { constraints: { MinLength: 1 }, - serializedName: "properties.signinPolicyName", - xmlName: "properties.signinPolicyName", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { name: "String" } - }, - profileEditingPolicyName: { + } + } + } +}; + +export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderCreateContractProperties", + type: { + name: "Composite", + className: "IdentityProviderCreateContractProperties", + modelProperties: { + ...IdentityProviderBaseParameters.type.modelProperties, + clientId: { constraints: { MinLength: 1 }, - serializedName: "properties.profileEditingPolicyName", - xmlName: "properties.profileEditingPolicyName", + serializedName: "clientId", + required: true, + xmlName: "clientId", type: { name: "String" } }, - passwordResetPolicyName: { + clientSecret: { constraints: { MinLength: 1 }, - serializedName: "properties.passwordResetPolicyName", - xmlName: "properties.passwordResetPolicyName", + serializedName: "clientSecret", + required: true, + xmlName: "clientSecret", type: { name: "String" } - }, + } + } + } +}; + +export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { + serializedName: "IdentityProviderUpdateProperties", + type: { + name: "Composite", + className: "IdentityProviderUpdateProperties", + modelProperties: { + ...IdentityProviderBaseParameters.type.modelProperties, clientId: { constraints: { MinLength: 1 }, - serializedName: "properties.clientId", - xmlName: "properties.clientId", + serializedName: "clientId", + xmlName: "clientId", type: { name: "String" } @@ -11474,8 +12223,8 @@ export const IdentityProviderCreateContract: coreClient.CompositeMapper = { constraints: { MinLength: 1 }, - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + serializedName: "clientSecret", + xmlName: "clientSecret", type: { name: "String" } @@ -11484,94 +12233,64 @@ export const IdentityProviderCreateContract: coreClient.CompositeMapper = { } }; -export const LoggerContract: coreClient.CompositeMapper = { - serializedName: "LoggerContract", +export const NamedValueContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueContractProperties", type: { name: "Composite", - className: "LoggerContract", + className: "NamedValueContractProperties", modelProperties: { - ...Resource.type.modelProperties, - loggerType: { - serializedName: "properties.loggerType", - xmlName: "properties.loggerType", + ...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" } }, - description: { + value: { constraints: { - MaxLength: 256 + MaxLength: 4096 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", + keyVault: { + serializedName: "keyVault", + xmlName: "keyVault", type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - isBuffered: { - serializedName: "properties.isBuffered", - xmlName: "properties.isBuffered", - type: { - name: "Boolean" - } - }, - resourceId: { - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", - type: { - name: "String" + name: "Composite", + className: "KeyVaultContractProperties" } } } } }; -export const NamedValueContract: coreClient.CompositeMapper = { - serializedName: "NamedValueContract", +export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueCreateContractProperties", type: { name: "Composite", - className: "NamedValueContract", + className: "NamedValueCreateContractProperties", modelProperties: { - ...Resource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", - type: { - name: "Boolean" - } - }, + ...NamedValueEntityBaseParameters.type.modelProperties, displayName: { constraints: { Pattern: new RegExp("^[A-Za-z0-9-._]+$"), MaxLength: 256, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + required: true, + xmlName: "displayName", type: { name: "String" } @@ -11580,79 +12299,57 @@ export const NamedValueContract: coreClient.CompositeMapper = { constraints: { MaxLength: 4096 }, - serializedName: "properties.value", - xmlName: "properties.value", + serializedName: "value", + xmlName: "value", type: { name: "String" } }, keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + serializedName: "keyVault", + xmlName: "keyVault", type: { name: "Composite", - className: "KeyVaultContractProperties" + className: "KeyVaultContractCreateProperties" } } } } }; -export const NamedValueCreateContract: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContract", +export const NamedValueUpdateParameterProperties: coreClient.CompositeMapper = { + serializedName: "NamedValueUpdateParameterProperties", type: { name: "Composite", - className: "NamedValueCreateContract", + className: "NamedValueUpdateParameterProperties", modelProperties: { - ...Resource.type.modelProperties, - tags: { - constraints: { - MaxItems: 32 - }, - serializedName: "properties.tags", - xmlName: "properties.tags", - xmlElementName: "NamedValueEntityBaseParametersTagsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - secret: { - serializedName: "properties.secret", - xmlName: "properties.secret", - type: { - name: "Boolean" - } - }, + ...NamedValueEntityBaseParameters.type.modelProperties, displayName: { constraints: { Pattern: new RegExp("^[A-Za-z0-9-._]+$"), MaxLength: 256, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "displayName", + xmlName: "displayName", type: { name: "String" } }, value: { constraints: { - MaxLength: 4096 + MaxLength: 4096, + MinLength: 1 }, - serializedName: "properties.value", - xmlName: "properties.value", + serializedName: "value", + xmlName: "value", type: { name: "String" } }, keyVault: { - serializedName: "properties.keyVault", - xmlName: "properties.keyVault", + serializedName: "keyVault", + xmlName: "keyVault", type: { name: "Composite", className: "KeyVaultContractCreateProperties" @@ -11662,71 +12359,45 @@ export const NamedValueCreateContract: coreClient.CompositeMapper = { } }; -export const NotificationContract: coreClient.CompositeMapper = { - serializedName: "NotificationContract", +export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { + serializedName: "ApiCreateOrUpdateProperties", type: { name: "Composite", - className: "NotificationContract", + className: "ApiCreateOrUpdateProperties", modelProperties: { - ...Resource.type.modelProperties, - title: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "properties.title", - xmlName: "properties.title", + ...ApiContractProperties.type.modelProperties, + value: { + serializedName: "value", + xmlName: "value", type: { name: "String" } }, - description: { - serializedName: "properties.description", - xmlName: "properties.description", + format: { + serializedName: "format", + xmlName: "format", type: { name: "String" } }, - recipients: { - serializedName: "properties.recipients", - xmlName: "properties.recipients", + wsdlSelector: { + serializedName: "wsdlSelector", + xmlName: "wsdlSelector", type: { name: "Composite", - className: "RecipientsContractProperties" + className: "ApiCreateOrUpdatePropertiesWsdlSelector" } - } - } - } -}; - -export const RecipientUserContract: coreClient.CompositeMapper = { - serializedName: "RecipientUserContract", - type: { - name: "Composite", - className: "RecipientUserContract", - modelProperties: { - ...Resource.type.modelProperties, - userId: { - serializedName: "properties.userId", - xmlName: "properties.userId", + }, + soapApiType: { + serializedName: "apiType", + xmlName: "apiType", type: { name: "String" } - } - } - } -}; - -export const RecipientEmailContract: coreClient.CompositeMapper = { - serializedName: "RecipientEmailContract", - type: { - name: "Composite", - className: "RecipientEmailContract", - modelProperties: { - ...Resource.type.modelProperties, - email: { - serializedName: "properties.email", - xmlName: "properties.email", + }, + translateRequiredQueryParametersConduct: { + serializedName: "translateRequiredQueryParameters", + xmlName: "translateRequiredQueryParameters", type: { name: "String" } @@ -11735,23 +12406,13 @@ export const RecipientEmailContract: coreClient.CompositeMapper = { } }; -export const OpenidConnectProviderContract: coreClient.CompositeMapper = { - serializedName: "OpenidConnectProviderContract", +export const ApiContract: coreClient.CompositeMapper = { + serializedName: "ApiContract", type: { name: "Composite", - className: "OpenidConnectProviderContract", + className: "ApiContract", modelProperties: { - ...Resource.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50 - }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", - type: { - name: "String" - } - }, + ...ProxyResource.type.modelProperties, description: { serializedName: "properties.description", xmlName: "properties.description", @@ -11759,289 +12420,1005 @@ export const OpenidConnectProviderContract: coreClient.CompositeMapper = { name: "String" } }, - metadataEndpoint: { - serializedName: "properties.metadataEndpoint", - xmlName: "properties.metadataEndpoint", + authenticationSettings: { + serializedName: "properties.authenticationSettings", + xmlName: "properties.authenticationSettings", type: { - name: "String" + name: "Composite", + className: "AuthenticationSettingsContract" } }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + xmlName: "properties.subscriptionKeyParameterNames", type: { - name: "String" + name: "Composite", + className: "SubscriptionKeyParameterNamesContract" } }, - clientSecret: { - serializedName: "properties.clientSecret", - xmlName: "properties.clientSecret", + apiType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { name: "String" } - } - } - } -}; - -export const PolicyDescriptionContract: coreClient.CompositeMapper = { - serializedName: "PolicyDescriptionContract", - type: { - name: "Composite", - className: "PolicyDescriptionContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - readOnly: true, - xmlName: "properties.description", + }, + apiRevision: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.apiRevision", + xmlName: "properties.apiRevision", type: { name: "String" } }, - scope: { - serializedName: "properties.scope", - readOnly: true, - xmlName: "properties.scope", + apiVersion: { + constraints: { + MaxLength: 100 + }, + serializedName: "properties.apiVersion", + xmlName: "properties.apiVersion", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const PortalRevisionContract: coreClient.CompositeMapper = { - serializedName: "PortalRevisionContract", - type: { - name: "Composite", - className: "PortalRevisionContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { + }, + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", + type: { + name: "Boolean" + } + }, + isOnline: { + serializedName: "properties.isOnline", + readOnly: true, + xmlName: "properties.isOnline", + type: { + name: "Boolean" + } + }, + apiRevisionDescription: { constraints: { - MaxLength: 2000 + MaxLength: 256 }, - serializedName: "properties.description", - xmlName: "properties.description", + serializedName: "properties.apiRevisionDescription", + xmlName: "properties.apiRevisionDescription", type: { name: "String" } }, - statusDetails: { + apiVersionDescription: { constraints: { - MaxLength: 2000 + MaxLength: 256 }, - serializedName: "properties.statusDetails", - readOnly: true, - xmlName: "properties.statusDetails", + serializedName: "properties.apiVersionDescription", + xmlName: "properties.apiVersionDescription", type: { name: "String" } }, - status: { - serializedName: "properties.status", - readOnly: true, - xmlName: "properties.status", + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + xmlName: "properties.apiVersionSetId", type: { name: "String" } }, - isCurrent: { - serializedName: "properties.isCurrent", - xmlName: "properties.isCurrent", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", type: { name: "Boolean" } }, - createdDateTime: { - serializedName: "properties.createdDateTime", - readOnly: true, - xmlName: "properties.createdDateTime", + termsOfServiceUrl: { + serializedName: "properties.termsOfServiceUrl", + xmlName: "properties.termsOfServiceUrl", type: { - name: "DateTime" + name: "String" } }, - updatedDateTime: { - serializedName: "properties.updatedDateTime", - readOnly: true, - xmlName: "properties.updatedDateTime", + contact: { + serializedName: "properties.contact", + xmlName: "properties.contact", type: { - name: "DateTime" + name: "Composite", + className: "ApiContactInformation" } - } - } - } -}; - -export const PortalSettingsContract: coreClient.CompositeMapper = { - serializedName: "PortalSettingsContract", - type: { - name: "Composite", - className: "PortalSettingsContract", - modelProperties: { - ...Resource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", + }, + license: { + serializedName: "properties.license", + xmlName: "properties.license", + type: { + name: "Composite", + className: "ApiLicenseInformation" + } + }, + sourceApiId: { + serializedName: "properties.sourceApiId", + xmlName: "properties.sourceApiId", type: { name: "String" } }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + serviceUrl: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.serviceUrl", + xmlName: "properties.serviceUrl", type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" + name: "String" } }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", + path: { + constraints: { + MaxLength: 400 + }, + serializedName: "properties.path", + xmlName: "properties.path", type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" + name: "String" } }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + protocols: { + serializedName: "properties.protocols", + xmlName: "properties.protocols", + xmlElementName: "Protocol", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", + apiVersionSet: { + serializedName: "properties.apiVersionSet", + xmlName: "properties.apiVersionSet", type: { name: "Composite", - className: "TermsOfServiceProperties" + className: "ApiVersionSetContractDetails" } } } } }; -export const PortalSigninSettings: coreClient.CompositeMapper = { - serializedName: "PortalSigninSettings", +export const ApiReleaseContract: coreClient.CompositeMapper = { + serializedName: "ApiReleaseContract", type: { name: "Composite", - className: "PortalSigninSettings", + className: "ApiReleaseContract", modelProperties: { - ...Resource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const PortalSignupSettings: coreClient.CompositeMapper = { - serializedName: "PortalSignupSettings", - type: { - name: "Composite", - className: "PortalSignupSettings", - modelProperties: { - ...Resource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", + }, + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", type: { - name: "Boolean" + name: "DateTime" } }, - termsOfService: { - serializedName: "properties.termsOfService", - xmlName: "properties.termsOfService", + updatedDateTime: { + serializedName: "properties.updatedDateTime", + readOnly: true, + xmlName: "properties.updatedDateTime", type: { - name: "Composite", - className: "TermsOfServiceProperties" + name: "DateTime" + } + }, + notes: { + serializedName: "properties.notes", + xmlName: "properties.notes", + type: { + name: "String" } } } } }; -export const PortalDelegationSettings: coreClient.CompositeMapper = { - serializedName: "PortalDelegationSettings", +export const OperationContract: coreClient.CompositeMapper = { + serializedName: "OperationContract", type: { name: "Composite", - className: "PortalDelegationSettings", + className: "OperationContract", modelProperties: { - ...Resource.type.modelProperties, - url: { - serializedName: "properties.url", - xmlName: "properties.url", + ...ProxyResource.type.modelProperties, + templateParameters: { + serializedName: "properties.templateParameters", + xmlName: "properties.templateParameters", + xmlElementName: "ParameterContract", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract" + } + } } }, - validationKey: { - serializedName: "properties.validationKey", - xmlName: "properties.validationKey", + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - subscriptions: { - serializedName: "properties.subscriptions", - xmlName: "properties.subscriptions", + request: { + serializedName: "properties.request", + xmlName: "properties.request", type: { name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" + className: "RequestContract" } }, - userRegistration: { - serializedName: "properties.userRegistration", - xmlName: "properties.userRegistration", + responses: { + serializedName: "properties.responses", + xmlName: "properties.responses", + xmlElementName: "ResponseContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResponseContract" + } + } + } + }, + policies: { + serializedName: "properties.policies", + xmlName: "properties.policies", + type: { + name: "String" + } + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + method: { + serializedName: "properties.method", + xmlName: "properties.method", + type: { + name: "String" + } + }, + urlTemplate: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "properties.urlTemplate", + xmlName: "properties.urlTemplate", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyContract: coreClient.CompositeMapper = { + serializedName: "PolicyContract", + type: { + name: "Composite", + className: "PolicyContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "String" + } + }, + format: { + defaultValue: "xml", + serializedName: "properties.format", + xmlName: "properties.format", + type: { + name: "String" + } + } + } + } +}; + +export const TagContract: coreClient.CompositeMapper = { + serializedName: "TagContract", + type: { + name: "Composite", + className: "TagContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + } + } + } +}; + +export const ResolverContract: coreClient.CompositeMapper = { + serializedName: "ResolverContract", + type: { + name: "Composite", + className: "ResolverContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + 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 ProductContract: coreClient.CompositeMapper = { + serializedName: "ProductContract", + type: { + name: "Composite", + className: "ProductContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + terms: { + serializedName: "properties.terms", + xmlName: "properties.terms", + type: { + name: "String" + } + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + xmlName: "properties.subscriptionRequired", + type: { + name: "Boolean" + } + }, + approvalRequired: { + serializedName: "properties.approvalRequired", + xmlName: "properties.approvalRequired", + type: { + name: "Boolean" + } + }, + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", + xmlName: "properties.subscriptionsLimit", + type: { + name: "Number" + } + }, + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "Enum", + allowedValues: ["notPublished", "published"] + } + }, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + } + } + } +}; + +export const SchemaContract: coreClient.CompositeMapper = { + serializedName: "SchemaContract", + type: { + name: "Composite", + className: "SchemaContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + contentType: { + serializedName: "properties.contentType", + xmlName: "properties.contentType", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.document.value", + xmlName: "properties.document.value", + type: { + name: "String" + } + }, + definitions: { + serializedName: "properties.document.definitions", + xmlName: "properties.document.definitions", + 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: "RegistrationDelegationSettingsProperties" + className: "SamplingSettings" + } + }, + frontend: { + serializedName: "properties.frontend", + xmlName: "properties.frontend", + type: { + name: "Composite", + className: "PipelineDiagnosticSettings" + } + }, + backend: { + serializedName: "properties.backend", + xmlName: "properties.backend", + type: { + name: "Composite", + className: "PipelineDiagnosticSettings" + } + }, + logClientIp: { + serializedName: "properties.logClientIp", + xmlName: "properties.logClientIp", + type: { + name: "Boolean" + } + }, + httpCorrelationProtocol: { + serializedName: "properties.httpCorrelationProtocol", + xmlName: "properties.httpCorrelationProtocol", + type: { + name: "String" + } + }, + verbosity: { + serializedName: "properties.verbosity", + xmlName: "properties.verbosity", + type: { + name: "String" + } + }, + operationNameFormat: { + serializedName: "properties.operationNameFormat", + xmlName: "properties.operationNameFormat", + type: { + name: "String" + } + }, + metrics: { + serializedName: "properties.metrics", + xmlName: "properties.metrics", + type: { + name: "Boolean" + } + } + } + } +}; + +export const IssueContract: coreClient.CompositeMapper = { + serializedName: "IssueContract", + type: { + name: "Composite", + className: "IssueContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + state: { + serializedName: "properties.state", + xmlName: "properties.state", + type: { + name: "String" + } + }, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", + type: { + name: "String" + } + }, + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", + type: { + name: "String" + } + } + } + } +}; + +export const IssueCommentContract: coreClient.CompositeMapper = { + serializedName: "IssueCommentContract", + type: { + name: "Composite", + className: "IssueCommentContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + text: { + serializedName: "properties.text", + xmlName: "properties.text", + type: { + name: "String" + } + }, + createdDate: { + serializedName: "properties.createdDate", + xmlName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", + type: { + name: "String" + } + } + } + } +}; + +export const IssueAttachmentContract: coreClient.CompositeMapper = { + serializedName: "IssueAttachmentContract", + type: { + name: "Composite", + className: "IssueAttachmentContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + contentFormat: { + serializedName: "properties.contentFormat", + xmlName: "properties.contentFormat", + type: { + name: "String" + } + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", + type: { + name: "String" } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const TagDescriptionContract: coreClient.CompositeMapper = { + serializedName: "TagDescriptionContract", type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "TagDescriptionContract", modelProperties: { - ...Resource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - xmlName: "properties.privateEndpoint", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + externalDocsUrl: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.externalDocsUrl", + xmlName: "properties.externalDocsUrl", + type: { + name: "String" + } + }, + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", + xmlName: "properties.externalDocsDescription", + type: { + name: "String" + } + }, + tagId: { + serializedName: "properties.tagId", + xmlName: "properties.tagId", + type: { + name: "String" + } + }, + displayName: { + constraints: { + MaxLength: 160, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetContract: coreClient.CompositeMapper = { + serializedName: "ApiVersionSetContract", + type: { + name: "Composite", + className: "ApiVersionSetContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + versionQueryName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.versionQueryName", + xmlName: "properties.versionQueryName", + type: { + name: "String" + } + }, + versionHeaderName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.versionHeaderName", + xmlName: "properties.versionHeaderName", + type: { + name: "String" + } + }, + displayName: { + constraints: { + MaxLength: 100, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + versioningScheme: { + serializedName: "properties.versioningScheme", + xmlName: "properties.versioningScheme", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContract", + type: { + name: "Composite", + className: "AuthorizationServerContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } + } + }, + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + 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: 50, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", + type: { + name: "Boolean" + } + }, + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", + type: { + name: "Boolean" + } + }, + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", + type: { + name: "String" + } + }, + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", + type: { + name: "String" + } + }, + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - xmlName: "properties.privateLinkServiceConnectionState", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -12050,26 +13427,47 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContract", type: { name: "Composite", - className: "PrivateLinkResource", + className: "AuthorizationServerUpdateContract", modelProperties: { - ...Resource.type.modelProperties, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - xmlName: "properties.groupId", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - xmlName: "properties.requiredMembers", - xmlElementName: "PrivateLinkResourcePropertiesRequiredMembersItem", + authorizationMethods: { + serializedName: "properties.authorizationMethods", + xmlName: "properties.authorizationMethods", + xmlElementName: "AuthorizationMethod", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } + } + }, + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + xmlName: "properties.clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", type: { name: "Sequence", element: { @@ -12079,10 +13477,45 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", - xmlName: "properties.requiredZoneNames", - xmlElementName: "PrivateLinkResourcePropertiesRequiredZoneNamesItem", + 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: { @@ -12091,35 +13524,25 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } } } - } - } - } -}; - -export const SubscriptionContract: coreClient.CompositeMapper = { - serializedName: "SubscriptionContract", - type: { - name: "Composite", - className: "SubscriptionContract", - modelProperties: { - ...Resource.type.modelProperties, - ownerId: { - serializedName: "properties.ownerId", - xmlName: "properties.ownerId", + }, + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", + xmlName: "properties.resourceOwnerUsername", type: { name: "String" } }, - scope: { - serializedName: "properties.scope", - xmlName: "properties.scope", + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", + xmlName: "properties.resourceOwnerPassword", type: { name: "String" } }, displayName: { constraints: { - MaxLength: 100 + MaxLength: 50, + MinLength: 1 }, serializedName: "properties.displayName", xmlName: "properties.displayName", @@ -12127,277 +13550,330 @@ export const SubscriptionContract: coreClient.CompositeMapper = { name: "String" } }, - state: { - serializedName: "properties.state", - xmlName: "properties.state", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] + name: "Boolean" } }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, - xmlName: "properties.createdDate", + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { - name: "DateTime" + name: "Boolean" } }, - startDate: { - serializedName: "properties.startDate", - xmlName: "properties.startDate", + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", + xmlName: "properties.clientRegistrationEndpoint", type: { - name: "DateTime" + name: "String" } }, - expirationDate: { - serializedName: "properties.expirationDate", - xmlName: "properties.expirationDate", + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", + xmlName: "properties.authorizationEndpoint", type: { - name: "DateTime" + name: "String" } }, - endDate: { - serializedName: "properties.endDate", - xmlName: "properties.endDate", + grantTypes: { + serializedName: "properties.grantTypes", + xmlName: "properties.grantTypes", + xmlElementName: "GrantType", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - notificationDate: { - serializedName: "properties.notificationDate", - xmlName: "properties.notificationDate", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "DateTime" + name: "String" } }, - primaryKey: { - constraints: { - MaxLength: 256, - MinLength: 1 - }, - serializedName: "properties.primaryKey", - xmlName: "properties.primaryKey", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } - }, - secondaryKey: { + } + } + } +}; + +export const AuthorizationProviderContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderContract", + type: { + name: "Composite", + className: "AuthorizationProviderContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { constraints: { - MaxLength: 256, + MaxLength: 300, MinLength: 1 }, - serializedName: "properties.secondaryKey", - xmlName: "properties.secondaryKey", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - stateComment: { - serializedName: "properties.stateComment", - xmlName: "properties.stateComment", + identityProvider: { + serializedName: "properties.identityProvider", + xmlName: "properties.identityProvider", type: { name: "String" } }, - allowTracing: { - serializedName: "properties.allowTracing", - xmlName: "properties.allowTracing", + oauth2: { + serializedName: "properties.oauth2", + xmlName: "properties.oauth2", type: { - name: "Boolean" + name: "Composite", + className: "AuthorizationProviderOAuth2Settings" } } } } }; -export const TenantSettingsContract: coreClient.CompositeMapper = { - serializedName: "TenantSettingsContract", +export const AuthorizationContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationContract", type: { name: "Composite", - className: "TenantSettingsContract", + className: "AuthorizationContract", modelProperties: { - ...Resource.type.modelProperties, - settings: { - serializedName: "properties.settings", - xmlName: "properties.settings", + ...ProxyResource.type.modelProperties, + authorizationType: { + serializedName: "properties.authorizationType", + xmlName: "properties.authorizationType", + type: { + name: "String" + } + }, + oAuth2GrantType: { + serializedName: "properties.oauth2grantType", + xmlName: "properties.oauth2grantType", + type: { + name: "String" + } + }, + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", type: { name: "Dictionary", value: { type: { name: "String" } } } + }, + error: { + serializedName: "properties.error", + xmlName: "properties.error", + type: { + name: "Composite", + className: "AuthorizationError" + } + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", + type: { + name: "String" + } } } } }; -export const AccessInformationContract: coreClient.CompositeMapper = { - serializedName: "AccessInformationContract", +export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyContract", type: { name: "Composite", - className: "AccessInformationContract", + className: "AuthorizationAccessPolicyContract", modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + ...ProxyResource.type.modelProperties, + tenantId: { + serializedName: "properties.tenantId", + xmlName: "properties.tenantId", type: { name: "String" } }, - principalId: { - serializedName: "properties.principalId", - xmlName: "properties.principalId", + objectId: { + serializedName: "properties.objectId", + xmlName: "properties.objectId", type: { name: "String" } - }, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } } } } }; -export const OperationResultContract: coreClient.CompositeMapper = { - serializedName: "OperationResultContract", +export const BackendContract: coreClient.CompositeMapper = { + serializedName: "BackendContract", type: { name: "Composite", - className: "OperationResultContract", + className: "BackendContract", modelProperties: { - ...Resource.type.modelProperties, - idPropertiesId: { - serializedName: "properties.id", - xmlName: "properties.id", + ...ProxyResource.type.modelProperties, + title: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", + description: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Enum", - allowedValues: ["Started", "InProgress", "Succeeded", "Failed"] + name: "String" } }, - started: { - serializedName: "properties.started", - xmlName: "properties.started", + resourceId: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "DateTime" + name: "String" } }, - updated: { - serializedName: "properties.updated", - xmlName: "properties.updated", + properties: { + serializedName: "properties.properties", + xmlName: "properties.properties", type: { - name: "DateTime" + name: "Composite", + className: "BackendProperties" } }, - resultInfo: { - serializedName: "properties.resultInfo", - xmlName: "properties.resultInfo", + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" + name: "Composite", + className: "BackendCredentialsContract" } }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + proxy: { + serializedName: "properties.proxy", + xmlName: "properties.proxy", type: { name: "Composite", - className: "ErrorResponseBody" + className: "BackendProxyContract" } }, - actionLog: { - serializedName: "properties.actionLog", - readOnly: true, - xmlName: "properties.actionLog", - xmlElementName: "OperationResultLogItemContract", + tls: { + serializedName: "properties.tls", + xmlName: "properties.tls", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationResultLogItemContract" - } - } + name: "Composite", + className: "BackendTlsProperties" + } + }, + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.url", + xmlName: "properties.url", + type: { + name: "String" + } + }, + protocol: { + serializedName: "properties.protocol", + xmlName: "properties.protocol", + type: { + name: "String" } } } } }; -export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { - serializedName: "TenantConfigurationSyncStateContract", +export const BackendReconnectContract: coreClient.CompositeMapper = { + serializedName: "BackendReconnectContract", type: { name: "Composite", - className: "TenantConfigurationSyncStateContract", + className: "BackendReconnectContract", modelProperties: { - ...Resource.type.modelProperties, - branch: { - serializedName: "properties.branch", - xmlName: "properties.branch", + ...ProxyResource.type.modelProperties, + after: { + serializedName: "properties.after", + xmlName: "properties.after", type: { - name: "String" + name: "TimeSpan" } - }, - commitId: { - serializedName: "properties.commitId", - xmlName: "properties.commitId", + } + } + } +}; + +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" } }, - isExport: { - serializedName: "properties.isExport", - xmlName: "properties.isExport", - type: { - name: "Boolean" - } - }, - isSynced: { - serializedName: "properties.isSynced", - xmlName: "properties.isSynced", - type: { - name: "Boolean" - } - }, - isGitEnabled: { - serializedName: "properties.isGitEnabled", - xmlName: "properties.isGitEnabled", - type: { - name: "Boolean" - } - }, - syncDate: { - serializedName: "properties.syncDate", - xmlName: "properties.syncDate", + connectionString: { + constraints: { + MaxLength: 300 + }, + serializedName: "properties.connectionString", + xmlName: "properties.connectionString", type: { - name: "DateTime" + name: "String" } }, - configurationChangeDate: { - serializedName: "properties.configurationChangeDate", - xmlName: "properties.configurationChangeDate", + useFromLocation: { + constraints: { + MaxLength: 256 + }, + serializedName: "properties.useFromLocation", + xmlName: "properties.useFromLocation", type: { - name: "DateTime" + name: "String" } }, - lastOperationId: { - serializedName: "properties.lastOperationId", - xmlName: "properties.lastOperationId", + resourceId: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { name: "String" } @@ -12406,81 +13882,85 @@ export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = } }; -export const OperationContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationContractProperties", +export const CertificateContract: coreClient.CompositeMapper = { + serializedName: "CertificateContract", type: { name: "Composite", - className: "OperationContractProperties", + className: "CertificateContract", modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + subject: { + serializedName: "properties.subject", + xmlName: "properties.subject", type: { name: "String" } }, - method: { - serializedName: "method", - required: true, - xmlName: "method", + thumbprint: { + serializedName: "properties.thumbprint", + xmlName: "properties.thumbprint", type: { name: "String" } }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "urlTemplate", - required: true, - xmlName: "urlTemplate", + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", + type: { + name: "DateTime" + } + }, + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { - name: "String" + name: "Composite", + className: "KeyVaultContractProperties" } } } } }; -export const OperationUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "OperationUpdateContractProperties", +export const ContentTypeContract: coreClient.CompositeMapper = { + serializedName: "ContentTypeContract", type: { name: "Composite", - className: "OperationUpdateContractProperties", + className: "ContentTypeContract", modelProperties: { - ...OperationEntityBaseContract.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - method: { - serializedName: "method", - xmlName: "method", + namePropertiesName: { + serializedName: "properties.name", + xmlName: "properties.name", type: { name: "String" } }, - urlTemplate: { - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - serializedName: "urlTemplate", - xmlName: "urlTemplate", + description: { + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + schema: { + serializedName: "properties.schema", + xmlName: "properties.schema", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + version: { + serializedName: "properties.version", + xmlName: "properties.version", type: { name: "String" } @@ -12489,108 +13969,154 @@ export const OperationUpdateContractProperties: coreClient.CompositeMapper = { } }; -export const ProductContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductContractProperties", +export const ContentItemContract: coreClient.CompositeMapper = { + serializedName: "ContentItemContract", type: { name: "Composite", - className: "ProductContractProperties", + className: "ContentItemContract", modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + xmlName: "properties", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ProductTagResourceContractProperties: coreClient.CompositeMapper = { - serializedName: "ProductTagResourceContractProperties", +export const DeletedServiceContract: coreClient.CompositeMapper = { + serializedName: "DeletedServiceContract", type: { name: "Composite", - className: "ProductTagResourceContractProperties", + className: "DeletedServiceContract", modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, - id: { - serializedName: "id", - xmlName: "id", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + xmlName: "location", type: { name: "String" } }, - name: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "name", - required: true, - xmlName: "name", + 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 ProductUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ProductUpdateProperties", +export const EmailTemplateContract: coreClient.CompositeMapper = { + serializedName: "EmailTemplateContract", type: { name: "Composite", - className: "ProductUpdateProperties", + className: "EmailTemplateContract", modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, - displayName: { + ...ProxyResource.type.modelProperties, + subject: { constraints: { - MaxLength: 300, + MaxLength: 1000, MinLength: 1 }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "properties.subject", + xmlName: "properties.subject", + type: { + name: "String" + } + }, + body: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.body", + xmlName: "properties.body", + type: { + name: "String" + } + }, + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } + }, + 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 IssueContractProperties: coreClient.CompositeMapper = { - serializedName: "IssueContractProperties", +export const GatewayContract: coreClient.CompositeMapper = { + serializedName: "GatewayContract", type: { name: "Composite", - className: "IssueContractProperties", + className: "GatewayContract", modelProperties: { - ...IssueContractBaseProperties.type.modelProperties, - title: { - serializedName: "title", - required: true, - xmlName: "title", + ...ProxyResource.type.modelProperties, + locationData: { + serializedName: "properties.locationData", + xmlName: "properties.locationData", type: { - name: "String" + name: "Composite", + className: "ResourceLocationDataContract" } }, description: { - serializedName: "description", - required: true, - xmlName: "description", - type: { - name: "String" - } - }, - userId: { - serializedName: "userId", - required: true, - xmlName: "userId", + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } @@ -12599,59 +14125,70 @@ export const IssueContractProperties: coreClient.CompositeMapper = { } }; -export const IssueUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "IssueUpdateContractProperties", +export const GatewayHostnameConfigurationContract: coreClient.CompositeMapper = { + serializedName: "GatewayHostnameConfigurationContract", type: { name: "Composite", - className: "IssueUpdateContractProperties", + className: "GatewayHostnameConfigurationContract", modelProperties: { - ...IssueContractBaseProperties.type.modelProperties, - title: { - serializedName: "title", - xmlName: "title", + ...ProxyResource.type.modelProperties, + hostname: { + serializedName: "properties.hostname", + xmlName: "properties.hostname", type: { name: "String" } }, - description: { - serializedName: "description", - xmlName: "description", + certificateId: { + serializedName: "properties.certificateId", + xmlName: "properties.certificateId", + type: { + name: "String" + } + }, + negotiateClientCertificate: { + serializedName: "properties.negotiateClientCertificate", + xmlName: "properties.negotiateClientCertificate", + type: { + name: "Boolean" + } + }, + tls10Enabled: { + serializedName: "properties.tls10Enabled", + xmlName: "properties.tls10Enabled", + type: { + name: "Boolean" + } + }, + tls11Enabled: { + serializedName: "properties.tls11Enabled", + xmlName: "properties.tls11Enabled", type: { - name: "String" + name: "Boolean" } }, - userId: { - serializedName: "userId", - xmlName: "userId", + http2Enabled: { + serializedName: "properties.http2Enabled", + xmlName: "properties.http2Enabled", type: { - name: "String" + name: "Boolean" } } } } }; -export const TagDescriptionContractProperties: coreClient.CompositeMapper = { - serializedName: "TagDescriptionContractProperties", +export const AssociationContract: coreClient.CompositeMapper = { + serializedName: "AssociationContract", type: { name: "Composite", - className: "TagDescriptionContractProperties", + className: "AssociationContract", modelProperties: { - ...TagDescriptionBaseProperties.type.modelProperties, - tagId: { - serializedName: "tagId", - xmlName: "tagId", - type: { - name: "String" - } - }, - displayName: { - constraints: { - MaxLength: 160, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + ...ProxyResource.type.modelProperties, + provisioningState: { + defaultValue: "created", + isConstant: true, + serializedName: "properties.provisioningState", type: { name: "String" } @@ -12660,58 +14197,71 @@ export const TagDescriptionContractProperties: coreClient.CompositeMapper = { } }; -export const ApiVersionSetContractProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetContractProperties", +export const GatewayCertificateAuthorityContract: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthorityContract", type: { name: "Composite", - className: "ApiVersionSetContractProperties", + className: "GatewayCertificateAuthorityContract", modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, - displayName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", - type: { - name: "String" - } - }, - versioningScheme: { - serializedName: "versioningScheme", - required: true, - xmlName: "versioningScheme", + ...ProxyResource.type.modelProperties, + isTrusted: { + serializedName: "properties.isTrusted", + xmlName: "properties.isTrusted", type: { - name: "String" + name: "Boolean" } } } } }; -export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "ApiVersionSetUpdateParametersProperties", +export const GroupContract: coreClient.CompositeMapper = { + serializedName: "GroupContract", type: { name: "Composite", - className: "ApiVersionSetUpdateParametersProperties", + className: "GroupContract", modelProperties: { - ...ApiVersionSetEntityBase.type.modelProperties, + ...ProxyResource.type.modelProperties, displayName: { constraints: { - MaxLength: 100, + MaxLength: 300, MinLength: 1 }, - serializedName: "displayName", - xmlName: "displayName", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - versioningScheme: { - serializedName: "versioningScheme", - xmlName: "versioningScheme", + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" + } + }, + builtIn: { + serializedName: "properties.builtIn", + readOnly: true, + xmlName: "properties.builtIn", + type: { + name: "Boolean" + } + }, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "Enum", + allowedValues: ["custom", "system", "external"] + } + }, + externalId: { + serializedName: "properties.externalId", + xmlName: "properties.externalId", type: { name: "String" } @@ -12720,272 +14270,199 @@ export const ApiVersionSetUpdateParametersProperties: coreClient.CompositeMapper } }; -export const AuthorizationServerContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContractProperties", +export const UserContract: coreClient.CompositeMapper = { + serializedName: "UserContract", type: { name: "Composite", - className: "AuthorizationServerContractProperties", + className: "UserContract", modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", - type: { - name: "String" - } - }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - required: true, - xmlName: "clientRegistrationEndpoint", + ...ProxyResource.type.modelProperties, + state: { + defaultValue: "active", + serializedName: "properties.state", + xmlName: "properties.state", type: { name: "String" } }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - required: true, - xmlName: "authorizationEndpoint", + note: { + serializedName: "properties.note", + xmlName: "properties.note", type: { name: "String" } }, - grantTypes: { - serializedName: "grantTypes", - required: true, - xmlName: "grantTypes", - xmlElementName: "GrantType", + identities: { + serializedName: "properties.identities", + xmlName: "properties.identities", + xmlElementName: "UserIdentityContract", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "UserIdentityContract" } } } }, - clientId: { - serializedName: "clientId", - required: true, - xmlName: "clientId", + firstName: { + serializedName: "properties.firstName", + xmlName: "properties.firstName", type: { name: "String" } }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerUpdateContractProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContractProperties", - type: { - name: "Composite", - className: "AuthorizationServerUpdateContractProperties", - modelProperties: { - ...AuthorizationServerContractBaseProperties.type.modelProperties, - displayName: { - constraints: { - MaxLength: 50, - MinLength: 1 - }, - serializedName: "displayName", - xmlName: "displayName", + lastName: { + serializedName: "properties.lastName", + xmlName: "properties.lastName", type: { name: "String" } }, - clientRegistrationEndpoint: { - serializedName: "clientRegistrationEndpoint", - xmlName: "clientRegistrationEndpoint", + email: { + serializedName: "properties.email", + xmlName: "properties.email", type: { name: "String" } }, - authorizationEndpoint: { - serializedName: "authorizationEndpoint", - xmlName: "authorizationEndpoint", + registrationDate: { + serializedName: "properties.registrationDate", + xmlName: "properties.registrationDate", type: { - name: "String" + name: "DateTime" } }, - grantTypes: { - serializedName: "grantTypes", - xmlName: "grantTypes", - xmlElementName: "GrantType", + groups: { + serializedName: "properties.groups", + readOnly: true, + xmlName: "properties.groups", + xmlElementName: "GroupContractProperties", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "GroupContractProperties" } } } - }, - clientId: { - serializedName: "clientId", - xmlName: "clientId", - type: { - name: "String" - } - }, - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } } } } }; -export const BackendContractProperties: coreClient.CompositeMapper = { - serializedName: "BackendContractProperties", +export const IdentityProviderContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderContract", type: { name: "Composite", - className: "BackendContractProperties", + className: "IdentityProviderContract", modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { + ...ProxyResource.type.modelProperties, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", + type: { + name: "String" + } + }, + signinTenant: { + serializedName: "properties.signinTenant", + xmlName: "properties.signinTenant", + type: { + name: "String" + } + }, + allowedTenants: { constraints: { - MaxLength: 2000, - MinLength: 1 + MaxItems: 32 }, - serializedName: "url", - required: true, - xmlName: "url", + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - protocol: { - serializedName: "protocol", - required: true, - xmlName: "protocol", + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", type: { name: "String" } - } - } - } -}; - -export const BackendUpdateParameterProperties: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameterProperties", - type: { - name: "Composite", - className: "BackendUpdateParameterProperties", - modelProperties: { - ...BackendBaseParameters.type.modelProperties, - url: { + }, + signupPolicyName: { constraints: { - MaxLength: 2000, MinLength: 1 }, - serializedName: "url", - xmlName: "url", + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { name: "String" } }, - protocol: { - serializedName: "protocol", - xmlName: "protocol", + signinPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { name: "String" } - } - } - } -}; - -export const KeyVaultContractProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultContractProperties", - type: { - name: "Composite", - className: "KeyVaultContractProperties", - modelProperties: { - ...KeyVaultContractCreateProperties.type.modelProperties, - lastStatus: { - serializedName: "lastStatus", - xmlName: "lastStatus", + }, + profileEditingPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { - name: "Composite", - className: "KeyVaultLastAccessStatusContractProperties" + name: "String" } - } - } - } -}; - -export const ApiManagementServiceProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceProperties", - type: { - name: "Composite", - className: "ApiManagementServiceProperties", - modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { + }, + passwordResetPolicyName: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "publisherEmail", - required: true, - xmlName: "publisherEmail", + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { name: "String" } }, - publisherName: { + clientLibrary: { constraints: { - MaxLength: 100 + MaxLength: 16 }, - serializedName: "publisherName", - required: true, - xmlName: "publisherName", + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { name: "String" } - } - } - } -}; - -export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateProperties", - type: { - name: "Composite", - className: "ApiManagementServiceUpdateProperties", - modelProperties: { - ...ApiManagementServiceBaseProperties.type.modelProperties, - publisherEmail: { + }, + clientId: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "publisherEmail", - xmlName: "publisherEmail", + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { name: "String" } }, - publisherName: { + clientSecret: { constraints: { - MaxLength: 100 + MinLength: 1 }, - serializedName: "publisherName", - xmlName: "publisherName", + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } @@ -12994,57 +14471,34 @@ export const ApiManagementServiceUpdateProperties: coreClient.CompositeMapper = } }; -export const ApiManagementServiceResource: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceResource", +export const IdentityProviderCreateContract: coreClient.CompositeMapper = { + serializedName: "IdentityProviderCreateContract", type: { name: "Composite", - className: "ApiManagementServiceResource", + className: "IdentityProviderCreateContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", - type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } - }, - identity: { - serializedName: "identity", - xmlName: "identity", - type: { - name: "Composite", - className: "ApiManagementServiceIdentity" - } - }, - systemData: { - serializedName: "systemData", - xmlName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - location: { - serializedName: "location", - required: true, - xmlName: "location", + ...ProxyResource.type.modelProperties, + typePropertiesType: { + serializedName: "properties.type", + xmlName: "properties.type", type: { 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: "ApiManagementServiceResourceZonesItem", + allowedTenants: { + constraints: { + MaxItems: 32 + }, + serializedName: "properties.allowedTenants", + xmlName: "properties.allowedTenants", + xmlElementName: "IdentityProviderBaseParametersAllowedTenantsItem", type: { name: "Sequence", element: { @@ -13054,1019 +14508,1199 @@ export const ApiManagementServiceResource: coreClient.CompositeMapper = { } } }, - notificationSenderEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", - type: { - name: "String" - } - }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", - type: { - name: "String" - } - }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", - type: { - name: "DateTime" - } - }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + authority: { + serializedName: "properties.authority", + xmlName: "properties.authority", type: { name: "String" } }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + signupPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.signupPolicyName", + xmlName: "properties.signupPolicyName", type: { name: "String" } }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + signinPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.signinPolicyName", + xmlName: "properties.signinPolicyName", type: { name: "String" } }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", - readOnly: true, - xmlName: "properties.managementApiUrl", + profileEditingPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.profileEditingPolicyName", + xmlName: "properties.profileEditingPolicyName", type: { name: "String" } }, - scmUrl: { - serializedName: "properties.scmUrl", - readOnly: true, - xmlName: "properties.scmUrl", + passwordResetPolicyName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.passwordResetPolicyName", + xmlName: "properties.passwordResetPolicyName", type: { name: "String" } }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + clientLibrary: { + constraints: { + MaxLength: 16 + }, + serializedName: "properties.clientLibrary", + xmlName: "properties.clientLibrary", type: { name: "String" } }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } - } - }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + clientId: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + clientSecret: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + } + } + } +}; + +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" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + description: { + constraints: { + MaxLength: 256 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" + name: "Dictionary", + value: { type: { name: "String" } } } }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + isBuffered: { + serializedName: "properties.isBuffered", + xmlName: "properties.isBuffered", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } + name: "Boolean" } }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + resourceId: { + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } - }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + } + } + } +}; + +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: "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" - } - }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", - type: { - name: "Boolean" + className: "KeyVaultContractProperties" } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + } + } + } +}; + +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: "RemotePrivateEndpointConnectionWrapper" + name: "String" } } } }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + secret: { + serializedName: "properties.secret", + xmlName: "properties.secret", + type: { + name: "Boolean" + } + }, + displayName: { + constraints: { + Pattern: new RegExp("^[A-Za-z0-9-._]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - publisherEmail: { + value: { constraints: { - MaxLength: 100 + MaxLength: 4096 }, - serializedName: "properties.publisherEmail", - required: true, - xmlName: "properties.publisherEmail", + serializedName: "properties.value", + xmlName: "properties.value", type: { name: "String" } }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherName", - required: true, - xmlName: "properties.publisherName", + keyVault: { + serializedName: "properties.keyVault", + xmlName: "properties.keyVault", type: { - name: "String" + name: "Composite", + className: "KeyVaultContractCreateProperties" } } } } }; -export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateParameters", +export const NotificationContract: coreClient.CompositeMapper = { + serializedName: "NotificationContract", type: { name: "Composite", - className: "ApiManagementServiceUpdateParameters", + className: "NotificationContract", modelProperties: { - ...ApimResource.type.modelProperties, - sku: { - serializedName: "sku", - xmlName: "sku", + ...ProxyResource.type.modelProperties, + title: { + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + serializedName: "properties.title", + xmlName: "properties.title", type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" + name: "String" } }, - identity: { - serializedName: "identity", - xmlName: "identity", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" + name: "String" } }, - etag: { - serializedName: "etag", - readOnly: true, - xmlName: "etag", + recipients: { + serializedName: "properties.recipients", + xmlName: "properties.recipients", + type: { + name: "Composite", + className: "RecipientsContractProperties" + } + } + } + } +}; + +export const RecipientUserContract: coreClient.CompositeMapper = { + serializedName: "RecipientUserContract", + type: { + name: "Composite", + className: "RecipientUserContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + userId: { + serializedName: "properties.userId", + xmlName: "properties.userId", type: { name: "String" } - }, - zones: { - serializedName: "zones", - xmlName: "zones", - xmlElementName: "ApiManagementServiceUpdateParametersZonesItem", + } + } + } +}; + +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: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - notificationSenderEmail: { + } + } + } +}; + +export const OpenidConnectProviderContract: coreClient.CompositeMapper = { + serializedName: "OpenidConnectProviderContract", + type: { + name: "Composite", + className: "OpenidConnectProviderContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { constraints: { - MaxLength: 100 + MaxLength: 50 }, - serializedName: "properties.notificationSenderEmail", - xmlName: "properties.notificationSenderEmail", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - xmlName: "properties.provisioningState", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - targetProvisioningState: { - serializedName: "properties.targetProvisioningState", - readOnly: true, - xmlName: "properties.targetProvisioningState", + metadataEndpoint: { + serializedName: "properties.metadataEndpoint", + xmlName: "properties.metadataEndpoint", type: { name: "String" } }, - createdAtUtc: { - serializedName: "properties.createdAtUtc", - readOnly: true, - xmlName: "properties.createdAtUtc", + clientId: { + serializedName: "properties.clientId", + xmlName: "properties.clientId", type: { - name: "DateTime" + name: "String" } }, - gatewayUrl: { - serializedName: "properties.gatewayUrl", - readOnly: true, - xmlName: "properties.gatewayUrl", + clientSecret: { + serializedName: "properties.clientSecret", + xmlName: "properties.clientSecret", type: { name: "String" } }, - gatewayRegionalUrl: { - serializedName: "properties.gatewayRegionalUrl", - readOnly: true, - xmlName: "properties.gatewayRegionalUrl", + useInTestConsole: { + serializedName: "properties.useInTestConsole", + xmlName: "properties.useInTestConsole", type: { - name: "String" + name: "Boolean" } }, - portalUrl: { - serializedName: "properties.portalUrl", - readOnly: true, - xmlName: "properties.portalUrl", + useInApiDocumentation: { + serializedName: "properties.useInApiDocumentation", + xmlName: "properties.useInApiDocumentation", type: { - name: "String" + name: "Boolean" } - }, - managementApiUrl: { - serializedName: "properties.managementApiUrl", + } + } + } +}; + +export const PolicyDescriptionContract: coreClient.CompositeMapper = { + serializedName: "PolicyDescriptionContract", + type: { + name: "Composite", + className: "PolicyDescriptionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", readOnly: true, - xmlName: "properties.managementApiUrl", + xmlName: "properties.description", type: { name: "String" } }, - scmUrl: { - serializedName: "properties.scmUrl", + scope: { + serializedName: "properties.scope", readOnly: true, - xmlName: "properties.scmUrl", + xmlName: "properties.scope", + type: { + name: "Number" + } + } + } + } +}; + +export const PolicyFragmentContract: coreClient.CompositeMapper = { + serializedName: "PolicyFragmentContract", + type: { + name: "Composite", + className: "PolicyFragmentContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + value: { + serializedName: "properties.value", + xmlName: "properties.value", type: { name: "String" } }, - developerPortalUrl: { - serializedName: "properties.developerPortalUrl", - readOnly: true, - xmlName: "properties.developerPortalUrl", + description: { + constraints: { + MaxLength: 1000 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", - xmlName: "properties.hostnameConfigurations", - xmlElementName: "HostnameConfiguration", + format: { + serializedName: "properties.format", + xmlName: "properties.format", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } + name: "String" } - }, - publicIPAddresses: { - serializedName: "properties.publicIPAddresses", - readOnly: true, - xmlName: "properties.publicIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPublicIPAddressesItem", + } + } + } +}; + +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: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } - }, - privateIPAddresses: { - serializedName: "properties.privateIPAddresses", - readOnly: true, - xmlName: "properties.privateIPAddresses", - xmlElementName: - "ApiManagementServiceBasePropertiesPrivateIPAddressesItem", + }, + signin: { + serializedName: "properties.signin", + xmlName: "properties.signin", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "PortalConfigPropertiesSignin" } }, - publicIpAddressId: { - serializedName: "properties.publicIpAddressId", - xmlName: "properties.publicIpAddressId", + signup: { + serializedName: "properties.signup", + xmlName: "properties.signup", type: { - name: "String" + name: "Composite", + className: "PortalConfigPropertiesSignup" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - xmlName: "properties.publicNetworkAccess", + delegation: { + serializedName: "properties.delegation", + xmlName: "properties.delegation", type: { - name: "String" + name: "Composite", + className: "PortalConfigDelegationProperties" } }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", - xmlName: "properties.virtualNetworkConfiguration", + cors: { + serializedName: "properties.cors", + xmlName: "properties.cors", type: { name: "Composite", - className: "VirtualNetworkConfiguration" + className: "PortalConfigCorsProperties" } }, - additionalLocations: { - serializedName: "properties.additionalLocations", - xmlName: "properties.additionalLocations", - xmlElementName: "AdditionalLocation", + csp: { + serializedName: "properties.csp", + xmlName: "properties.csp", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } + name: "Composite", + className: "PortalConfigCspProperties" + } + } + } + } +}; + +export const PortalRevisionContract: coreClient.CompositeMapper = { + serializedName: "PortalRevisionContract", + type: { + name: "Composite", + className: "PortalRevisionContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + description: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.description", + xmlName: "properties.description", + type: { + name: "String" } }, - customProperties: { - serializedName: "properties.customProperties", - xmlName: "properties.customProperties", + statusDetails: { + constraints: { + MaxLength: 2000 + }, + serializedName: "properties.statusDetails", + readOnly: true, + xmlName: "properties.statusDetails", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - certificates: { - serializedName: "properties.certificates", - xmlName: "properties.certificates", - xmlElementName: "CertificateConfiguration", + status: { + serializedName: "properties.status", + readOnly: true, + xmlName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateConfiguration" - } - } + name: "String" } }, - enableClientCertificate: { - defaultValue: false, - serializedName: "properties.enableClientCertificate", - xmlName: "properties.enableClientCertificate", + isCurrent: { + serializedName: "properties.isCurrent", + xmlName: "properties.isCurrent", type: { name: "Boolean" } }, - disableGateway: { - defaultValue: false, - serializedName: "properties.disableGateway", - xmlName: "properties.disableGateway", + createdDateTime: { + serializedName: "properties.createdDateTime", + readOnly: true, + xmlName: "properties.createdDateTime", type: { - name: "Boolean" + name: "DateTime" } }, - virtualNetworkType: { - defaultValue: "None", - serializedName: "properties.virtualNetworkType", - xmlName: "properties.virtualNetworkType", + 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" } }, - apiVersionConstraint: { - serializedName: "properties.apiVersionConstraint", - xmlName: "properties.apiVersionConstraint", + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", type: { - name: "Composite", - className: "ApiVersionConstraint" + name: "String" } }, - restore: { - defaultValue: false, - serializedName: "properties.restore", - xmlName: "properties.restore", + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", type: { - name: "Boolean" + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties" } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - xmlName: "properties.privateEndpointConnections", - xmlElementName: "RemotePrivateEndpointConnectionWrapper", + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemotePrivateEndpointConnectionWrapper" - } - } + name: "Composite", + className: "RegistrationDelegationSettingsProperties" } }, - platformVersion: { - serializedName: "properties.platformVersion", - readOnly: true, - xmlName: "properties.platformVersion", + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" + name: "Boolean" } }, - publisherEmail: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherEmail", - xmlName: "properties.publisherEmail", + termsOfService: { + serializedName: "properties.termsOfService", + xmlName: "properties.termsOfService", type: { - name: "String" + name: "Composite", + className: "TermsOfServiceProperties" } - }, - publisherName: { - constraints: { - MaxLength: 100 - }, - serializedName: "properties.publisherName", - xmlName: "properties.publisherName", + } + } + } +}; + +export const PortalSigninSettings: coreClient.CompositeMapper = { + serializedName: "PortalSigninSettings", + type: { + name: "Composite", + className: "PortalSigninSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" + name: "Boolean" } } } } }; -export const UserContractProperties: coreClient.CompositeMapper = { - serializedName: "UserContractProperties", +export const PortalSignupSettings: coreClient.CompositeMapper = { + serializedName: "PortalSignupSettings", type: { name: "Composite", - className: "UserContractProperties", + className: "PortalSignupSettings", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - firstName: { - serializedName: "firstName", - xmlName: "firstName", + ...ProxyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", type: { - name: "String" + name: "Boolean" } }, - lastName: { - serializedName: "lastName", - xmlName: "lastName", + 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" } }, - email: { - serializedName: "email", - xmlName: "email", + validationKey: { + serializedName: "properties.validationKey", + xmlName: "properties.validationKey", type: { name: "String" } }, - registrationDate: { - serializedName: "registrationDate", - xmlName: "registrationDate", + subscriptions: { + serializedName: "properties.subscriptions", + xmlName: "properties.subscriptions", type: { - name: "DateTime" + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties" } }, - groups: { - serializedName: "groups", - readOnly: true, - xmlName: "groups", - xmlElementName: "GroupContractProperties", + userRegistration: { + serializedName: "properties.userRegistration", + xmlName: "properties.userRegistration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GroupContractProperties" - } - } + name: "Composite", + className: "RegistrationDelegationSettingsProperties" } } } } }; -export const UserCreateParameterProperties: coreClient.CompositeMapper = { - serializedName: "UserCreateParameterProperties", +export const SubscriptionContract: coreClient.CompositeMapper = { + serializedName: "SubscriptionContract", type: { name: "Composite", - className: "UserCreateParameterProperties", + className: "SubscriptionContract", modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 - }, - serializedName: "email", - required: true, - xmlName: "email", + ...ProxyResource.type.modelProperties, + ownerId: { + serializedName: "properties.ownerId", + xmlName: "properties.ownerId", type: { name: "String" } }, - firstName: { - constraints: { - MaxLength: 100, - MinLength: 1 - }, - serializedName: "firstName", - required: true, - xmlName: "firstName", + scope: { + serializedName: "properties.scope", + xmlName: "properties.scope", type: { name: "String" } }, - lastName: { + displayName: { constraints: { - MaxLength: 100, - MinLength: 1 + MaxLength: 100 }, - serializedName: "lastName", - required: true, - xmlName: "lastName", + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - password: { - serializedName: "password", - xmlName: "password", + state: { + serializedName: "properties.state", + xmlName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled" + ] } }, - appType: { - serializedName: "appType", - xmlName: "appType", + createdDate: { + serializedName: "properties.createdDate", + readOnly: true, + xmlName: "properties.createdDate", type: { - name: "String" + name: "DateTime" } }, - confirmation: { - serializedName: "confirmation", - xmlName: "confirmation", + startDate: { + serializedName: "properties.startDate", + xmlName: "properties.startDate", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const UserUpdateParametersProperties: coreClient.CompositeMapper = { - serializedName: "UserUpdateParametersProperties", - type: { - name: "Composite", - className: "UserUpdateParametersProperties", - modelProperties: { - ...UserEntityBaseParameters.type.modelProperties, - email: { - constraints: { - MaxLength: 254, - MinLength: 1 - }, - serializedName: "email", - xmlName: "email", + }, + expirationDate: { + serializedName: "properties.expirationDate", + xmlName: "properties.expirationDate", type: { - name: "String" + name: "DateTime" } }, - password: { - serializedName: "password", - xmlName: "password", + endDate: { + serializedName: "properties.endDate", + xmlName: "properties.endDate", type: { - name: "String" + name: "DateTime" } }, - firstName: { + notificationDate: { + serializedName: "properties.notificationDate", + xmlName: "properties.notificationDate", + type: { + name: "DateTime" + } + }, + primaryKey: { constraints: { - MaxLength: 100, + MaxLength: 256, MinLength: 1 }, - serializedName: "firstName", - xmlName: "firstName", + serializedName: "properties.primaryKey", + xmlName: "properties.primaryKey", type: { name: "String" } }, - lastName: { + secondaryKey: { constraints: { - MaxLength: 100, + MaxLength: 256, MinLength: 1 }, - serializedName: "lastName", - xmlName: "lastName", + serializedName: "properties.secondaryKey", + xmlName: "properties.secondaryKey", + type: { + name: "String" + } + }, + stateComment: { + serializedName: "properties.stateComment", + xmlName: "properties.stateComment", type: { name: "String" } + }, + allowTracing: { + serializedName: "properties.allowTracing", + xmlName: "properties.allowTracing", + type: { + name: "Boolean" + } } } } }; -export const IdentityProviderContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderContractProperties", +export const GlobalSchemaContract: coreClient.CompositeMapper = { + serializedName: "GlobalSchemaContract", type: { name: "Composite", - className: "IdentityProviderContractProperties", + className: "GlobalSchemaContract", modelProperties: { - ...IdentityProviderBaseParameters.type.modelProperties, - clientId: { - constraints: { - MinLength: 1 - }, - serializedName: "clientId", - required: true, - xmlName: "clientId", + ...ProxyResource.type.modelProperties, + schemaType: { + serializedName: "properties.schemaType", + xmlName: "properties.schemaType", type: { name: "String" } }, - clientSecret: { - constraints: { - MinLength: 1 - }, - serializedName: "clientSecret", - xmlName: "clientSecret", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } + }, + value: { + serializedName: "properties.value", + xmlName: "properties.value", + type: { + name: "any" + } + }, + document: { + serializedName: "properties.document", + xmlName: "properties.document", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } } } } }; -export const IdentityProviderCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderCreateContractProperties", +export const TenantSettingsContract: coreClient.CompositeMapper = { + serializedName: "TenantSettingsContract", type: { name: "Composite", - className: "IdentityProviderCreateContractProperties", + 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", - required: true, - xmlName: "clientSecret", + ...ProxyResource.type.modelProperties, + settings: { + serializedName: "properties.settings", + xmlName: "properties.settings", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const IdentityProviderUpdateProperties: coreClient.CompositeMapper = { - serializedName: "IdentityProviderUpdateProperties", +export const AccessInformationContract: coreClient.CompositeMapper = { + serializedName: "AccessInformationContract", type: { name: "Composite", - className: "IdentityProviderUpdateProperties", + className: "AccessInformationContract", 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", + principalId: { + serializedName: "properties.principalId", + xmlName: "properties.principalId", type: { name: "String" } + }, + enabled: { + serializedName: "properties.enabled", + xmlName: "properties.enabled", + type: { + name: "Boolean" + } } } } }; -export const NamedValueContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueContractProperties", +export const OperationResultContract: coreClient.CompositeMapper = { + serializedName: "OperationResultContract", type: { name: "Composite", - className: "NamedValueContractProperties", + className: "OperationResultContract", 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, + idPropertiesId: { + serializedName: "properties.id", + xmlName: "properties.id", type: { name: "String" } }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "value", - xmlName: "value", + 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" } }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + error: { + serializedName: "properties.error", + xmlName: "properties.error", type: { name: "Composite", - className: "KeyVaultContractProperties" + className: "ErrorResponseBody" + } + }, + actionLog: { + serializedName: "properties.actionLog", + readOnly: true, + xmlName: "properties.actionLog", + xmlElementName: "OperationResultLogItemContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationResultLogItemContract" + } + } } } } } }; -export const NamedValueCreateContractProperties: coreClient.CompositeMapper = { - serializedName: "NamedValueCreateContractProperties", +export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = { + serializedName: "TenantConfigurationSyncStateContract", type: { name: "Composite", - className: "NamedValueCreateContractProperties", + 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" } }, - value: { - constraints: { - MaxLength: 4096 - }, - serializedName: "value", - xmlName: "value", + commitId: { + serializedName: "properties.commitId", + xmlName: "properties.commitId", type: { name: "String" } }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + isExport: { + serializedName: "properties.isExport", + xmlName: "properties.isExport", type: { - name: "Composite", - className: "KeyVaultContractCreateProperties" + name: "Boolean" + } + }, + isSynced: { + serializedName: "properties.isSynced", + xmlName: "properties.isSynced", + type: { + name: "Boolean" + } + }, + isGitEnabled: { + serializedName: "properties.isGitEnabled", + xmlName: "properties.isGitEnabled", + type: { + name: "Boolean" + } + }, + syncDate: { + serializedName: "properties.syncDate", + xmlName: "properties.syncDate", + type: { + name: "DateTime" + } + }, + configurationChangeDate: { + serializedName: "properties.configurationChangeDate", + xmlName: "properties.configurationChangeDate", + type: { + name: "DateTime" + } + }, + lastOperationId: { + serializedName: "properties.lastOperationId", + xmlName: "properties.lastOperationId", + type: { + name: "String" } } } } }; -export const 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: "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" } }, - keyVault: { - serializedName: "keyVault", - xmlName: "keyVault", + error: { + serializedName: "properties.error", + xmlName: "properties.error", type: { name: "Composite", - className: "KeyVaultContractCreateProperties" + className: "ErrorResponseBody" + } + }, + actionLog: { + serializedName: "properties.actionLog", + readOnly: true, + xmlName: "properties.actionLog", + xmlElementName: "ResolverResultLogItemContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResolverResultLogItemContract" + } + } } } } } }; -export const ApiCreateOrUpdateProperties: coreClient.CompositeMapper = { - serializedName: "ApiCreateOrUpdateProperties", +export const WikiContract: coreClient.CompositeMapper = { + serializedName: "WikiContract", type: { name: "Composite", - className: "ApiCreateOrUpdateProperties", + className: "WikiContract", modelProperties: { - ...ApiContractProperties.type.modelProperties, - value: { - serializedName: "value", - xmlName: "value", + ...ProxyResourceAutoGenerated.type.modelProperties, + documents: { + serializedName: "properties.documents", + xmlName: "properties.documents", + xmlElementName: "WikiDocumentationContract", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WikiDocumentationContract" + } + } } - }, - format: { - serializedName: "format", - xmlName: "format", + } + } + } +}; + +export const DocumentationContract: coreClient.CompositeMapper = { + serializedName: "DocumentationContract", + type: { + name: "Composite", + className: "DocumentationContract", + modelProperties: { + ...ProxyResourceAutoGenerated.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - wsdlSelector: { - serializedName: "wsdlSelector", - xmlName: "wsdlSelector", - type: { - name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" - } - }, - soapApiType: { - serializedName: "apiType", - xmlName: "apiType", + content: { + serializedName: "properties.content", + xmlName: "properties.content", type: { name: "String" } @@ -14517,6 +16151,125 @@ export const TagUpdateHeaders: coreClient.CompositeMapper = { } }; +export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_updateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { serializedName: "ApiPolicy_getEntityTagHeaders", type: { @@ -14908,6 +16661,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: { @@ -15031,7 +16852,126 @@ export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { serializedName: "AuthorizationServer_updateHeaders", type: { name: "Composite", - className: "AuthorizationServerUpdateHeaders", + className: "AuthorizationServerUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_listSecretsHeaders", + type: { + name: "Composite", + className: "AuthorizationServerListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const 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 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", @@ -15044,11 +16984,11 @@ export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_listSecretsHeaders", +export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationServerListSecretsHeaders", + className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16149,6 +18089,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: { @@ -16438,6 +18463,159 @@ 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: { + name: "Composite", + className: "GlobalSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getHeaders", + type: { + name: "Composite", + className: "GlobalSchemaGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GlobalSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { serializedName: "TenantSettings_getHeaders", type: { @@ -16709,3 +18887,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 154cf17b3420..a67bb88b7259 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,16 @@ 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, + AuthorizationLoginRequestContract as AuthorizationLoginRequestContractMapper, + AuthorizationAccessPolicyContract as AuthorizationAccessPolicyContractMapper, BackendContract as BackendContractMapper, BackendUpdateParameters as BackendUpdateParametersMapper, BackendReconnectContract as BackendReconnectContractMapper, @@ -37,6 +45,7 @@ import { CacheUpdateParameters as CacheUpdateParametersMapper, CertificateCreateOrUpdateParameters as CertificateCreateOrUpdateParametersMapper, ConnectivityCheckRequest as ConnectivityCheckRequestMapper, + ContentTypeContract as ContentTypeContractMapper, ApiManagementServiceBackupRestoreParameters as ApiManagementServiceBackupRestoreParametersMapper, ApiManagementServiceResource as ApiManagementServiceResourceMapper, ApiManagementServiceUpdateParameters as ApiManagementServiceUpdateParametersMapper, @@ -59,6 +68,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, @@ -67,6 +78,7 @@ import { ProductContract as ProductContractMapper, ProductUpdateParameters as ProductUpdateParametersMapper, QuotaCounterValueUpdateContract as QuotaCounterValueUpdateContractMapper, + GlobalSchemaContract as GlobalSchemaContractMapper, SubscriptionCreateParameters as SubscriptionCreateParametersMapper, SubscriptionUpdateParameters as SubscriptionUpdateParametersMapper, AccessInformationCreateParameters as AccessInformationCreateParametersMapper, @@ -75,7 +87,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 = { @@ -106,6 +120,10 @@ export const $host: OperationURLParameter = { export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, serializedName: "resourceGroupName", required: true, xmlName: "resourceGroupName", @@ -196,7 +214,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: { @@ -208,6 +226,9 @@ export const apiVersion: OperationQueryParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { + constraints: { + MinLength: 1 + }, serializedName: "subscriptionId", required: true, xmlName: "subscriptionId", @@ -456,6 +477,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: { @@ -473,7 +520,6 @@ export const schemaId: OperationURLParameter = { parameterPath: "schemaId", mapper: { constraints: { - Pattern: new RegExp("^[^*#&+:<>?]+$"), MaxLength: 80, MinLength: 1 }, @@ -486,7 +532,7 @@ export const schemaId: OperationURLParameter = { } }; -export const parameters7: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: SchemaContractMapper }; @@ -519,7 +565,7 @@ export const diagnosticId: OperationURLParameter = { } }; -export const parameters8: OperationParameter = { +export const parameters10: OperationParameter = { parameterPath: "parameters", mapper: DiagnosticContractMapper }; @@ -552,12 +598,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 }; @@ -579,7 +625,7 @@ export const commentId: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: IssueCommentContractMapper }; @@ -601,7 +647,7 @@ export const attachmentId: OperationURLParameter = { } }; -export const parameters12: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: IssueAttachmentContractMapper }; @@ -623,7 +669,7 @@ export const tagDescriptionId: OperationURLParameter = { } }; -export const parameters13: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: TagDescriptionCreateParametersMapper }; @@ -639,6 +685,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: { @@ -680,12 +736,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 }; @@ -707,16 +763,87 @@ 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: 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 parameters25: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationAccessPolicyContractMapper +}; + export const backendId: OperationURLParameter = { parameterPath: "backendId", mapper: { @@ -733,17 +860,17 @@ export const backendId: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: BackendContractMapper }; -export const parameters19: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: BackendUpdateParametersMapper }; -export const parameters20: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: ["options", "parameters"], mapper: BackendReconnectContractMapper }; @@ -765,12 +892,12 @@ export const cacheId: OperationURLParameter = { } }; -export const parameters21: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: CacheContractMapper }; -export const parameters22: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: CacheUpdateParametersMapper }; @@ -803,7 +930,7 @@ export const certificateId: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: CertificateCreateOrUpdateParametersMapper }; @@ -829,6 +956,11 @@ export const contentTypeId: OperationURLParameter = { } }; +export const parameters32: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: ContentTypeContractMapper +}; + export const contentItemId: OperationURLParameter = { parameterPath: "contentItemId", mapper: { @@ -857,27 +989,27 @@ export const location: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceBackupRestoreParametersMapper }; -export const parameters25: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceResourceMapper }; -export const parameters26: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceUpdateParametersMapper }; -export const parameters27: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper }; -export const parameters28: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: ["options", "parameters"], mapper: ApiManagementServiceApplyNetworkConfigurationParametersMapper }; @@ -894,7 +1026,7 @@ export const templateName: OperationURLParameter = { } }; -export const parameters29: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: EmailTemplateUpdateParametersMapper }; @@ -915,17 +1047,17 @@ export const gatewayId: OperationURLParameter = { } }; -export const parameters30: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: GatewayContractMapper }; -export const parameters31: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: GatewayKeyRegenerationRequestContractMapper }; -export const parameters32: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: GatewayTokenRequestContractMapper }; @@ -946,17 +1078,17 @@ export const hcId: OperationURLParameter = { } }; -export const parameters33: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: GatewayHostnameConfigurationContractMapper }; -export const parameters34: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: ["options", "parameters"], mapper: AssociationContractMapper }; -export const parameters35: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: GatewayCertificateAuthorityContractMapper }; @@ -977,12 +1109,12 @@ export const groupId: OperationURLParameter = { } }; -export const parameters36: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: GroupCreateParametersMapper }; -export const parameters37: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: GroupUpdateParametersMapper }; @@ -1015,12 +1147,12 @@ export const identityProviderName: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: IdentityProviderCreateContractMapper }; -export const parameters39: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: IdentityProviderUpdateParametersMapper }; @@ -1041,12 +1173,12 @@ export const loggerId: OperationURLParameter = { } }; -export const parameters40: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: LoggerContractMapper }; -export const parameters41: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: LoggerUpdateContractMapper }; @@ -1067,12 +1199,12 @@ export const namedValueId: OperationURLParameter = { } }; -export const parameters42: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: NamedValueCreateContractMapper }; -export const parameters43: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: NamedValueUpdateParametersMapper }; @@ -1132,12 +1264,12 @@ export const opid: OperationURLParameter = { } }; -export const parameters44: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: OpenidConnectProviderContractMapper }; -export const parameters45: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: OpenidConnectProviderUpdateContractMapper }; @@ -1154,6 +1286,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 parameters55: 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 parameters56: OperationParameter = { + parameterPath: "parameters", + mapper: PortalConfigContractMapper +}; + export const portalRevisionId: OperationURLParameter = { parameterPath: "portalRevisionId", mapper: { @@ -1170,22 +1367,22 @@ export const portalRevisionId: OperationURLParameter = { } }; -export const parameters46: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: PortalRevisionContractMapper }; -export const parameters47: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: PortalSigninSettingsMapper }; -export const parameters48: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: PortalSignupSettingsMapper }; -export const parameters49: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: PortalDelegationSettingsMapper }; @@ -1230,12 +1427,12 @@ export const expandGroups: OperationQueryParameter = { } }; -export const parameters50: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: ProductContractMapper }; -export const parameters51: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: ProductUpdateParametersMapper }; @@ -1274,7 +1471,7 @@ export const quotaCounterKey: OperationURLParameter = { } }; -export const parameters52: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: QuotaCounterValueUpdateContractMapper }; @@ -1303,17 +1500,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: { @@ -1326,6 +1512,11 @@ export const interval: OperationQueryParameter = { } }; +export const parameters64: OperationParameter = { + parameterPath: "parameters", + mapper: GlobalSchemaContractMapper +}; + export const settingsType: OperationURLParameter = { parameterPath: "settingsType", mapper: { @@ -1354,7 +1545,7 @@ export const sid: OperationURLParameter = { } }; -export const parameters53: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: SubscriptionCreateParametersMapper }; @@ -1381,7 +1572,7 @@ export const appType: OperationQueryParameter = { } }; -export const parameters54: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: SubscriptionUpdateParametersMapper }; @@ -1398,17 +1589,17 @@ export const accessName: OperationURLParameter = { } }; -export const parameters55: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: AccessInformationCreateParametersMapper }; -export const parameters56: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: AccessInformationUpdateParametersMapper }; -export const parameters57: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: DeployConfigurationParametersMapper }; @@ -1425,22 +1616,49 @@ export const configurationName: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: SaveConfigurationParameterMapper }; -export const parameters59: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: UserCreateParametersMapper }; -export const parameters60: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", mapper: UserUpdateParametersMapper }; -export const parameters61: OperationParameter = { +export const parameters73: 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 parameters74: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationContractMapper +}; + +export const parameters75: 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 985b94c57e35..7e3b96489d39 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/api.ts @@ -54,7 +54,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 +138,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 +218,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 +235,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 +255,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 +275,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. @@ -349,7 +349,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 +375,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 +400,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 +423,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 +440,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 +459,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. @@ -688,14 +688,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.tags, - Parameters.expandApiVersionSet, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -717,13 +709,6 @@ const listByTagsNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedApis - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiDiagnostic.ts index e2948a9f4495..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, @@ -491,12 +491,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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 5c8cfeeaff89..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, @@ -484,13 +484,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.expandCommentsAttachments - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueAttachment.ts index a965ec76b3b1..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, @@ -454,12 +454,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiIssueComment.ts index 8833c58bdbcb..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, @@ -454,12 +454,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts index c8aa185942ac..a5f8d7391fd4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementOperations.ts @@ -143,7 +143,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts index 0e9785ae3607..e5d25bfdf6d8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts @@ -36,6 +36,8 @@ import { ApiManagementServiceGetOptionalParams, ApiManagementServiceGetResponse, ApiManagementServiceDeleteOptionalParams, + ApiManagementServiceMigrateToStv2OptionalParams, + ApiManagementServiceMigrateToStv2Response, ApiManagementServiceGetSsoTokenOptionalParams, ApiManagementServiceGetSsoTokenResponse, ApiManagementServiceCheckNameAvailabilityParameters, @@ -64,7 +66,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 +191,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. @@ -262,7 +264,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 +287,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. @@ -357,7 +359,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 +382,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. @@ -451,7 +453,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 +475,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. @@ -543,7 +545,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 +567,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 +584,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. */ @@ -645,7 +647,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 +664,101 @@ 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< + PollerLike< + PollOperationState, + ApiManagementServiceMigrateToStv2Response + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = 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 = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, options }, + migrateToStv2OperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "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 +783,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 +829,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. */ @@ -807,7 +901,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 +920,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 +974,7 @@ const restoreOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -913,7 +1007,7 @@ const backupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -946,7 +1040,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -979,7 +1073,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1036,6 +1130,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 +1233,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1153,7 +1278,7 @@ const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1176,7 +1301,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1197,7 +1321,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts index 16f077c47494..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. @@ -191,7 +191,6 @@ const listAvailableServiceSkusNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts index 323589f478d8..fa148734690f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementSkus.ts @@ -144,7 +144,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiOperation.ts index b0e510c3a347..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. @@ -501,13 +501,6 @@ const listByApiNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.tags, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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 0621b5f3c514..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. @@ -209,12 +209,6 @@ const listByApisNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRelease.ts index 6a3e383cd680..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. @@ -488,12 +488,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiRevision.ts index 7af2552d798c..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. @@ -209,12 +209,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts index c0c6bc5468de..f362fbd79f9f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts @@ -45,7 +45,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 +139,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,12 +159,11 @@ 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. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. */ getEntityTag( @@ -182,12 +181,11 @@ 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. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. */ get( @@ -205,12 +203,11 @@ 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. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters The schema contents to apply. * @param options The options parameters. */ @@ -282,12 +279,11 @@ 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. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters The schema contents to apply. * @param options The options parameters. */ @@ -312,12 +308,11 @@ 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. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param options The options parameters. @@ -338,7 +333,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. @@ -463,7 +458,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -515,12 +510,6 @@ const listByApiNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts index a45161624fa0..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, @@ -440,12 +440,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiVersionSet.ts index 56f455e72dbf..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, @@ -455,12 +455,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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..cee27584b924 --- /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.ErrorResponseAutoGenerated + } + }, + 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.ErrorResponseAutoGenerated + } + }, + 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.ErrorResponseAutoGenerated + } + }, + 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.ErrorResponseAutoGenerated + } + }, + 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..bfa5457c4799 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiWikis.ts @@ -0,0 +1,212 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT 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.ErrorResponseAutoGenerated + } + }, + queryParameters: [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.ErrorResponseAutoGenerated + } + }, + 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..a4a1ccf7e7c7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts @@ -0,0 +1,405 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT 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, + 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 + ); + } + + /** + * 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 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..f7d46b23b68c --- /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.parameters25, + 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..cfd3f706e265 --- /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.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 +}; 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 47d94c149684..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, @@ -488,12 +488,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts b/sdk/apimanagement/arm-apimanagement/src/operations/backend.ts index 88b5837b9aec..a7fa4edc18d4 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.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -427,7 +427,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -476,7 +476,7 @@ const reconnectOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -500,12 +500,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts b/sdk/apimanagement/arm-apimanagement/src/operations/cache.ts index b7339d4ea10b..176ffd6888b3 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.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -393,7 +393,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -443,7 +443,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/certificate.ts index e487cf0db013..ac9da2f7d8b1 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.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -438,13 +438,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.isKeyVaultRefreshFailed - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentItem.ts index 936626b88377..8cb97a9fc82f 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. @@ -219,7 +219,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. @@ -250,7 +250,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. @@ -407,7 +407,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts b/sdk/apimanagement/arm-apimanagement/src/operations/contentType.ts index 3e3dbfdc7aed..03c22abf0243 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 options The options parameters. @@ -187,7 +187,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 @@ -209,7 +209,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. @@ -292,6 +292,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -300,7 +301,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.contentTypeId ], - headerParameters: [Parameters.accept, Parameters.ifMatch], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", serializer }; const deleteOperationSpec: coreClient.OperationSpec = { @@ -336,7 +342,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts index b592cdc1e6d9..496c71fc924d 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.parameters49, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -214,7 +214,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/deletedServices.ts b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts index fcd96a8bd455..7373b2943cb3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/deletedServices.ts @@ -293,7 +293,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/src/operations/diagnostic.ts index a28cb0e96f9b..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, @@ -454,12 +454,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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..f38e25e46195 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts @@ -0,0 +1,462 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT 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.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.parameters74, + 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.parameters75, + 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.ErrorResponseAutoGenerated + } + }, + 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 993fee630f8b..52cd72d3f0df 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.parameters29, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -399,7 +399,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -449,12 +449,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts index 03122a60d2fe..617b3b9ee637 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.parameters30, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -475,7 +475,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -548,7 +548,7 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -573,7 +573,7 @@ const generateTokenOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -597,12 +597,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts index 21c9b367693c..ddfe50ec1caf 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.parameters34, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -359,12 +359,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts index 56afc9137b0c..a0657173a818 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.parameters35, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -438,12 +438,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts index ad07ed6033da..c5b0ae772877 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.parameters33, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -425,12 +425,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts new file mode 100644 index 000000000000..232c89fc0b14 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts @@ -0,0 +1,485 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT 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 { GlobalSchema } 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + GlobalSchemaContract, + GlobalSchemaListByServiceNextOptionalParams, + GlobalSchemaListByServiceOptionalParams, + GlobalSchemaListByServiceResponse, + GlobalSchemaGetEntityTagOptionalParams, + GlobalSchemaGetEntityTagResponse, + GlobalSchemaGetOptionalParams, + GlobalSchemaGetResponse, + GlobalSchemaCreateOrUpdateOptionalParams, + GlobalSchemaCreateOrUpdateResponse, + GlobalSchemaDeleteOptionalParams, + GlobalSchemaListByServiceNextResponse +} from "../models"; + +/// +/** Class containing GlobalSchema operations. */ +export class GlobalSchemaImpl implements GlobalSchema { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class GlobalSchema class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of schemas registered with 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?: GlobalSchemaListByServiceOptionalParams + ): 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?: GlobalSchemaListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GlobalSchemaListByServiceResponse; + 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?: GlobalSchemaListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of schemas registered with 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?: GlobalSchemaListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + schemaId: string, + options?: GlobalSchemaGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, schemaId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + schemaId: string, + options?: GlobalSchemaGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, schemaId, options }, + getOperationSpec + ); + } + + /** + * Creates new or updates existing specified Schema 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 schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: GlobalSchemaCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + GlobalSchemaCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = 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 = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, schemaId, parameters, options }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates new or updates existing specified Schema 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 schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: GlobalSchemaCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + schemaId, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specific Schema. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + schemaId: string, + ifMatch: string, + options?: GlobalSchemaDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, schemaId, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param 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?: GlobalSchemaListByServiceNextOptionalParams + ): 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}/schemas", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.GlobalSchemaGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.GlobalSchemaGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + }, + 202: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + }, + 204: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.GlobalSchemaCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters64, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; 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 ef6550747677..1ccc73579d17 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.parameters36, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -394,7 +394,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -444,12 +444,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/groupUser.ts index 640b30bec854..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. @@ -350,12 +350,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts index 46ef4e828a7a..44fb402b3545 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.parameters38, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -430,7 +430,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters39, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -504,7 +504,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts index ad235419a765..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,10 +74,13 @@ 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"; export * from "./reports"; +export * from "./globalSchema"; export * from "./tenantSettings"; export * from "./apiManagementSkus"; export * from "./subscription"; @@ -80,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 d30fd946cb0c..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. @@ -240,12 +240,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts index 8def84f38eb0..d1db800fe2e7 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.parameters40, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -400,7 +400,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -450,12 +450,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts index ff5f03a7a5ba..c42781df31e6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts @@ -53,7 +53,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 +137,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 +154,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 +173,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 +192,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. @@ -265,7 +265,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 +290,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 @@ -373,7 +373,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 +402,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 +424,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 +443,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. @@ -514,7 +514,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 +536,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 +656,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -698,7 +698,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -808,13 +808,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.isKeyVaultRefreshFailed - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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 1dd00b9e05fa..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. @@ -279,7 +279,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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 6551826a5dc5..1affc73bf8f4 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.parameters44, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -414,7 +414,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -488,12 +488,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/src/operations/operationOperations.ts index f186fed1ccbd..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. @@ -213,13 +213,6 @@ const listByTagsNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedOperations - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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..cbb705bcd5a0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts @@ -0,0 +1,401 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT 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 { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } 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< + PollerLike< + PollOperationState, + PolicyFragmentCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = 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 = new LroImpl( + sendOperation, + { resourceGroupName, serviceName, id, parameters, options }, + createOrUpdateOperationSpec + ); + const poller = new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "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.parameters55, + 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..fae1c8cdf137 --- /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.parameters56, + 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.parameters56, + 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 6f51f3cba7ef..71e6121126eb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts @@ -46,7 +46,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 +130,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 +147,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 +167,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 +188,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. @@ -263,7 +263,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 +289,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. @@ -373,7 +373,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 +403,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 +522,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -560,7 +560,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -588,12 +588,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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 9d604ea91eb0..845185405aef 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/privateEndpointConnectionOperations.ts @@ -46,7 +46,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 +108,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 +125,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 +149,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 @@ -227,7 +227,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 +252,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. @@ -322,7 +322,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. @@ -343,8 +343,8 @@ export class PrivateEndpointConnectionOperationsImpl } /** - * Description for Gets the private link resources - * @param resourceGroupName The name of the resource group. + * Gets the private link resources + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -360,8 +360,8 @@ export class PrivateEndpointConnectionOperationsImpl } /** - * Description for Gets the private link resources - * @param resourceGroupName The name of the resource group. + * Gets the private link resources + * @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 e3d6e5d36124..b30956d413b3 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.parameters50, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -523,7 +523,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -601,14 +601,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.tags, - Parameters.apiVersion, - Parameters.expandGroups - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -630,13 +622,6 @@ const listByTagsNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.includeNotTaggedProducts - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApi.ts index c4dbdaac3d72..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. @@ -352,12 +352,6 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productGroup.ts index 7b13905fbf4f..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. @@ -349,12 +349,6 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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 d2396e923f1d..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. @@ -209,12 +209,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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..faefcb8f0a4a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productWikis.ts @@ -0,0 +1,219 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT 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.ErrorResponseAutoGenerated + } + }, + queryParameters: [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.ErrorResponseAutoGenerated + } + }, + 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 e9c69f3323b6..8b6c24e3b99a 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.parameters52, + requestBody: Parameters.parameters63, 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 a920dbfe0faf..213726b7f032 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.parameters52, + requestBody: Parameters.parameters63, 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 185fd1a884e8..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. @@ -190,7 +190,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts b/sdk/apimanagement/arm-apimanagement/src/operations/reports.ts index 36c4e01f45dc..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. @@ -127,7 +127,6 @@ export class ReportsImpl implements Reports { result = await this._listByApiNext( resourceGroupName, serviceName, - filter, continuationToken, options ); @@ -156,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 @@ -232,7 +231,6 @@ export class ReportsImpl implements Reports { result = await this._listByUserNext( resourceGroupName, serviceName, - filter, continuationToken, options ); @@ -261,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 @@ -336,7 +334,6 @@ export class ReportsImpl implements Reports { result = await this._listByOperationNext( resourceGroupName, serviceName, - filter, continuationToken, options ); @@ -365,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 @@ -440,7 +437,6 @@ export class ReportsImpl implements Reports { result = await this._listByProductNext( resourceGroupName, serviceName, - filter, continuationToken, options ); @@ -469,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 @@ -544,7 +540,6 @@ export class ReportsImpl implements Reports { result = await this._listByGeoNext( resourceGroupName, serviceName, - filter, continuationToken, options ); @@ -573,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 @@ -648,7 +643,6 @@ export class ReportsImpl implements Reports { result = await this._listBySubscriptionNext( resourceGroupName, serviceName, - filter, continuationToken, options ); @@ -677,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 @@ -760,8 +754,6 @@ export class ReportsImpl implements Reports { result = await this._listByTimeNext( resourceGroupName, serviceName, - filter, - interval, continuationToken, options ); @@ -792,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 @@ -870,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. @@ -889,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 @@ -920,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 @@ -950,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 @@ -980,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 @@ -1010,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 @@ -1040,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 @@ -1074,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 @@ -1097,218 +1089,133 @@ 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 filter The filter to apply on the operation. * @param nextLink The nextLink from the previous successful call to the ListByApi method. * @param options The options parameters. */ private _listByApiNext( resourceGroupName: string, serviceName: string, - filter: string, nextLink: string, options?: ReportsListByApiNextOptionalParams ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serviceName, filter, nextLink, options }, + { resourceGroupName, serviceName, nextLink, options }, listByApiNextOperationSpec ); } /** * 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 filter | Field | Usage | Supported operators | Supported functions - * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le - * | |
| displayName | select, orderBy | | |
| userId | select, filter | eq | - * |
| apiRegion | filter | eq | |
| productId | filter | eq | |
| - * subscriptionId | filter | eq | |
| apiId | filter | eq | |
| operationId | filter - * | eq | |
| callCountSuccess | select, orderBy | | |
| callCountBlocked | - * select, orderBy | | |
| callCountFailed | select, orderBy | | |
| - * callCountOther | select, orderBy | | |
| callCountTotal | select, orderBy | | | - *
| bandwidth | select, orderBy | | |
| cacheHitsCount | select | | |
| - * cacheMissCount | select | | |
| apiTimeAvg | select, orderBy | | |
| - * apiTimeMin | select | | |
| apiTimeMax | select | | |
| serviceTimeAvg | - * select | | |
| serviceTimeMin | select | | |
| serviceTimeMax | select | - * | |
* @param nextLink The nextLink from the previous successful call to the ListByUser method. * @param options The options parameters. */ private _listByUserNext( resourceGroupName: string, serviceName: string, - filter: string, nextLink: string, options?: ReportsListByUserNextOptionalParams ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serviceName, filter, nextLink, options }, + { resourceGroupName, serviceName, nextLink, options }, listByUserNextOperationSpec ); } /** * 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 filter | Field | Usage | Supported operators | Supported functions - * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le - * | |
| displayName | select, orderBy | | |
| apiRegion | filter | eq | | - *
| userId | filter | eq | |
| productId | filter | eq | |
| subscriptionId | - * filter | eq | |
| apiId | filter | eq | |
| operationId | select, filter | eq | - * |
| callCountSuccess | select, orderBy | | |
| callCountBlocked | select, orderBy - * | | |
| callCountFailed | select, orderBy | | |
| callCountOther | select, - * orderBy | | |
| callCountTotal | select, orderBy | | |
| bandwidth | - * select, orderBy | | |
| cacheHitsCount | select | | |
| cacheMissCount | - * select | | |
| apiTimeAvg | select, orderBy | | |
| apiTimeMin | select | - * | |
| apiTimeMax | select | | |
| serviceTimeAvg | select | | | - *
| serviceTimeMin | select | | |
| serviceTimeMax | select | | |
* @param nextLink The nextLink from the previous successful call to the ListByOperation method. * @param options The options parameters. */ private _listByOperationNext( resourceGroupName: string, serviceName: string, - filter: string, nextLink: string, options?: ReportsListByOperationNextOptionalParams ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serviceName, filter, nextLink, options }, + { resourceGroupName, serviceName, nextLink, options }, listByOperationNextOperationSpec ); } /** * 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 filter | Field | Usage | Supported operators | Supported functions - * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le - * | |
| displayName | select, orderBy | | |
| apiRegion | filter | eq | | - *
| userId | filter | eq | |
| productId | select, filter | eq | |
| - * subscriptionId | filter | eq | |
| callCountSuccess | select, orderBy | | |
| - * callCountBlocked | select, orderBy | | |
| callCountFailed | select, orderBy | | - * |
| callCountOther | select, orderBy | | |
| callCountTotal | select, orderBy | - * | |
| bandwidth | select, orderBy | | |
| cacheHitsCount | select | | - * |
| cacheMissCount | select | | |
| apiTimeAvg | select, orderBy | | | - *
| apiTimeMin | select | | |
| apiTimeMax | select | | |
| - * serviceTimeAvg | select | | |
| serviceTimeMin | select | | |
| - * serviceTimeMax | select | | |
* @param nextLink The nextLink from the previous successful call to the ListByProduct method. * @param options The options parameters. */ private _listByProductNext( resourceGroupName: string, serviceName: string, - filter: string, nextLink: string, options?: ReportsListByProductNextOptionalParams ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serviceName, filter, nextLink, options }, + { resourceGroupName, serviceName, nextLink, options }, listByProductNextOperationSpec ); } /** * 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 filter | Field | Usage | Supported operators | Supported functions - * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le - * | |
| country | select | | |
| region | select | | |
| zip | - * select | | |
| apiRegion | filter | eq | |
| userId | filter | eq | | - *
| productId | filter | eq | |
| subscriptionId | filter | eq | |
| apiId | - * filter | eq | |
| operationId | filter | eq | |
| callCountSuccess | select | - * | |
| callCountBlocked | select | | |
| callCountFailed | select | | | - *
| callCountOther | select | | |
| bandwidth | select, orderBy | | |
| - * cacheHitsCount | select | | |
| cacheMissCount | select | | |
| apiTimeAvg - * | select | | |
| apiTimeMin | select | | |
| apiTimeMax | select | | - * |
| serviceTimeAvg | select | | |
| serviceTimeMin | select | | |
| - * serviceTimeMax | select | | |
* @param nextLink The nextLink from the previous successful call to the ListByGeo method. * @param options The options parameters. */ private _listByGeoNext( resourceGroupName: string, serviceName: string, - filter: string, nextLink: string, options?: ReportsListByGeoNextOptionalParams ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serviceName, filter, nextLink, options }, + { resourceGroupName, serviceName, nextLink, options }, listByGeoNextOperationSpec ); } /** * 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 filter | Field | Usage | Supported operators | Supported functions - * |
|-------------|-------------|-------------|-------------|
| timestamp | filter | ge, le - * | |
| displayName | select, orderBy | | |
| apiRegion | filter | eq | | - *
| userId | select, filter | eq | |
| productId | select, filter | eq | |
| - * subscriptionId | select, filter | eq | |
| callCountSuccess | select, orderBy | | | - *
| callCountBlocked | select, orderBy | | |
| callCountFailed | select, orderBy | - * | |
| callCountOther | select, orderBy | | |
| callCountTotal | select, - * orderBy | | |
| bandwidth | select, orderBy | | |
| cacheHitsCount | - * select | | |
| cacheMissCount | select | | |
| apiTimeAvg | select, - * orderBy | | |
| apiTimeMin | select | | |
| apiTimeMax | select | | - * |
| serviceTimeAvg | select | | |
| serviceTimeMin | select | | |
| - * serviceTimeMax | select | | |
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method. * @param options The options parameters. */ private _listBySubscriptionNext( resourceGroupName: string, serviceName: string, - filter: string, nextLink: string, options?: ReportsListBySubscriptionNextOptionalParams ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serviceName, filter, nextLink, options }, + { resourceGroupName, serviceName, nextLink, options }, listBySubscriptionNextOperationSpec ); } /** * 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 filter | Field | Usage | Supported operators | Supported functions - * |
|-------------|-------------|-------------|-------------|
| timestamp | filter, select - * | ge, le | |
| interval | select | | |
| apiRegion | filter | eq | | - *
| userId | filter | eq | |
| productId | filter | eq | |
| subscriptionId | - * filter | eq | |
| apiId | filter | eq | |
| operationId | filter | eq | | - *
| callCountSuccess | select | | |
| callCountBlocked | select | | |
| - * callCountFailed | select | | |
| callCountOther | select | | |
| bandwidth - * | select, orderBy | | |
| cacheHitsCount | select | | |
| cacheMissCount | - * select | | |
| apiTimeAvg | select | | |
| apiTimeMin | select | | - * |
| apiTimeMax | select | | |
| serviceTimeAvg | select | | |
| - * serviceTimeMin | select | | |
| serviceTimeMax | select | | |
- * @param interval By time interval. Interval must be multiple of 15 minutes and may not be zero. The - * value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can - * be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, - * minutes, seconds)). * @param nextLink The nextLink from the previous successful call to the ListByTime method. * @param options The options parameters. */ private _listByTimeNext( resourceGroupName: string, serviceName: string, - filter: string, - interval: string, nextLink: string, options?: ReportsListByTimeNextOptionalParams ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, serviceName, filter, interval, nextLink, options }, + { resourceGroupName, serviceName, nextLink, options }, listByTimeNextOperationSpec ); } @@ -1332,8 +1239,8 @@ const listByApiOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1360,8 +1267,8 @@ const listByUserOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1388,8 +1295,8 @@ const listByOperationOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1416,8 +1323,8 @@ const listByProductOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1471,8 +1378,8 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby + Parameters.orderby, + Parameters.filter1 ], urlParameters: [ Parameters.$host, @@ -1499,8 +1406,8 @@ const listByTimeOperationSpec: coreClient.OperationSpec = { Parameters.top, Parameters.skip, Parameters.apiVersion, - Parameters.filter1, Parameters.orderby, + Parameters.filter1, Parameters.interval ], urlParameters: [ @@ -1550,13 +1457,6 @@ const listByApiNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1578,13 +1478,6 @@ const listByUserNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1606,13 +1499,6 @@ const listByOperationNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1634,13 +1520,6 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1662,12 +1541,6 @@ const listByGeoNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.filter1 - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1689,13 +1562,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1717,14 +1583,6 @@ const listByTimeNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.filter1, - Parameters.orderby, - Parameters.interval - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts index ad42bf2308c6..85304860fc77 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.parameters47, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -195,7 +195,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts index de256e628271..24e8f3aff24c 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.parameters48, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -195,7 +195,7 @@ const createOrUpdateOperationSpec: 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/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts index f872a77524ab..f28c2b822d3d 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.parameters53, + requestBody: Parameters.parameters65, queryParameters: [ Parameters.apiVersion, Parameters.notify, @@ -459,7 +459,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters66, queryParameters: [ Parameters.apiVersion, Parameters.notify, @@ -579,12 +579,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tag.ts index 2e211d382a4a..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. @@ -1558,12 +1558,6 @@ const listByOperationNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1587,12 +1581,6 @@ const listByApiNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1615,12 +1603,6 @@ const listByProductNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1643,13 +1625,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.scope - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagResource.ts index 6a5bedff9eb1..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. @@ -195,12 +195,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts index 3d0df94a0de3..23eb2f385d4a 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.parameters55, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -441,7 +441,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -535,7 +535,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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 cbe6e6188d05..0d4a9e4a4496 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts @@ -42,7 +42,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. @@ -122,7 +122,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 +148,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. @@ -228,7 +228,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 +254,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. @@ -334,7 +334,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 +360,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 +401,7 @@ const deployOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -435,7 +435,7 @@ const saveOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -469,7 +469,7 @@ const validateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters69, 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 5b2cd7924a53..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. @@ -236,7 +236,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.filter, Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts index 54f5231ab295..f304e2540d84 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.parameters59, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion, Parameters.notify], urlParameters: [ Parameters.$host, @@ -441,7 +441,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -520,7 +520,7 @@ const getSharedAccessTokenOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -544,13 +544,6 @@ const listByServiceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion, - Parameters.expandGroups - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, 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 77c0dbac22fe..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. @@ -209,12 +209,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userIdentities.ts index a8ea53e13e62..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. @@ -204,7 +204,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/userSubscription.ts index f74e1d9e92ce..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. @@ -258,12 +258,6 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.filter, - Parameters.top, - Parameters.skip, - Parameters.apiVersion - ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts index ce5051c792be..e42cf04900d6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/api.ts @@ -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. @@ -102,7 +102,7 @@ export interface 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. @@ -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..164593d98684 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiManagementService.ts @@ -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. @@ -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. @@ -112,7 +114,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. @@ -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. @@ -145,7 +147,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. @@ -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. @@ -176,7 +178,7 @@ export interface 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. @@ -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. */ @@ -211,7 +213,7 @@ export interface ApiManagementService { ): 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< + PollerLike< + PollOperationState, + 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. */ @@ -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 0b320d5f788b..b76ed265c442 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiSchema.ts @@ -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,12 +39,11 @@ 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. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. */ getEntityTag( @@ -56,12 +55,11 @@ 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. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param options The options parameters. */ get( @@ -73,12 +71,11 @@ 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. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters The schema contents to apply. * @param options The options parameters. */ @@ -97,12 +94,11 @@ export interface 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. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param parameters The schema contents to apply. * @param options The options parameters. */ @@ -116,12 +112,11 @@ 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. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param options The options parameters. 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..1abb2633902a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/authorization.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + AuthorizationContract, + AuthorizationListByAuthorizationProviderOptionalParams, + AuthorizationGetOptionalParams, + AuthorizationGetResponse, + AuthorizationCreateOrUpdateOptionalParams, + AuthorizationCreateOrUpdateResponse, + AuthorizationDeleteOptionalParams +} 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; +} 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 f7139b1b70c0..71e5a0a14349 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. @@ -83,7 +83,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 5149bfb606b4..f50bd6fddcd7 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 options The options parameters. @@ -65,7 +65,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/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 new file mode 100644 index 000000000000..cd8878564682 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/globalSchema.ts @@ -0,0 +1,114 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT 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 { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + GlobalSchemaContract, + GlobalSchemaListByServiceOptionalParams, + GlobalSchemaGetEntityTagOptionalParams, + GlobalSchemaGetEntityTagResponse, + GlobalSchemaGetOptionalParams, + GlobalSchemaGetResponse, + GlobalSchemaCreateOrUpdateOptionalParams, + GlobalSchemaCreateOrUpdateResponse, + GlobalSchemaDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a GlobalSchema. */ +export interface GlobalSchema { + /** + * Lists a collection of schemas registered with 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?: GlobalSchemaListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + schemaId: string, + options?: GlobalSchemaGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + schemaId: string, + options?: GlobalSchemaGetOptionalParams + ): Promise; + /** + * Creates new or updates existing specified Schema 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 schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: GlobalSchemaCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + GlobalSchemaCreateOrUpdateResponse + > + >; + /** + * Creates new or updates existing specified Schema 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 schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: GlobalSchemaCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific Schema. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + schemaId: string, + ifMatch: string, + options?: GlobalSchemaDeleteOptionalParams + ): Promise; +} 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 ad235419a765..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,10 +74,13 @@ 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"; export * from "./reports"; +export * from "./globalSchema"; export * from "./tenantSettings"; export * from "./apiManagementSkus"; export * from "./subscription"; @@ -80,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..2eb6b0629ba4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/namedValue.ts @@ -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. @@ -90,7 +90,7 @@ export interface 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. @@ -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 @@ -128,7 +128,7 @@ export interface 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 @@ -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. @@ -193,7 +193,7 @@ export interface 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. 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..d735d08c1cd9 --- /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 { PollerLike, PollOperationState } 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< + PollerLike< + PollOperationState, + 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..0ca7d283fbde 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalRevision.ts @@ -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. @@ -88,7 +88,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. @@ -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. @@ -128,7 +128,7 @@ export interface 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. 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 6264283499a9..264f4f9f3363 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/privateEndpointConnectionOperations.ts @@ -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 @@ -72,7 +72,7 @@ export interface PrivateEndpointConnectionOperations { >; /** * 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. @@ -100,7 +100,7 @@ export interface PrivateEndpointConnectionOperations { ): 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. @@ -112,8 +112,8 @@ export interface PrivateEndpointConnectionOperations { options?: PrivateEndpointConnectionDeleteOptionalParams ): Promise; /** - * Description for Gets the private link resources - * @param resourceGroupName The name of the resource group. + * Gets the private link resources + * @param resourceGroupName The 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,8 +123,8 @@ export interface PrivateEndpointConnectionOperations { options?: PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams ): Promise; /** - * Description for Gets the private link resources - * @param resourceGroupName The name of the resource group. + * Gets the private link resources + * @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..34a5e5c365d7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantConfiguration.ts @@ -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. @@ -47,7 +47,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. @@ -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. @@ -84,7 +84,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. @@ -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. @@ -121,7 +121,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. @@ -137,7 +137,7 @@ export interface TenantConfiguration { /** * Gets the status of the most recent synchronization between the configuration database and the Git * repository. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param configurationName The identifier of the Git Configuration Operation. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts index a9435f3e6012..4f8c4c6faa9f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tenantSettings.ts @@ -20,7 +20,7 @@ import { export interface TenantSettings { /** * Public settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -31,7 +31,7 @@ export interface TenantSettings { ): PagedAsyncIterableIterator; /** * Get tenant settings. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param settingsType The identifier of the settings. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts index f62b70593d15..0b6102704805 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/user.ts @@ -33,7 +33,7 @@ import { export interface User { /** * Lists a collection of registered users in the specified service instance. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param options The options parameters. */ @@ -44,7 +44,7 @@ export interface User { ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -57,7 +57,7 @@ export interface User { ): Promise; /** * Gets the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -70,7 +70,7 @@ export interface User { ): Promise; /** * Creates or Updates a user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. @@ -85,7 +85,7 @@ export interface User { ): Promise; /** * Updates the details of the user specified by its identifier. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -103,7 +103,7 @@ export interface User { ): Promise; /** * Deletes specific user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -120,7 +120,7 @@ export interface User { /** * Retrieves a redirection URL containing an authentication token for signing a given user into the * developer portal. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -133,7 +133,7 @@ export interface User { ): Promise; /** * Gets the Shared Access Authorization Token for the User. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create Authorization Token parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts index 5044849cb033..0479110f882e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userConfirmationPassword.ts @@ -12,7 +12,7 @@ import { UserConfirmationPasswordSendOptionalParams } from "../models"; export interface UserConfirmationPassword { /** * Sends confirmation - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts index 1dc89d586dce..a2fbd8f792de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userGroup.ts @@ -14,7 +14,7 @@ import { GroupContract, UserGroupListOptionalParams } from "../models"; export interface UserGroup { /** * Lists all user groups. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts index 1c9fb3765d37..1a242a6c686d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userIdentities.ts @@ -17,7 +17,7 @@ import { export interface UserIdentities { /** * List of all user identities. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts index 8ed8472b2794..548a266d86dd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/userSubscription.ts @@ -19,7 +19,7 @@ import { export interface UserSubscription { /** * Lists the collection of subscriptions of the specified user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The options parameters. @@ -32,7 +32,7 @@ export interface UserSubscription { ): PagedAsyncIterableIterator; /** * Gets the specified Subscription entity associated with a particular user. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceName The name of the API Management service. * @param userId User identifier. Must be unique in the current API Management service instance. * @param sid Subscription entity Identifier. The entity represents the association between a user and diff --git a/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts b/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts +++ b/sdk/apimanagement/arm-apimanagement/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { 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"