@azure/arm-apimanagement 10.0.0-alpha.20250619.1 → 10.0.0-alpha.20250718.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/apiManagementClient.js +160 -11
- package/dist/browser/apiManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +1444 -666
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/allPolicies.js +23 -40
- package/dist/browser/operations/allPolicies.js.map +1 -1
- package/dist/browser/operations/api.js +67 -91
- package/dist/browser/operations/api.js.map +1 -1
- package/dist/browser/operations/apiDiagnostic.js +23 -40
- package/dist/browser/operations/apiDiagnostic.js.map +1 -1
- package/dist/browser/operations/apiExport.js +1 -0
- package/dist/browser/operations/apiExport.js.map +1 -1
- package/dist/browser/operations/apiGateway.js +78 -97
- package/dist/browser/operations/apiGateway.js.map +1 -1
- package/dist/browser/operations/apiGatewayConfigConnection.js +45 -52
- package/dist/browser/operations/apiGatewayConfigConnection.js.map +1 -1
- package/dist/browser/operations/apiIssue.js +23 -40
- package/dist/browser/operations/apiIssue.js.map +1 -1
- package/dist/browser/operations/apiIssueAttachment.js +23 -40
- package/dist/browser/operations/apiIssueAttachment.js.map +1 -1
- package/dist/browser/operations/apiIssueComment.js +23 -40
- package/dist/browser/operations/apiIssueComment.js.map +1 -1
- package/dist/browser/operations/apiManagementGatewaySkus.js +23 -40
- package/dist/browser/operations/apiManagementGatewaySkus.js.map +1 -1
- package/dist/browser/operations/apiManagementOperations.js +23 -40
- package/dist/browser/operations/apiManagementOperations.js.map +1 -1
- package/dist/browser/operations/apiManagementService.js +122 -121
- package/dist/browser/operations/apiManagementService.js.map +1 -1
- package/dist/browser/operations/apiManagementServiceSkus.js +23 -40
- package/dist/browser/operations/apiManagementServiceSkus.js.map +1 -1
- package/dist/browser/operations/apiManagementSkus.js +23 -40
- package/dist/browser/operations/apiManagementSkus.js.map +1 -1
- package/dist/browser/operations/apiManagementWorkspaceLink.js +1 -0
- package/dist/browser/operations/apiManagementWorkspaceLink.js.map +1 -1
- package/dist/browser/operations/apiManagementWorkspaceLinks.js +23 -40
- package/dist/browser/operations/apiManagementWorkspaceLinks.js.map +1 -1
- package/dist/browser/operations/apiOperation.js +23 -40
- package/dist/browser/operations/apiOperation.js.map +1 -1
- package/dist/browser/operations/apiOperationPolicy.js +1 -0
- package/dist/browser/operations/apiOperationPolicy.js.map +1 -1
- package/dist/browser/operations/apiPolicy.js +1 -0
- package/dist/browser/operations/apiPolicy.js.map +1 -1
- package/dist/browser/operations/apiProduct.js +23 -40
- package/dist/browser/operations/apiProduct.js.map +1 -1
- package/dist/browser/operations/apiRelease.js +23 -40
- package/dist/browser/operations/apiRelease.js.map +1 -1
- package/dist/browser/operations/apiRevision.js +23 -40
- package/dist/browser/operations/apiRevision.js.map +1 -1
- package/dist/browser/operations/apiSchema.js +34 -46
- package/dist/browser/operations/apiSchema.js.map +1 -1
- package/dist/browser/operations/apiTagDescription.js +23 -40
- package/dist/browser/operations/apiTagDescription.js.map +1 -1
- package/dist/browser/operations/apiVersionSet.js +23 -40
- package/dist/browser/operations/apiVersionSet.js.map +1 -1
- package/dist/browser/operations/apiWiki.js +1 -0
- package/dist/browser/operations/apiWiki.js.map +1 -1
- package/dist/browser/operations/apiWikis.js +23 -40
- package/dist/browser/operations/apiWikis.js.map +1 -1
- package/dist/browser/operations/authorization.js +23 -40
- package/dist/browser/operations/authorization.js.map +1 -1
- package/dist/browser/operations/authorizationAccessPolicy.js +23 -40
- package/dist/browser/operations/authorizationAccessPolicy.js.map +1 -1
- package/dist/browser/operations/authorizationLoginLinks.js +1 -0
- package/dist/browser/operations/authorizationLoginLinks.js.map +1 -1
- package/dist/browser/operations/authorizationProvider.js +23 -40
- package/dist/browser/operations/authorizationProvider.js.map +1 -1
- package/dist/browser/operations/authorizationServer.js +23 -40
- package/dist/browser/operations/authorizationServer.js.map +1 -1
- package/dist/browser/operations/backend.js +23 -40
- package/dist/browser/operations/backend.js.map +1 -1
- package/dist/browser/operations/cache.js +23 -40
- package/dist/browser/operations/cache.js.map +1 -1
- package/dist/browser/operations/certificate.js +23 -40
- package/dist/browser/operations/certificate.js.map +1 -1
- package/dist/browser/operations/contentItem.js +23 -40
- package/dist/browser/operations/contentItem.js.map +1 -1
- package/dist/browser/operations/contentType.js +23 -40
- package/dist/browser/operations/contentType.js.map +1 -1
- package/dist/browser/operations/delegationSettings.js +1 -0
- package/dist/browser/operations/delegationSettings.js.map +1 -1
- package/dist/browser/operations/deletedServices.js +34 -46
- package/dist/browser/operations/deletedServices.js.map +1 -1
- package/dist/browser/operations/diagnostic.js +23 -40
- package/dist/browser/operations/diagnostic.js.map +1 -1
- package/dist/browser/operations/documentation.js +23 -40
- package/dist/browser/operations/documentation.js.map +1 -1
- package/dist/browser/operations/emailTemplate.js +23 -40
- package/dist/browser/operations/emailTemplate.js.map +1 -1
- package/dist/browser/operations/gateway.js +23 -40
- package/dist/browser/operations/gateway.js.map +1 -1
- package/dist/browser/operations/gatewayApi.js +23 -40
- package/dist/browser/operations/gatewayApi.js.map +1 -1
- package/dist/browser/operations/gatewayCertificateAuthority.js +23 -40
- package/dist/browser/operations/gatewayCertificateAuthority.js.map +1 -1
- package/dist/browser/operations/gatewayHostnameConfiguration.js +23 -40
- package/dist/browser/operations/gatewayHostnameConfiguration.js.map +1 -1
- package/dist/browser/operations/globalSchema.js +34 -46
- package/dist/browser/operations/globalSchema.js.map +1 -1
- package/dist/browser/operations/graphQLApiResolver.js +23 -40
- package/dist/browser/operations/graphQLApiResolver.js.map +1 -1
- package/dist/browser/operations/graphQLApiResolverPolicy.js +23 -40
- package/dist/browser/operations/graphQLApiResolverPolicy.js.map +1 -1
- package/dist/browser/operations/group.js +23 -40
- package/dist/browser/operations/group.js.map +1 -1
- package/dist/browser/operations/groupUser.js +23 -40
- package/dist/browser/operations/groupUser.js.map +1 -1
- package/dist/browser/operations/identityProvider.js +23 -40
- package/dist/browser/operations/identityProvider.js.map +1 -1
- package/dist/browser/operations/issue.js +23 -40
- package/dist/browser/operations/issue.js.map +1 -1
- package/dist/browser/operations/logger.js +23 -40
- package/dist/browser/operations/logger.js.map +1 -1
- package/dist/browser/operations/namedValue.js +56 -58
- package/dist/browser/operations/namedValue.js.map +1 -1
- package/dist/browser/operations/networkStatus.js +1 -0
- package/dist/browser/operations/networkStatus.js.map +1 -1
- package/dist/browser/operations/notification.js +23 -40
- package/dist/browser/operations/notification.js.map +1 -1
- package/dist/browser/operations/notificationRecipientEmail.js +1 -0
- package/dist/browser/operations/notificationRecipientEmail.js.map +1 -1
- package/dist/browser/operations/notificationRecipientUser.js +1 -0
- package/dist/browser/operations/notificationRecipientUser.js.map +1 -1
- package/dist/browser/operations/openIdConnectProvider.js +23 -40
- package/dist/browser/operations/openIdConnectProvider.js.map +1 -1
- package/dist/browser/operations/operationOperations.js +23 -40
- package/dist/browser/operations/operationOperations.js.map +1 -1
- package/dist/browser/operations/operationStatus.js +1 -0
- package/dist/browser/operations/operationStatus.js.map +1 -1
- package/dist/browser/operations/operationsResults.js +1 -0
- package/dist/browser/operations/operationsResults.js.map +1 -1
- package/dist/browser/operations/outboundNetworkDependenciesEndpoints.js +1 -0
- package/dist/browser/operations/outboundNetworkDependenciesEndpoints.js.map +1 -1
- package/dist/browser/operations/policy.js +23 -40
- package/dist/browser/operations/policy.js.map +1 -1
- package/dist/browser/operations/policyDescription.js +1 -0
- package/dist/browser/operations/policyDescription.js.map +1 -1
- package/dist/browser/operations/policyFragment.js +34 -46
- package/dist/browser/operations/policyFragment.js.map +1 -1
- package/dist/browser/operations/policyRestriction.js +23 -40
- package/dist/browser/operations/policyRestriction.js.map +1 -1
- package/dist/browser/operations/policyRestrictionValidations.js +12 -6
- package/dist/browser/operations/policyRestrictionValidations.js.map +1 -1
- package/dist/browser/operations/portalConfig.js +23 -40
- package/dist/browser/operations/portalConfig.js.map +1 -1
- package/dist/browser/operations/portalRevision.js +45 -52
- package/dist/browser/operations/portalRevision.js.map +1 -1
- package/dist/browser/operations/portalSettings.js +1 -0
- package/dist/browser/operations/portalSettings.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnectionOperations.js +32 -39
- package/dist/browser/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/browser/operations/product.js +45 -79
- package/dist/browser/operations/product.js.map +1 -1
- package/dist/browser/operations/productApi.js +23 -40
- package/dist/browser/operations/productApi.js.map +1 -1
- package/dist/browser/operations/productApiLink.js +23 -40
- package/dist/browser/operations/productApiLink.js.map +1 -1
- package/dist/browser/operations/productGroup.js +23 -40
- package/dist/browser/operations/productGroup.js.map +1 -1
- package/dist/browser/operations/productGroupLink.js +23 -40
- package/dist/browser/operations/productGroupLink.js.map +1 -1
- package/dist/browser/operations/productPolicy.js +23 -40
- package/dist/browser/operations/productPolicy.js.map +1 -1
- package/dist/browser/operations/productSubscriptions.js +23 -40
- package/dist/browser/operations/productSubscriptions.js.map +1 -1
- package/dist/browser/operations/productWiki.js +1 -0
- package/dist/browser/operations/productWiki.js.map +1 -1
- package/dist/browser/operations/productWikis.js +23 -40
- package/dist/browser/operations/productWikis.js.map +1 -1
- package/dist/browser/operations/quotaByCounterKeys.js +1 -0
- package/dist/browser/operations/quotaByCounterKeys.js.map +1 -1
- package/dist/browser/operations/quotaByPeriodKeys.js +1 -0
- package/dist/browser/operations/quotaByPeriodKeys.js.map +1 -1
- package/dist/browser/operations/region.js +23 -40
- package/dist/browser/operations/region.js.map +1 -1
- package/dist/browser/operations/reports.js +164 -300
- package/dist/browser/operations/reports.js.map +1 -1
- package/dist/browser/operations/signInSettings.js +1 -0
- package/dist/browser/operations/signInSettings.js.map +1 -1
- package/dist/browser/operations/signUpSettings.js +1 -0
- package/dist/browser/operations/signUpSettings.js.map +1 -1
- package/dist/browser/operations/subscription.js +23 -40
- package/dist/browser/operations/subscription.js.map +1 -1
- package/dist/browser/operations/tag.js +89 -157
- package/dist/browser/operations/tag.js.map +1 -1
- package/dist/browser/operations/tagApiLink.js +23 -40
- package/dist/browser/operations/tagApiLink.js.map +1 -1
- package/dist/browser/operations/tagOperationLink.js +23 -40
- package/dist/browser/operations/tagOperationLink.js.map +1 -1
- package/dist/browser/operations/tagProductLink.js +23 -40
- package/dist/browser/operations/tagProductLink.js.map +1 -1
- package/dist/browser/operations/tagResource.js +23 -40
- package/dist/browser/operations/tagResource.js.map +1 -1
- package/dist/browser/operations/tenantAccess.js +23 -40
- package/dist/browser/operations/tenantAccess.js.map +1 -1
- package/dist/browser/operations/tenantAccessGit.js +1 -0
- package/dist/browser/operations/tenantAccessGit.js.map +1 -1
- package/dist/browser/operations/tenantConfiguration.js +34 -18
- package/dist/browser/operations/tenantConfiguration.js.map +1 -1
- package/dist/browser/operations/tenantSettings.js +23 -40
- package/dist/browser/operations/tenantSettings.js.map +1 -1
- package/dist/browser/operations/user.js +34 -46
- package/dist/browser/operations/user.js.map +1 -1
- package/dist/browser/operations/userConfirmationPassword.js +1 -0
- package/dist/browser/operations/userConfirmationPassword.js.map +1 -1
- package/dist/browser/operations/userGroup.js +23 -40
- package/dist/browser/operations/userGroup.js.map +1 -1
- package/dist/browser/operations/userIdentities.js +23 -40
- package/dist/browser/operations/userIdentities.js.map +1 -1
- package/dist/browser/operations/userSubscription.js +23 -40
- package/dist/browser/operations/userSubscription.js.map +1 -1
- package/dist/browser/operations/workspace.js +23 -40
- package/dist/browser/operations/workspace.js.map +1 -1
- package/dist/browser/operations/workspaceApi.js +34 -46
- package/dist/browser/operations/workspaceApi.js.map +1 -1
- package/dist/browser/operations/workspaceApiDiagnostic.js +23 -40
- package/dist/browser/operations/workspaceApiDiagnostic.js.map +1 -1
- package/dist/browser/operations/workspaceApiExport.js +1 -0
- package/dist/browser/operations/workspaceApiExport.js.map +1 -1
- package/dist/browser/operations/workspaceApiOperation.js +23 -40
- package/dist/browser/operations/workspaceApiOperation.js.map +1 -1
- package/dist/browser/operations/workspaceApiOperationPolicy.js +23 -40
- package/dist/browser/operations/workspaceApiOperationPolicy.js.map +1 -1
- package/dist/browser/operations/workspaceApiPolicy.js +23 -40
- package/dist/browser/operations/workspaceApiPolicy.js.map +1 -1
- package/dist/browser/operations/workspaceApiRelease.js +23 -40
- package/dist/browser/operations/workspaceApiRelease.js.map +1 -1
- package/dist/browser/operations/workspaceApiRevision.js +23 -40
- package/dist/browser/operations/workspaceApiRevision.js.map +1 -1
- package/dist/browser/operations/workspaceApiSchema.js +34 -46
- package/dist/browser/operations/workspaceApiSchema.js.map +1 -1
- package/dist/browser/operations/workspaceApiVersionSet.js +23 -40
- package/dist/browser/operations/workspaceApiVersionSet.js.map +1 -1
- package/dist/browser/operations/workspaceBackend.js +23 -40
- package/dist/browser/operations/workspaceBackend.js.map +1 -1
- package/dist/browser/operations/workspaceCertificate.js +23 -40
- package/dist/browser/operations/workspaceCertificate.js.map +1 -1
- package/dist/browser/operations/workspaceDiagnostic.js +23 -40
- package/dist/browser/operations/workspaceDiagnostic.js.map +1 -1
- package/dist/browser/operations/workspaceGlobalSchema.js +34 -46
- package/dist/browser/operations/workspaceGlobalSchema.js.map +1 -1
- package/dist/browser/operations/workspaceGroup.js +23 -40
- package/dist/browser/operations/workspaceGroup.js.map +1 -1
- package/dist/browser/operations/workspaceGroupUser.js +23 -40
- package/dist/browser/operations/workspaceGroupUser.js.map +1 -1
- package/dist/browser/operations/workspaceLogger.js +23 -40
- package/dist/browser/operations/workspaceLogger.js.map +1 -1
- package/dist/browser/operations/workspaceNamedValue.js +56 -58
- package/dist/browser/operations/workspaceNamedValue.js.map +1 -1
- package/dist/browser/operations/workspaceNotification.js +23 -40
- package/dist/browser/operations/workspaceNotification.js.map +1 -1
- package/dist/browser/operations/workspaceNotificationRecipientEmail.js +1 -0
- package/dist/browser/operations/workspaceNotificationRecipientEmail.js.map +1 -1
- package/dist/browser/operations/workspaceNotificationRecipientUser.js +1 -0
- package/dist/browser/operations/workspaceNotificationRecipientUser.js.map +1 -1
- package/dist/browser/operations/workspacePolicy.js +23 -40
- package/dist/browser/operations/workspacePolicy.js.map +1 -1
- package/dist/browser/operations/workspacePolicyFragment.js +34 -46
- package/dist/browser/operations/workspacePolicyFragment.js.map +1 -1
- package/dist/browser/operations/workspaceProduct.js +23 -40
- package/dist/browser/operations/workspaceProduct.js.map +1 -1
- package/dist/browser/operations/workspaceProductApiLink.js +23 -40
- package/dist/browser/operations/workspaceProductApiLink.js.map +1 -1
- package/dist/browser/operations/workspaceProductGroupLink.js +23 -40
- package/dist/browser/operations/workspaceProductGroupLink.js.map +1 -1
- package/dist/browser/operations/workspaceProductPolicy.js +1 -0
- package/dist/browser/operations/workspaceProductPolicy.js.map +1 -1
- package/dist/browser/operations/workspaceSubscription.js +23 -40
- package/dist/browser/operations/workspaceSubscription.js.map +1 -1
- package/dist/browser/operations/workspaceTag.js +23 -40
- package/dist/browser/operations/workspaceTag.js.map +1 -1
- package/dist/browser/operations/workspaceTagApiLink.js +23 -40
- package/dist/browser/operations/workspaceTagApiLink.js.map +1 -1
- package/dist/browser/operations/workspaceTagOperationLink.js +23 -40
- package/dist/browser/operations/workspaceTagOperationLink.js.map +1 -1
- package/dist/browser/operations/workspaceTagProductLink.js +23 -40
- package/dist/browser/operations/workspaceTagProductLink.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/apiManagementClient.js +160 -11
- package/dist/commonjs/apiManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +1444 -666
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/allPolicies.js +23 -39
- package/dist/commonjs/operations/allPolicies.js.map +1 -1
- package/dist/commonjs/operations/api.js +67 -90
- package/dist/commonjs/operations/api.js.map +1 -1
- package/dist/commonjs/operations/apiDiagnostic.js +23 -39
- package/dist/commonjs/operations/apiDiagnostic.js.map +1 -1
- package/dist/commonjs/operations/apiExport.js +1 -0
- package/dist/commonjs/operations/apiExport.js.map +1 -1
- package/dist/commonjs/operations/apiGateway.js +78 -96
- package/dist/commonjs/operations/apiGateway.js.map +1 -1
- package/dist/commonjs/operations/apiGatewayConfigConnection.js +45 -51
- package/dist/commonjs/operations/apiGatewayConfigConnection.js.map +1 -1
- package/dist/commonjs/operations/apiIssue.js +23 -39
- package/dist/commonjs/operations/apiIssue.js.map +1 -1
- package/dist/commonjs/operations/apiIssueAttachment.js +23 -39
- package/dist/commonjs/operations/apiIssueAttachment.js.map +1 -1
- package/dist/commonjs/operations/apiIssueComment.js +23 -39
- package/dist/commonjs/operations/apiIssueComment.js.map +1 -1
- package/dist/commonjs/operations/apiManagementGatewaySkus.js +23 -39
- package/dist/commonjs/operations/apiManagementGatewaySkus.js.map +1 -1
- package/dist/commonjs/operations/apiManagementOperations.js +23 -39
- package/dist/commonjs/operations/apiManagementOperations.js.map +1 -1
- package/dist/commonjs/operations/apiManagementService.js +122 -120
- package/dist/commonjs/operations/apiManagementService.js.map +1 -1
- package/dist/commonjs/operations/apiManagementServiceSkus.js +23 -39
- package/dist/commonjs/operations/apiManagementServiceSkus.js.map +1 -1
- package/dist/commonjs/operations/apiManagementSkus.js +23 -39
- package/dist/commonjs/operations/apiManagementSkus.js.map +1 -1
- package/dist/commonjs/operations/apiManagementWorkspaceLink.js +1 -0
- package/dist/commonjs/operations/apiManagementWorkspaceLink.js.map +1 -1
- package/dist/commonjs/operations/apiManagementWorkspaceLinks.js +23 -39
- package/dist/commonjs/operations/apiManagementWorkspaceLinks.js.map +1 -1
- package/dist/commonjs/operations/apiOperation.js +23 -39
- package/dist/commonjs/operations/apiOperation.js.map +1 -1
- package/dist/commonjs/operations/apiOperationPolicy.js +1 -0
- package/dist/commonjs/operations/apiOperationPolicy.js.map +1 -1
- package/dist/commonjs/operations/apiPolicy.js +1 -0
- package/dist/commonjs/operations/apiPolicy.js.map +1 -1
- package/dist/commonjs/operations/apiProduct.js +23 -39
- package/dist/commonjs/operations/apiProduct.js.map +1 -1
- package/dist/commonjs/operations/apiRelease.js +23 -39
- package/dist/commonjs/operations/apiRelease.js.map +1 -1
- package/dist/commonjs/operations/apiRevision.js +23 -39
- package/dist/commonjs/operations/apiRevision.js.map +1 -1
- package/dist/commonjs/operations/apiSchema.js +34 -45
- package/dist/commonjs/operations/apiSchema.js.map +1 -1
- package/dist/commonjs/operations/apiTagDescription.js +23 -39
- package/dist/commonjs/operations/apiTagDescription.js.map +1 -1
- package/dist/commonjs/operations/apiVersionSet.js +23 -39
- package/dist/commonjs/operations/apiVersionSet.js.map +1 -1
- package/dist/commonjs/operations/apiWiki.js +1 -0
- package/dist/commonjs/operations/apiWiki.js.map +1 -1
- package/dist/commonjs/operations/apiWikis.js +23 -39
- package/dist/commonjs/operations/apiWikis.js.map +1 -1
- package/dist/commonjs/operations/authorization.js +23 -39
- package/dist/commonjs/operations/authorization.js.map +1 -1
- package/dist/commonjs/operations/authorizationAccessPolicy.js +23 -39
- package/dist/commonjs/operations/authorizationAccessPolicy.js.map +1 -1
- package/dist/commonjs/operations/authorizationLoginLinks.js +1 -0
- package/dist/commonjs/operations/authorizationLoginLinks.js.map +1 -1
- package/dist/commonjs/operations/authorizationProvider.js +23 -39
- package/dist/commonjs/operations/authorizationProvider.js.map +1 -1
- package/dist/commonjs/operations/authorizationServer.js +23 -39
- package/dist/commonjs/operations/authorizationServer.js.map +1 -1
- package/dist/commonjs/operations/backend.js +23 -39
- package/dist/commonjs/operations/backend.js.map +1 -1
- package/dist/commonjs/operations/cache.js +23 -39
- package/dist/commonjs/operations/cache.js.map +1 -1
- package/dist/commonjs/operations/certificate.js +23 -39
- package/dist/commonjs/operations/certificate.js.map +1 -1
- package/dist/commonjs/operations/contentItem.js +23 -39
- package/dist/commonjs/operations/contentItem.js.map +1 -1
- package/dist/commonjs/operations/contentType.js +23 -39
- package/dist/commonjs/operations/contentType.js.map +1 -1
- package/dist/commonjs/operations/delegationSettings.js +1 -0
- package/dist/commonjs/operations/delegationSettings.js.map +1 -1
- package/dist/commonjs/operations/deletedServices.js +34 -45
- package/dist/commonjs/operations/deletedServices.js.map +1 -1
- package/dist/commonjs/operations/diagnostic.js +23 -39
- package/dist/commonjs/operations/diagnostic.js.map +1 -1
- package/dist/commonjs/operations/documentation.js +23 -39
- package/dist/commonjs/operations/documentation.js.map +1 -1
- package/dist/commonjs/operations/emailTemplate.js +23 -39
- package/dist/commonjs/operations/emailTemplate.js.map +1 -1
- package/dist/commonjs/operations/gateway.js +23 -39
- package/dist/commonjs/operations/gateway.js.map +1 -1
- package/dist/commonjs/operations/gatewayApi.js +23 -39
- package/dist/commonjs/operations/gatewayApi.js.map +1 -1
- package/dist/commonjs/operations/gatewayCertificateAuthority.js +23 -39
- package/dist/commonjs/operations/gatewayCertificateAuthority.js.map +1 -1
- package/dist/commonjs/operations/gatewayHostnameConfiguration.js +23 -39
- package/dist/commonjs/operations/gatewayHostnameConfiguration.js.map +1 -1
- package/dist/commonjs/operations/globalSchema.js +34 -45
- package/dist/commonjs/operations/globalSchema.js.map +1 -1
- package/dist/commonjs/operations/graphQLApiResolver.js +23 -39
- package/dist/commonjs/operations/graphQLApiResolver.js.map +1 -1
- package/dist/commonjs/operations/graphQLApiResolverPolicy.js +23 -39
- package/dist/commonjs/operations/graphQLApiResolverPolicy.js.map +1 -1
- package/dist/commonjs/operations/group.js +23 -39
- package/dist/commonjs/operations/group.js.map +1 -1
- package/dist/commonjs/operations/groupUser.js +23 -39
- package/dist/commonjs/operations/groupUser.js.map +1 -1
- package/dist/commonjs/operations/identityProvider.js +23 -39
- package/dist/commonjs/operations/identityProvider.js.map +1 -1
- package/dist/commonjs/operations/issue.js +23 -39
- package/dist/commonjs/operations/issue.js.map +1 -1
- package/dist/commonjs/operations/logger.js +23 -39
- package/dist/commonjs/operations/logger.js.map +1 -1
- package/dist/commonjs/operations/namedValue.js +56 -57
- package/dist/commonjs/operations/namedValue.js.map +1 -1
- package/dist/commonjs/operations/networkStatus.js +1 -0
- package/dist/commonjs/operations/networkStatus.js.map +1 -1
- package/dist/commonjs/operations/notification.js +23 -39
- package/dist/commonjs/operations/notification.js.map +1 -1
- package/dist/commonjs/operations/notificationRecipientEmail.js +1 -0
- package/dist/commonjs/operations/notificationRecipientEmail.js.map +1 -1
- package/dist/commonjs/operations/notificationRecipientUser.js +1 -0
- package/dist/commonjs/operations/notificationRecipientUser.js.map +1 -1
- package/dist/commonjs/operations/openIdConnectProvider.js +23 -39
- package/dist/commonjs/operations/openIdConnectProvider.js.map +1 -1
- package/dist/commonjs/operations/operationOperations.js +23 -39
- package/dist/commonjs/operations/operationOperations.js.map +1 -1
- package/dist/commonjs/operations/operationStatus.js +1 -0
- package/dist/commonjs/operations/operationStatus.js.map +1 -1
- package/dist/commonjs/operations/operationsResults.js +1 -0
- package/dist/commonjs/operations/operationsResults.js.map +1 -1
- package/dist/commonjs/operations/outboundNetworkDependenciesEndpoints.js +1 -0
- package/dist/commonjs/operations/outboundNetworkDependenciesEndpoints.js.map +1 -1
- package/dist/commonjs/operations/policy.js +23 -39
- package/dist/commonjs/operations/policy.js.map +1 -1
- package/dist/commonjs/operations/policyDescription.js +1 -0
- package/dist/commonjs/operations/policyDescription.js.map +1 -1
- package/dist/commonjs/operations/policyFragment.js +34 -45
- package/dist/commonjs/operations/policyFragment.js.map +1 -1
- package/dist/commonjs/operations/policyRestriction.js +23 -39
- package/dist/commonjs/operations/policyRestriction.js.map +1 -1
- package/dist/commonjs/operations/policyRestrictionValidations.js +12 -6
- package/dist/commonjs/operations/policyRestrictionValidations.js.map +1 -1
- package/dist/commonjs/operations/portalConfig.js +23 -39
- package/dist/commonjs/operations/portalConfig.js.map +1 -1
- package/dist/commonjs/operations/portalRevision.js +45 -51
- package/dist/commonjs/operations/portalRevision.js.map +1 -1
- package/dist/commonjs/operations/portalSettings.js +1 -0
- package/dist/commonjs/operations/portalSettings.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/commonjs/operations/product.js +45 -78
- package/dist/commonjs/operations/product.js.map +1 -1
- package/dist/commonjs/operations/productApi.js +23 -39
- package/dist/commonjs/operations/productApi.js.map +1 -1
- package/dist/commonjs/operations/productApiLink.js +23 -39
- package/dist/commonjs/operations/productApiLink.js.map +1 -1
- package/dist/commonjs/operations/productGroup.js +23 -39
- package/dist/commonjs/operations/productGroup.js.map +1 -1
- package/dist/commonjs/operations/productGroupLink.js +23 -39
- package/dist/commonjs/operations/productGroupLink.js.map +1 -1
- package/dist/commonjs/operations/productPolicy.js +23 -39
- package/dist/commonjs/operations/productPolicy.js.map +1 -1
- package/dist/commonjs/operations/productSubscriptions.js +23 -39
- package/dist/commonjs/operations/productSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/productWiki.js +1 -0
- package/dist/commonjs/operations/productWiki.js.map +1 -1
- package/dist/commonjs/operations/productWikis.js +23 -39
- package/dist/commonjs/operations/productWikis.js.map +1 -1
- package/dist/commonjs/operations/quotaByCounterKeys.js +1 -0
- package/dist/commonjs/operations/quotaByCounterKeys.js.map +1 -1
- package/dist/commonjs/operations/quotaByPeriodKeys.js +1 -0
- package/dist/commonjs/operations/quotaByPeriodKeys.js.map +1 -1
- package/dist/commonjs/operations/region.js +23 -39
- package/dist/commonjs/operations/region.js.map +1 -1
- package/dist/commonjs/operations/reports.js +164 -299
- package/dist/commonjs/operations/reports.js.map +1 -1
- package/dist/commonjs/operations/signInSettings.js +1 -0
- package/dist/commonjs/operations/signInSettings.js.map +1 -1
- package/dist/commonjs/operations/signUpSettings.js +1 -0
- package/dist/commonjs/operations/signUpSettings.js.map +1 -1
- package/dist/commonjs/operations/subscription.js +23 -39
- package/dist/commonjs/operations/subscription.js.map +1 -1
- package/dist/commonjs/operations/tag.js +89 -156
- package/dist/commonjs/operations/tag.js.map +1 -1
- package/dist/commonjs/operations/tagApiLink.js +23 -39
- package/dist/commonjs/operations/tagApiLink.js.map +1 -1
- package/dist/commonjs/operations/tagOperationLink.js +23 -39
- package/dist/commonjs/operations/tagOperationLink.js.map +1 -1
- package/dist/commonjs/operations/tagProductLink.js +23 -39
- package/dist/commonjs/operations/tagProductLink.js.map +1 -1
- package/dist/commonjs/operations/tagResource.js +23 -39
- package/dist/commonjs/operations/tagResource.js.map +1 -1
- package/dist/commonjs/operations/tenantAccess.js +23 -39
- package/dist/commonjs/operations/tenantAccess.js.map +1 -1
- package/dist/commonjs/operations/tenantAccessGit.js +1 -0
- package/dist/commonjs/operations/tenantAccessGit.js.map +1 -1
- package/dist/commonjs/operations/tenantConfiguration.js +34 -18
- package/dist/commonjs/operations/tenantConfiguration.js.map +1 -1
- package/dist/commonjs/operations/tenantSettings.js +23 -39
- package/dist/commonjs/operations/tenantSettings.js.map +1 -1
- package/dist/commonjs/operations/user.js +34 -45
- package/dist/commonjs/operations/user.js.map +1 -1
- package/dist/commonjs/operations/userConfirmationPassword.js +1 -0
- package/dist/commonjs/operations/userConfirmationPassword.js.map +1 -1
- package/dist/commonjs/operations/userGroup.js +23 -39
- package/dist/commonjs/operations/userGroup.js.map +1 -1
- package/dist/commonjs/operations/userIdentities.js +23 -39
- package/dist/commonjs/operations/userIdentities.js.map +1 -1
- package/dist/commonjs/operations/userSubscription.js +23 -39
- package/dist/commonjs/operations/userSubscription.js.map +1 -1
- package/dist/commonjs/operations/workspace.js +23 -39
- package/dist/commonjs/operations/workspace.js.map +1 -1
- package/dist/commonjs/operations/workspaceApi.js +34 -45
- package/dist/commonjs/operations/workspaceApi.js.map +1 -1
- package/dist/commonjs/operations/workspaceApiDiagnostic.js +23 -39
- package/dist/commonjs/operations/workspaceApiDiagnostic.js.map +1 -1
- package/dist/commonjs/operations/workspaceApiExport.js +1 -0
- package/dist/commonjs/operations/workspaceApiExport.js.map +1 -1
- package/dist/commonjs/operations/workspaceApiOperation.js +23 -39
- package/dist/commonjs/operations/workspaceApiOperation.js.map +1 -1
- package/dist/commonjs/operations/workspaceApiOperationPolicy.js +23 -39
- package/dist/commonjs/operations/workspaceApiOperationPolicy.js.map +1 -1
- package/dist/commonjs/operations/workspaceApiPolicy.js +23 -39
- package/dist/commonjs/operations/workspaceApiPolicy.js.map +1 -1
- package/dist/commonjs/operations/workspaceApiRelease.js +23 -39
- package/dist/commonjs/operations/workspaceApiRelease.js.map +1 -1
- package/dist/commonjs/operations/workspaceApiRevision.js +23 -39
- package/dist/commonjs/operations/workspaceApiRevision.js.map +1 -1
- package/dist/commonjs/operations/workspaceApiSchema.js +34 -45
- package/dist/commonjs/operations/workspaceApiSchema.js.map +1 -1
- package/dist/commonjs/operations/workspaceApiVersionSet.js +23 -39
- package/dist/commonjs/operations/workspaceApiVersionSet.js.map +1 -1
- package/dist/commonjs/operations/workspaceBackend.js +23 -39
- package/dist/commonjs/operations/workspaceBackend.js.map +1 -1
- package/dist/commonjs/operations/workspaceCertificate.js +23 -39
- package/dist/commonjs/operations/workspaceCertificate.js.map +1 -1
- package/dist/commonjs/operations/workspaceDiagnostic.js +23 -39
- package/dist/commonjs/operations/workspaceDiagnostic.js.map +1 -1
- package/dist/commonjs/operations/workspaceGlobalSchema.js +34 -45
- package/dist/commonjs/operations/workspaceGlobalSchema.js.map +1 -1
- package/dist/commonjs/operations/workspaceGroup.js +23 -39
- package/dist/commonjs/operations/workspaceGroup.js.map +1 -1
- package/dist/commonjs/operations/workspaceGroupUser.js +23 -39
- package/dist/commonjs/operations/workspaceGroupUser.js.map +1 -1
- package/dist/commonjs/operations/workspaceLogger.js +23 -39
- package/dist/commonjs/operations/workspaceLogger.js.map +1 -1
- package/dist/commonjs/operations/workspaceNamedValue.js +56 -57
- package/dist/commonjs/operations/workspaceNamedValue.js.map +1 -1
- package/dist/commonjs/operations/workspaceNotification.js +23 -39
- package/dist/commonjs/operations/workspaceNotification.js.map +1 -1
- package/dist/commonjs/operations/workspaceNotificationRecipientEmail.js +1 -0
- package/dist/commonjs/operations/workspaceNotificationRecipientEmail.js.map +1 -1
- package/dist/commonjs/operations/workspaceNotificationRecipientUser.js +1 -0
- package/dist/commonjs/operations/workspaceNotificationRecipientUser.js.map +1 -1
- package/dist/commonjs/operations/workspacePolicy.js +23 -39
- package/dist/commonjs/operations/workspacePolicy.js.map +1 -1
- package/dist/commonjs/operations/workspacePolicyFragment.js +34 -45
- package/dist/commonjs/operations/workspacePolicyFragment.js.map +1 -1
- package/dist/commonjs/operations/workspaceProduct.js +23 -39
- package/dist/commonjs/operations/workspaceProduct.js.map +1 -1
- package/dist/commonjs/operations/workspaceProductApiLink.js +23 -39
- package/dist/commonjs/operations/workspaceProductApiLink.js.map +1 -1
- package/dist/commonjs/operations/workspaceProductGroupLink.js +23 -39
- package/dist/commonjs/operations/workspaceProductGroupLink.js.map +1 -1
- package/dist/commonjs/operations/workspaceProductPolicy.js +1 -0
- package/dist/commonjs/operations/workspaceProductPolicy.js.map +1 -1
- package/dist/commonjs/operations/workspaceSubscription.js +23 -39
- package/dist/commonjs/operations/workspaceSubscription.js.map +1 -1
- package/dist/commonjs/operations/workspaceTag.js +23 -39
- package/dist/commonjs/operations/workspaceTag.js.map +1 -1
- package/dist/commonjs/operations/workspaceTagApiLink.js +23 -39
- package/dist/commonjs/operations/workspaceTagApiLink.js.map +1 -1
- package/dist/commonjs/operations/workspaceTagOperationLink.js +23 -39
- package/dist/commonjs/operations/workspaceTagOperationLink.js.map +1 -1
- package/dist/commonjs/operations/workspaceTagProductLink.js +23 -39
- package/dist/commonjs/operations/workspaceTagProductLink.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/apiManagementClient.js +160 -11
- package/dist/esm/apiManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +1444 -666
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/allPolicies.js +23 -40
- package/dist/esm/operations/allPolicies.js.map +1 -1
- package/dist/esm/operations/api.js +67 -91
- package/dist/esm/operations/api.js.map +1 -1
- package/dist/esm/operations/apiDiagnostic.js +23 -40
- package/dist/esm/operations/apiDiagnostic.js.map +1 -1
- package/dist/esm/operations/apiExport.js +1 -0
- package/dist/esm/operations/apiExport.js.map +1 -1
- package/dist/esm/operations/apiGateway.js +78 -97
- package/dist/esm/operations/apiGateway.js.map +1 -1
- package/dist/esm/operations/apiGatewayConfigConnection.js +45 -52
- package/dist/esm/operations/apiGatewayConfigConnection.js.map +1 -1
- package/dist/esm/operations/apiIssue.js +23 -40
- package/dist/esm/operations/apiIssue.js.map +1 -1
- package/dist/esm/operations/apiIssueAttachment.js +23 -40
- package/dist/esm/operations/apiIssueAttachment.js.map +1 -1
- package/dist/esm/operations/apiIssueComment.js +23 -40
- package/dist/esm/operations/apiIssueComment.js.map +1 -1
- package/dist/esm/operations/apiManagementGatewaySkus.js +23 -40
- package/dist/esm/operations/apiManagementGatewaySkus.js.map +1 -1
- package/dist/esm/operations/apiManagementOperations.js +23 -40
- package/dist/esm/operations/apiManagementOperations.js.map +1 -1
- package/dist/esm/operations/apiManagementService.js +122 -121
- package/dist/esm/operations/apiManagementService.js.map +1 -1
- package/dist/esm/operations/apiManagementServiceSkus.js +23 -40
- package/dist/esm/operations/apiManagementServiceSkus.js.map +1 -1
- package/dist/esm/operations/apiManagementSkus.js +23 -40
- package/dist/esm/operations/apiManagementSkus.js.map +1 -1
- package/dist/esm/operations/apiManagementWorkspaceLink.js +1 -0
- package/dist/esm/operations/apiManagementWorkspaceLink.js.map +1 -1
- package/dist/esm/operations/apiManagementWorkspaceLinks.js +23 -40
- package/dist/esm/operations/apiManagementWorkspaceLinks.js.map +1 -1
- package/dist/esm/operations/apiOperation.js +23 -40
- package/dist/esm/operations/apiOperation.js.map +1 -1
- package/dist/esm/operations/apiOperationPolicy.js +1 -0
- package/dist/esm/operations/apiOperationPolicy.js.map +1 -1
- package/dist/esm/operations/apiPolicy.js +1 -0
- package/dist/esm/operations/apiPolicy.js.map +1 -1
- package/dist/esm/operations/apiProduct.js +23 -40
- package/dist/esm/operations/apiProduct.js.map +1 -1
- package/dist/esm/operations/apiRelease.js +23 -40
- package/dist/esm/operations/apiRelease.js.map +1 -1
- package/dist/esm/operations/apiRevision.js +23 -40
- package/dist/esm/operations/apiRevision.js.map +1 -1
- package/dist/esm/operations/apiSchema.js +34 -46
- package/dist/esm/operations/apiSchema.js.map +1 -1
- package/dist/esm/operations/apiTagDescription.js +23 -40
- package/dist/esm/operations/apiTagDescription.js.map +1 -1
- package/dist/esm/operations/apiVersionSet.js +23 -40
- package/dist/esm/operations/apiVersionSet.js.map +1 -1
- package/dist/esm/operations/apiWiki.js +1 -0
- package/dist/esm/operations/apiWiki.js.map +1 -1
- package/dist/esm/operations/apiWikis.js +23 -40
- package/dist/esm/operations/apiWikis.js.map +1 -1
- package/dist/esm/operations/authorization.js +23 -40
- package/dist/esm/operations/authorization.js.map +1 -1
- package/dist/esm/operations/authorizationAccessPolicy.js +23 -40
- package/dist/esm/operations/authorizationAccessPolicy.js.map +1 -1
- package/dist/esm/operations/authorizationLoginLinks.js +1 -0
- package/dist/esm/operations/authorizationLoginLinks.js.map +1 -1
- package/dist/esm/operations/authorizationProvider.js +23 -40
- package/dist/esm/operations/authorizationProvider.js.map +1 -1
- package/dist/esm/operations/authorizationServer.js +23 -40
- package/dist/esm/operations/authorizationServer.js.map +1 -1
- package/dist/esm/operations/backend.js +23 -40
- package/dist/esm/operations/backend.js.map +1 -1
- package/dist/esm/operations/cache.js +23 -40
- package/dist/esm/operations/cache.js.map +1 -1
- package/dist/esm/operations/certificate.js +23 -40
- package/dist/esm/operations/certificate.js.map +1 -1
- package/dist/esm/operations/contentItem.js +23 -40
- package/dist/esm/operations/contentItem.js.map +1 -1
- package/dist/esm/operations/contentType.js +23 -40
- package/dist/esm/operations/contentType.js.map +1 -1
- package/dist/esm/operations/delegationSettings.js +1 -0
- package/dist/esm/operations/delegationSettings.js.map +1 -1
- package/dist/esm/operations/deletedServices.js +34 -46
- package/dist/esm/operations/deletedServices.js.map +1 -1
- package/dist/esm/operations/diagnostic.js +23 -40
- package/dist/esm/operations/diagnostic.js.map +1 -1
- package/dist/esm/operations/documentation.js +23 -40
- package/dist/esm/operations/documentation.js.map +1 -1
- package/dist/esm/operations/emailTemplate.js +23 -40
- package/dist/esm/operations/emailTemplate.js.map +1 -1
- package/dist/esm/operations/gateway.js +23 -40
- package/dist/esm/operations/gateway.js.map +1 -1
- package/dist/esm/operations/gatewayApi.js +23 -40
- package/dist/esm/operations/gatewayApi.js.map +1 -1
- package/dist/esm/operations/gatewayCertificateAuthority.js +23 -40
- package/dist/esm/operations/gatewayCertificateAuthority.js.map +1 -1
- package/dist/esm/operations/gatewayHostnameConfiguration.js +23 -40
- package/dist/esm/operations/gatewayHostnameConfiguration.js.map +1 -1
- package/dist/esm/operations/globalSchema.js +34 -46
- package/dist/esm/operations/globalSchema.js.map +1 -1
- package/dist/esm/operations/graphQLApiResolver.js +23 -40
- package/dist/esm/operations/graphQLApiResolver.js.map +1 -1
- package/dist/esm/operations/graphQLApiResolverPolicy.js +23 -40
- package/dist/esm/operations/graphQLApiResolverPolicy.js.map +1 -1
- package/dist/esm/operations/group.js +23 -40
- package/dist/esm/operations/group.js.map +1 -1
- package/dist/esm/operations/groupUser.js +23 -40
- package/dist/esm/operations/groupUser.js.map +1 -1
- package/dist/esm/operations/identityProvider.js +23 -40
- package/dist/esm/operations/identityProvider.js.map +1 -1
- package/dist/esm/operations/issue.js +23 -40
- package/dist/esm/operations/issue.js.map +1 -1
- package/dist/esm/operations/logger.js +23 -40
- package/dist/esm/operations/logger.js.map +1 -1
- package/dist/esm/operations/namedValue.js +56 -58
- package/dist/esm/operations/namedValue.js.map +1 -1
- package/dist/esm/operations/networkStatus.js +1 -0
- package/dist/esm/operations/networkStatus.js.map +1 -1
- package/dist/esm/operations/notification.js +23 -40
- package/dist/esm/operations/notification.js.map +1 -1
- package/dist/esm/operations/notificationRecipientEmail.js +1 -0
- package/dist/esm/operations/notificationRecipientEmail.js.map +1 -1
- package/dist/esm/operations/notificationRecipientUser.js +1 -0
- package/dist/esm/operations/notificationRecipientUser.js.map +1 -1
- package/dist/esm/operations/openIdConnectProvider.js +23 -40
- package/dist/esm/operations/openIdConnectProvider.js.map +1 -1
- package/dist/esm/operations/operationOperations.js +23 -40
- package/dist/esm/operations/operationOperations.js.map +1 -1
- package/dist/esm/operations/operationStatus.js +1 -0
- package/dist/esm/operations/operationStatus.js.map +1 -1
- package/dist/esm/operations/operationsResults.js +1 -0
- package/dist/esm/operations/operationsResults.js.map +1 -1
- package/dist/esm/operations/outboundNetworkDependenciesEndpoints.js +1 -0
- package/dist/esm/operations/outboundNetworkDependenciesEndpoints.js.map +1 -1
- package/dist/esm/operations/policy.js +23 -40
- package/dist/esm/operations/policy.js.map +1 -1
- package/dist/esm/operations/policyDescription.js +1 -0
- package/dist/esm/operations/policyDescription.js.map +1 -1
- package/dist/esm/operations/policyFragment.js +34 -46
- package/dist/esm/operations/policyFragment.js.map +1 -1
- package/dist/esm/operations/policyRestriction.js +23 -40
- package/dist/esm/operations/policyRestriction.js.map +1 -1
- package/dist/esm/operations/policyRestrictionValidations.js +12 -6
- package/dist/esm/operations/policyRestrictionValidations.js.map +1 -1
- package/dist/esm/operations/portalConfig.js +23 -40
- package/dist/esm/operations/portalConfig.js.map +1 -1
- package/dist/esm/operations/portalRevision.js +45 -52
- package/dist/esm/operations/portalRevision.js.map +1 -1
- package/dist/esm/operations/portalSettings.js +1 -0
- package/dist/esm/operations/portalSettings.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnectionOperations.js +32 -39
- package/dist/esm/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/esm/operations/product.js +45 -79
- package/dist/esm/operations/product.js.map +1 -1
- package/dist/esm/operations/productApi.js +23 -40
- package/dist/esm/operations/productApi.js.map +1 -1
- package/dist/esm/operations/productApiLink.js +23 -40
- package/dist/esm/operations/productApiLink.js.map +1 -1
- package/dist/esm/operations/productGroup.js +23 -40
- package/dist/esm/operations/productGroup.js.map +1 -1
- package/dist/esm/operations/productGroupLink.js +23 -40
- package/dist/esm/operations/productGroupLink.js.map +1 -1
- package/dist/esm/operations/productPolicy.js +23 -40
- package/dist/esm/operations/productPolicy.js.map +1 -1
- package/dist/esm/operations/productSubscriptions.js +23 -40
- package/dist/esm/operations/productSubscriptions.js.map +1 -1
- package/dist/esm/operations/productWiki.js +1 -0
- package/dist/esm/operations/productWiki.js.map +1 -1
- package/dist/esm/operations/productWikis.js +23 -40
- package/dist/esm/operations/productWikis.js.map +1 -1
- package/dist/esm/operations/quotaByCounterKeys.js +1 -0
- package/dist/esm/operations/quotaByCounterKeys.js.map +1 -1
- package/dist/esm/operations/quotaByPeriodKeys.js +1 -0
- package/dist/esm/operations/quotaByPeriodKeys.js.map +1 -1
- package/dist/esm/operations/region.js +23 -40
- package/dist/esm/operations/region.js.map +1 -1
- package/dist/esm/operations/reports.js +164 -300
- package/dist/esm/operations/reports.js.map +1 -1
- package/dist/esm/operations/signInSettings.js +1 -0
- package/dist/esm/operations/signInSettings.js.map +1 -1
- package/dist/esm/operations/signUpSettings.js +1 -0
- package/dist/esm/operations/signUpSettings.js.map +1 -1
- package/dist/esm/operations/subscription.js +23 -40
- package/dist/esm/operations/subscription.js.map +1 -1
- package/dist/esm/operations/tag.js +89 -157
- package/dist/esm/operations/tag.js.map +1 -1
- package/dist/esm/operations/tagApiLink.js +23 -40
- package/dist/esm/operations/tagApiLink.js.map +1 -1
- package/dist/esm/operations/tagOperationLink.js +23 -40
- package/dist/esm/operations/tagOperationLink.js.map +1 -1
- package/dist/esm/operations/tagProductLink.js +23 -40
- package/dist/esm/operations/tagProductLink.js.map +1 -1
- package/dist/esm/operations/tagResource.js +23 -40
- package/dist/esm/operations/tagResource.js.map +1 -1
- package/dist/esm/operations/tenantAccess.js +23 -40
- package/dist/esm/operations/tenantAccess.js.map +1 -1
- package/dist/esm/operations/tenantAccessGit.js +1 -0
- package/dist/esm/operations/tenantAccessGit.js.map +1 -1
- package/dist/esm/operations/tenantConfiguration.js +34 -18
- package/dist/esm/operations/tenantConfiguration.js.map +1 -1
- package/dist/esm/operations/tenantSettings.js +23 -40
- package/dist/esm/operations/tenantSettings.js.map +1 -1
- package/dist/esm/operations/user.js +34 -46
- package/dist/esm/operations/user.js.map +1 -1
- package/dist/esm/operations/userConfirmationPassword.js +1 -0
- package/dist/esm/operations/userConfirmationPassword.js.map +1 -1
- package/dist/esm/operations/userGroup.js +23 -40
- package/dist/esm/operations/userGroup.js.map +1 -1
- package/dist/esm/operations/userIdentities.js +23 -40
- package/dist/esm/operations/userIdentities.js.map +1 -1
- package/dist/esm/operations/userSubscription.js +23 -40
- package/dist/esm/operations/userSubscription.js.map +1 -1
- package/dist/esm/operations/workspace.js +23 -40
- package/dist/esm/operations/workspace.js.map +1 -1
- package/dist/esm/operations/workspaceApi.js +34 -46
- package/dist/esm/operations/workspaceApi.js.map +1 -1
- package/dist/esm/operations/workspaceApiDiagnostic.js +23 -40
- package/dist/esm/operations/workspaceApiDiagnostic.js.map +1 -1
- package/dist/esm/operations/workspaceApiExport.js +1 -0
- package/dist/esm/operations/workspaceApiExport.js.map +1 -1
- package/dist/esm/operations/workspaceApiOperation.js +23 -40
- package/dist/esm/operations/workspaceApiOperation.js.map +1 -1
- package/dist/esm/operations/workspaceApiOperationPolicy.js +23 -40
- package/dist/esm/operations/workspaceApiOperationPolicy.js.map +1 -1
- package/dist/esm/operations/workspaceApiPolicy.js +23 -40
- package/dist/esm/operations/workspaceApiPolicy.js.map +1 -1
- package/dist/esm/operations/workspaceApiRelease.js +23 -40
- package/dist/esm/operations/workspaceApiRelease.js.map +1 -1
- package/dist/esm/operations/workspaceApiRevision.js +23 -40
- package/dist/esm/operations/workspaceApiRevision.js.map +1 -1
- package/dist/esm/operations/workspaceApiSchema.js +34 -46
- package/dist/esm/operations/workspaceApiSchema.js.map +1 -1
- package/dist/esm/operations/workspaceApiVersionSet.js +23 -40
- package/dist/esm/operations/workspaceApiVersionSet.js.map +1 -1
- package/dist/esm/operations/workspaceBackend.js +23 -40
- package/dist/esm/operations/workspaceBackend.js.map +1 -1
- package/dist/esm/operations/workspaceCertificate.js +23 -40
- package/dist/esm/operations/workspaceCertificate.js.map +1 -1
- package/dist/esm/operations/workspaceDiagnostic.js +23 -40
- package/dist/esm/operations/workspaceDiagnostic.js.map +1 -1
- package/dist/esm/operations/workspaceGlobalSchema.js +34 -46
- package/dist/esm/operations/workspaceGlobalSchema.js.map +1 -1
- package/dist/esm/operations/workspaceGroup.js +23 -40
- package/dist/esm/operations/workspaceGroup.js.map +1 -1
- package/dist/esm/operations/workspaceGroupUser.js +23 -40
- package/dist/esm/operations/workspaceGroupUser.js.map +1 -1
- package/dist/esm/operations/workspaceLogger.js +23 -40
- package/dist/esm/operations/workspaceLogger.js.map +1 -1
- package/dist/esm/operations/workspaceNamedValue.js +56 -58
- package/dist/esm/operations/workspaceNamedValue.js.map +1 -1
- package/dist/esm/operations/workspaceNotification.js +23 -40
- package/dist/esm/operations/workspaceNotification.js.map +1 -1
- package/dist/esm/operations/workspaceNotificationRecipientEmail.js +1 -0
- package/dist/esm/operations/workspaceNotificationRecipientEmail.js.map +1 -1
- package/dist/esm/operations/workspaceNotificationRecipientUser.js +1 -0
- package/dist/esm/operations/workspaceNotificationRecipientUser.js.map +1 -1
- package/dist/esm/operations/workspacePolicy.js +23 -40
- package/dist/esm/operations/workspacePolicy.js.map +1 -1
- package/dist/esm/operations/workspacePolicyFragment.js +34 -46
- package/dist/esm/operations/workspacePolicyFragment.js.map +1 -1
- package/dist/esm/operations/workspaceProduct.js +23 -40
- package/dist/esm/operations/workspaceProduct.js.map +1 -1
- package/dist/esm/operations/workspaceProductApiLink.js +23 -40
- package/dist/esm/operations/workspaceProductApiLink.js.map +1 -1
- package/dist/esm/operations/workspaceProductGroupLink.js +23 -40
- package/dist/esm/operations/workspaceProductGroupLink.js.map +1 -1
- package/dist/esm/operations/workspaceProductPolicy.js +1 -0
- package/dist/esm/operations/workspaceProductPolicy.js.map +1 -1
- package/dist/esm/operations/workspaceSubscription.js +23 -40
- package/dist/esm/operations/workspaceSubscription.js.map +1 -1
- package/dist/esm/operations/workspaceTag.js +23 -40
- package/dist/esm/operations/workspaceTag.js.map +1 -1
- package/dist/esm/operations/workspaceTagApiLink.js +23 -40
- package/dist/esm/operations/workspaceTagApiLink.js.map +1 -1
- package/dist/esm/operations/workspaceTagOperationLink.js +23 -40
- package/dist/esm/operations/workspaceTagOperationLink.js.map +1 -1
- package/dist/esm/operations/workspaceTagProductLink.js +23 -40
- package/dist/esm/operations/workspaceTagProductLink.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/apiManagementClient.js +160 -11
- package/dist/react-native/apiManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +1444 -666
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/allPolicies.js +23 -40
- package/dist/react-native/operations/allPolicies.js.map +1 -1
- package/dist/react-native/operations/api.js +67 -91
- package/dist/react-native/operations/api.js.map +1 -1
- package/dist/react-native/operations/apiDiagnostic.js +23 -40
- package/dist/react-native/operations/apiDiagnostic.js.map +1 -1
- package/dist/react-native/operations/apiExport.js +1 -0
- package/dist/react-native/operations/apiExport.js.map +1 -1
- package/dist/react-native/operations/apiGateway.js +78 -97
- package/dist/react-native/operations/apiGateway.js.map +1 -1
- package/dist/react-native/operations/apiGatewayConfigConnection.js +45 -52
- package/dist/react-native/operations/apiGatewayConfigConnection.js.map +1 -1
- package/dist/react-native/operations/apiIssue.js +23 -40
- package/dist/react-native/operations/apiIssue.js.map +1 -1
- package/dist/react-native/operations/apiIssueAttachment.js +23 -40
- package/dist/react-native/operations/apiIssueAttachment.js.map +1 -1
- package/dist/react-native/operations/apiIssueComment.js +23 -40
- package/dist/react-native/operations/apiIssueComment.js.map +1 -1
- package/dist/react-native/operations/apiManagementGatewaySkus.js +23 -40
- package/dist/react-native/operations/apiManagementGatewaySkus.js.map +1 -1
- package/dist/react-native/operations/apiManagementOperations.js +23 -40
- package/dist/react-native/operations/apiManagementOperations.js.map +1 -1
- package/dist/react-native/operations/apiManagementService.js +122 -121
- package/dist/react-native/operations/apiManagementService.js.map +1 -1
- package/dist/react-native/operations/apiManagementServiceSkus.js +23 -40
- package/dist/react-native/operations/apiManagementServiceSkus.js.map +1 -1
- package/dist/react-native/operations/apiManagementSkus.js +23 -40
- package/dist/react-native/operations/apiManagementSkus.js.map +1 -1
- package/dist/react-native/operations/apiManagementWorkspaceLink.js +1 -0
- package/dist/react-native/operations/apiManagementWorkspaceLink.js.map +1 -1
- package/dist/react-native/operations/apiManagementWorkspaceLinks.js +23 -40
- package/dist/react-native/operations/apiManagementWorkspaceLinks.js.map +1 -1
- package/dist/react-native/operations/apiOperation.js +23 -40
- package/dist/react-native/operations/apiOperation.js.map +1 -1
- package/dist/react-native/operations/apiOperationPolicy.js +1 -0
- package/dist/react-native/operations/apiOperationPolicy.js.map +1 -1
- package/dist/react-native/operations/apiPolicy.js +1 -0
- package/dist/react-native/operations/apiPolicy.js.map +1 -1
- package/dist/react-native/operations/apiProduct.js +23 -40
- package/dist/react-native/operations/apiProduct.js.map +1 -1
- package/dist/react-native/operations/apiRelease.js +23 -40
- package/dist/react-native/operations/apiRelease.js.map +1 -1
- package/dist/react-native/operations/apiRevision.js +23 -40
- package/dist/react-native/operations/apiRevision.js.map +1 -1
- package/dist/react-native/operations/apiSchema.js +34 -46
- package/dist/react-native/operations/apiSchema.js.map +1 -1
- package/dist/react-native/operations/apiTagDescription.js +23 -40
- package/dist/react-native/operations/apiTagDescription.js.map +1 -1
- package/dist/react-native/operations/apiVersionSet.js +23 -40
- package/dist/react-native/operations/apiVersionSet.js.map +1 -1
- package/dist/react-native/operations/apiWiki.js +1 -0
- package/dist/react-native/operations/apiWiki.js.map +1 -1
- package/dist/react-native/operations/apiWikis.js +23 -40
- package/dist/react-native/operations/apiWikis.js.map +1 -1
- package/dist/react-native/operations/authorization.js +23 -40
- package/dist/react-native/operations/authorization.js.map +1 -1
- package/dist/react-native/operations/authorizationAccessPolicy.js +23 -40
- package/dist/react-native/operations/authorizationAccessPolicy.js.map +1 -1
- package/dist/react-native/operations/authorizationLoginLinks.js +1 -0
- package/dist/react-native/operations/authorizationLoginLinks.js.map +1 -1
- package/dist/react-native/operations/authorizationProvider.js +23 -40
- package/dist/react-native/operations/authorizationProvider.js.map +1 -1
- package/dist/react-native/operations/authorizationServer.js +23 -40
- package/dist/react-native/operations/authorizationServer.js.map +1 -1
- package/dist/react-native/operations/backend.js +23 -40
- package/dist/react-native/operations/backend.js.map +1 -1
- package/dist/react-native/operations/cache.js +23 -40
- package/dist/react-native/operations/cache.js.map +1 -1
- package/dist/react-native/operations/certificate.js +23 -40
- package/dist/react-native/operations/certificate.js.map +1 -1
- package/dist/react-native/operations/contentItem.js +23 -40
- package/dist/react-native/operations/contentItem.js.map +1 -1
- package/dist/react-native/operations/contentType.js +23 -40
- package/dist/react-native/operations/contentType.js.map +1 -1
- package/dist/react-native/operations/delegationSettings.js +1 -0
- package/dist/react-native/operations/delegationSettings.js.map +1 -1
- package/dist/react-native/operations/deletedServices.js +34 -46
- package/dist/react-native/operations/deletedServices.js.map +1 -1
- package/dist/react-native/operations/diagnostic.js +23 -40
- package/dist/react-native/operations/diagnostic.js.map +1 -1
- package/dist/react-native/operations/documentation.js +23 -40
- package/dist/react-native/operations/documentation.js.map +1 -1
- package/dist/react-native/operations/emailTemplate.js +23 -40
- package/dist/react-native/operations/emailTemplate.js.map +1 -1
- package/dist/react-native/operations/gateway.js +23 -40
- package/dist/react-native/operations/gateway.js.map +1 -1
- package/dist/react-native/operations/gatewayApi.js +23 -40
- package/dist/react-native/operations/gatewayApi.js.map +1 -1
- package/dist/react-native/operations/gatewayCertificateAuthority.js +23 -40
- package/dist/react-native/operations/gatewayCertificateAuthority.js.map +1 -1
- package/dist/react-native/operations/gatewayHostnameConfiguration.js +23 -40
- package/dist/react-native/operations/gatewayHostnameConfiguration.js.map +1 -1
- package/dist/react-native/operations/globalSchema.js +34 -46
- package/dist/react-native/operations/globalSchema.js.map +1 -1
- package/dist/react-native/operations/graphQLApiResolver.js +23 -40
- package/dist/react-native/operations/graphQLApiResolver.js.map +1 -1
- package/dist/react-native/operations/graphQLApiResolverPolicy.js +23 -40
- package/dist/react-native/operations/graphQLApiResolverPolicy.js.map +1 -1
- package/dist/react-native/operations/group.js +23 -40
- package/dist/react-native/operations/group.js.map +1 -1
- package/dist/react-native/operations/groupUser.js +23 -40
- package/dist/react-native/operations/groupUser.js.map +1 -1
- package/dist/react-native/operations/identityProvider.js +23 -40
- package/dist/react-native/operations/identityProvider.js.map +1 -1
- package/dist/react-native/operations/issue.js +23 -40
- package/dist/react-native/operations/issue.js.map +1 -1
- package/dist/react-native/operations/logger.js +23 -40
- package/dist/react-native/operations/logger.js.map +1 -1
- package/dist/react-native/operations/namedValue.js +56 -58
- package/dist/react-native/operations/namedValue.js.map +1 -1
- package/dist/react-native/operations/networkStatus.js +1 -0
- package/dist/react-native/operations/networkStatus.js.map +1 -1
- package/dist/react-native/operations/notification.js +23 -40
- package/dist/react-native/operations/notification.js.map +1 -1
- package/dist/react-native/operations/notificationRecipientEmail.js +1 -0
- package/dist/react-native/operations/notificationRecipientEmail.js.map +1 -1
- package/dist/react-native/operations/notificationRecipientUser.js +1 -0
- package/dist/react-native/operations/notificationRecipientUser.js.map +1 -1
- package/dist/react-native/operations/openIdConnectProvider.js +23 -40
- package/dist/react-native/operations/openIdConnectProvider.js.map +1 -1
- package/dist/react-native/operations/operationOperations.js +23 -40
- package/dist/react-native/operations/operationOperations.js.map +1 -1
- package/dist/react-native/operations/operationStatus.js +1 -0
- package/dist/react-native/operations/operationStatus.js.map +1 -1
- package/dist/react-native/operations/operationsResults.js +1 -0
- package/dist/react-native/operations/operationsResults.js.map +1 -1
- package/dist/react-native/operations/outboundNetworkDependenciesEndpoints.js +1 -0
- package/dist/react-native/operations/outboundNetworkDependenciesEndpoints.js.map +1 -1
- package/dist/react-native/operations/policy.js +23 -40
- package/dist/react-native/operations/policy.js.map +1 -1
- package/dist/react-native/operations/policyDescription.js +1 -0
- package/dist/react-native/operations/policyDescription.js.map +1 -1
- package/dist/react-native/operations/policyFragment.js +34 -46
- package/dist/react-native/operations/policyFragment.js.map +1 -1
- package/dist/react-native/operations/policyRestriction.js +23 -40
- package/dist/react-native/operations/policyRestriction.js.map +1 -1
- package/dist/react-native/operations/policyRestrictionValidations.js +12 -6
- package/dist/react-native/operations/policyRestrictionValidations.js.map +1 -1
- package/dist/react-native/operations/portalConfig.js +23 -40
- package/dist/react-native/operations/portalConfig.js.map +1 -1
- package/dist/react-native/operations/portalRevision.js +45 -52
- package/dist/react-native/operations/portalRevision.js.map +1 -1
- package/dist/react-native/operations/portalSettings.js +1 -0
- package/dist/react-native/operations/portalSettings.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnectionOperations.js +32 -39
- package/dist/react-native/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/react-native/operations/product.js +45 -79
- package/dist/react-native/operations/product.js.map +1 -1
- package/dist/react-native/operations/productApi.js +23 -40
- package/dist/react-native/operations/productApi.js.map +1 -1
- package/dist/react-native/operations/productApiLink.js +23 -40
- package/dist/react-native/operations/productApiLink.js.map +1 -1
- package/dist/react-native/operations/productGroup.js +23 -40
- package/dist/react-native/operations/productGroup.js.map +1 -1
- package/dist/react-native/operations/productGroupLink.js +23 -40
- package/dist/react-native/operations/productGroupLink.js.map +1 -1
- package/dist/react-native/operations/productPolicy.js +23 -40
- package/dist/react-native/operations/productPolicy.js.map +1 -1
- package/dist/react-native/operations/productSubscriptions.js +23 -40
- package/dist/react-native/operations/productSubscriptions.js.map +1 -1
- package/dist/react-native/operations/productWiki.js +1 -0
- package/dist/react-native/operations/productWiki.js.map +1 -1
- package/dist/react-native/operations/productWikis.js +23 -40
- package/dist/react-native/operations/productWikis.js.map +1 -1
- package/dist/react-native/operations/quotaByCounterKeys.js +1 -0
- package/dist/react-native/operations/quotaByCounterKeys.js.map +1 -1
- package/dist/react-native/operations/quotaByPeriodKeys.js +1 -0
- package/dist/react-native/operations/quotaByPeriodKeys.js.map +1 -1
- package/dist/react-native/operations/region.js +23 -40
- package/dist/react-native/operations/region.js.map +1 -1
- package/dist/react-native/operations/reports.js +164 -300
- package/dist/react-native/operations/reports.js.map +1 -1
- package/dist/react-native/operations/signInSettings.js +1 -0
- package/dist/react-native/operations/signInSettings.js.map +1 -1
- package/dist/react-native/operations/signUpSettings.js +1 -0
- package/dist/react-native/operations/signUpSettings.js.map +1 -1
- package/dist/react-native/operations/subscription.js +23 -40
- package/dist/react-native/operations/subscription.js.map +1 -1
- package/dist/react-native/operations/tag.js +89 -157
- package/dist/react-native/operations/tag.js.map +1 -1
- package/dist/react-native/operations/tagApiLink.js +23 -40
- package/dist/react-native/operations/tagApiLink.js.map +1 -1
- package/dist/react-native/operations/tagOperationLink.js +23 -40
- package/dist/react-native/operations/tagOperationLink.js.map +1 -1
- package/dist/react-native/operations/tagProductLink.js +23 -40
- package/dist/react-native/operations/tagProductLink.js.map +1 -1
- package/dist/react-native/operations/tagResource.js +23 -40
- package/dist/react-native/operations/tagResource.js.map +1 -1
- package/dist/react-native/operations/tenantAccess.js +23 -40
- package/dist/react-native/operations/tenantAccess.js.map +1 -1
- package/dist/react-native/operations/tenantAccessGit.js +1 -0
- package/dist/react-native/operations/tenantAccessGit.js.map +1 -1
- package/dist/react-native/operations/tenantConfiguration.js +34 -18
- package/dist/react-native/operations/tenantConfiguration.js.map +1 -1
- package/dist/react-native/operations/tenantSettings.js +23 -40
- package/dist/react-native/operations/tenantSettings.js.map +1 -1
- package/dist/react-native/operations/user.js +34 -46
- package/dist/react-native/operations/user.js.map +1 -1
- package/dist/react-native/operations/userConfirmationPassword.js +1 -0
- package/dist/react-native/operations/userConfirmationPassword.js.map +1 -1
- package/dist/react-native/operations/userGroup.js +23 -40
- package/dist/react-native/operations/userGroup.js.map +1 -1
- package/dist/react-native/operations/userIdentities.js +23 -40
- package/dist/react-native/operations/userIdentities.js.map +1 -1
- package/dist/react-native/operations/userSubscription.js +23 -40
- package/dist/react-native/operations/userSubscription.js.map +1 -1
- package/dist/react-native/operations/workspace.js +23 -40
- package/dist/react-native/operations/workspace.js.map +1 -1
- package/dist/react-native/operations/workspaceApi.js +34 -46
- package/dist/react-native/operations/workspaceApi.js.map +1 -1
- package/dist/react-native/operations/workspaceApiDiagnostic.js +23 -40
- package/dist/react-native/operations/workspaceApiDiagnostic.js.map +1 -1
- package/dist/react-native/operations/workspaceApiExport.js +1 -0
- package/dist/react-native/operations/workspaceApiExport.js.map +1 -1
- package/dist/react-native/operations/workspaceApiOperation.js +23 -40
- package/dist/react-native/operations/workspaceApiOperation.js.map +1 -1
- package/dist/react-native/operations/workspaceApiOperationPolicy.js +23 -40
- package/dist/react-native/operations/workspaceApiOperationPolicy.js.map +1 -1
- package/dist/react-native/operations/workspaceApiPolicy.js +23 -40
- package/dist/react-native/operations/workspaceApiPolicy.js.map +1 -1
- package/dist/react-native/operations/workspaceApiRelease.js +23 -40
- package/dist/react-native/operations/workspaceApiRelease.js.map +1 -1
- package/dist/react-native/operations/workspaceApiRevision.js +23 -40
- package/dist/react-native/operations/workspaceApiRevision.js.map +1 -1
- package/dist/react-native/operations/workspaceApiSchema.js +34 -46
- package/dist/react-native/operations/workspaceApiSchema.js.map +1 -1
- package/dist/react-native/operations/workspaceApiVersionSet.js +23 -40
- package/dist/react-native/operations/workspaceApiVersionSet.js.map +1 -1
- package/dist/react-native/operations/workspaceBackend.js +23 -40
- package/dist/react-native/operations/workspaceBackend.js.map +1 -1
- package/dist/react-native/operations/workspaceCertificate.js +23 -40
- package/dist/react-native/operations/workspaceCertificate.js.map +1 -1
- package/dist/react-native/operations/workspaceDiagnostic.js +23 -40
- package/dist/react-native/operations/workspaceDiagnostic.js.map +1 -1
- package/dist/react-native/operations/workspaceGlobalSchema.js +34 -46
- package/dist/react-native/operations/workspaceGlobalSchema.js.map +1 -1
- package/dist/react-native/operations/workspaceGroup.js +23 -40
- package/dist/react-native/operations/workspaceGroup.js.map +1 -1
- package/dist/react-native/operations/workspaceGroupUser.js +23 -40
- package/dist/react-native/operations/workspaceGroupUser.js.map +1 -1
- package/dist/react-native/operations/workspaceLogger.js +23 -40
- package/dist/react-native/operations/workspaceLogger.js.map +1 -1
- package/dist/react-native/operations/workspaceNamedValue.js +56 -58
- package/dist/react-native/operations/workspaceNamedValue.js.map +1 -1
- package/dist/react-native/operations/workspaceNotification.js +23 -40
- package/dist/react-native/operations/workspaceNotification.js.map +1 -1
- package/dist/react-native/operations/workspaceNotificationRecipientEmail.js +1 -0
- package/dist/react-native/operations/workspaceNotificationRecipientEmail.js.map +1 -1
- package/dist/react-native/operations/workspaceNotificationRecipientUser.js +1 -0
- package/dist/react-native/operations/workspaceNotificationRecipientUser.js.map +1 -1
- package/dist/react-native/operations/workspacePolicy.js +23 -40
- package/dist/react-native/operations/workspacePolicy.js.map +1 -1
- package/dist/react-native/operations/workspacePolicyFragment.js +34 -46
- package/dist/react-native/operations/workspacePolicyFragment.js.map +1 -1
- package/dist/react-native/operations/workspaceProduct.js +23 -40
- package/dist/react-native/operations/workspaceProduct.js.map +1 -1
- package/dist/react-native/operations/workspaceProductApiLink.js +23 -40
- package/dist/react-native/operations/workspaceProductApiLink.js.map +1 -1
- package/dist/react-native/operations/workspaceProductGroupLink.js +23 -40
- package/dist/react-native/operations/workspaceProductGroupLink.js.map +1 -1
- package/dist/react-native/operations/workspaceProductPolicy.js +1 -0
- package/dist/react-native/operations/workspaceProductPolicy.js.map +1 -1
- package/dist/react-native/operations/workspaceSubscription.js +23 -40
- package/dist/react-native/operations/workspaceSubscription.js.map +1 -1
- package/dist/react-native/operations/workspaceTag.js +23 -40
- package/dist/react-native/operations/workspaceTag.js.map +1 -1
- package/dist/react-native/operations/workspaceTagApiLink.js +23 -40
- package/dist/react-native/operations/workspaceTagApiLink.js.map +1 -1
- package/dist/react-native/operations/workspaceTagOperationLink.js +23 -40
- package/dist/react-native/operations/workspaceTagOperationLink.js.map +1 -1
- package/dist/react-native/operations/workspaceTagProductLink.js +23 -40
- package/dist/react-native/operations/workspaceTagProductLink.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-apimanagement.api.md → arm-apimanagement-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productApiLink.js","sourceRoot":"","sources":["../../../src/operations/productApiLink.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,SAAiB,EACjB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QA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Ae,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ProductApiLink } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApiManagementClient } from \"../apiManagementClient.js\";\nimport {\n ProductApiLinkContract,\n ProductApiLinkListByProductNextOptionalParams,\n ProductApiLinkListByProductOptionalParams,\n ProductApiLinkListByProductResponse,\n ProductApiLinkGetOptionalParams,\n ProductApiLinkGetResponse,\n ProductApiLinkCreateOrUpdateOptionalParams,\n ProductApiLinkCreateOrUpdateResponse,\n ProductApiLinkDeleteOptionalParams,\n ProductApiLinkListByProductNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ProductApiLink operations. */\nexport class ProductApiLinkImpl implements ProductApiLink {\n private readonly client: ApiManagementClient;\n\n /**\n * Initialize a new instance of the class ProductApiLink class.\n * @param client Reference to the service client\n */\n constructor(client: ApiManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists a collection of the API links associated with a product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n public listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductApiLinkListByProductOptionalParams,\n ): PagedAsyncIterableIterator<ProductApiLinkContract> {\n const iter = this.listByProductPagingAll(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProductPagingPage(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductApiLinkListByProductOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProductApiLinkContract[]> {\n let result: ProductApiLinkListByProductResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProduct(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByProductNext(\n resourceGroupName,\n serviceName,\n productId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByProductPagingAll(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductApiLinkListByProductOptionalParams,\n ): AsyncIterableIterator<ProductApiLinkContract> {\n for await (const page of this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists a collection of the API links associated with a product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n private _listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductApiLinkListByProductOptionalParams,\n ): Promise<ProductApiLinkListByProductResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, options },\n listByProductOperationSpec,\n );\n }\n\n /**\n * Gets the API link for the product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service\n * instance.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n apiLinkId: string,\n options?: ProductApiLinkGetOptionalParams,\n ): Promise<ProductApiLinkGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, apiLinkId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Adds an API to the specified product via link.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service\n * instance.\n * @param parameters Create or update parameters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n apiLinkId: string,\n parameters: ProductApiLinkContract,\n options?: ProductApiLinkCreateOrUpdateOptionalParams,\n ): Promise<ProductApiLinkCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n productId,\n apiLinkId,\n parameters,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified API from the specified product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service\n * instance.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n apiLinkId: string,\n options?: ProductApiLinkDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, apiLinkId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByProductNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param nextLink The nextLink from the previous successful call to the ListByProduct method.\n * @param options The options parameters.\n */\n private _listByProductNext(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n nextLink: string,\n options?: ProductApiLinkListByProductNextOptionalParams,\n ): Promise<ProductApiLinkListByProductNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, nextLink, options },\n listByProductNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProductOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductApiLinkCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.top,\n Parameters.skip,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductApiLinkContract,\n headersMapper: Mappers.ProductApiLinkGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.apiLinkId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductApiLinkContract,\n },\n 201: {\n bodyMapper: Mappers.ProductApiLinkContract,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters75,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.apiLinkId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.apiLinkId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProductNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductApiLinkCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"productApiLink.js","sourceRoot":"","sources":["../../../src/operations/productApiLink.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,SAAiB,EACjB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACp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BAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ProductApiLink } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApiManagementClient } from \"../apiManagementClient.js\";\nimport {\n ProductApiLinkContract,\n ProductApiLinkListByProductNextOptionalParams,\n ProductApiLinkListByProductOptionalParams,\n ProductApiLinkListByProductResponse,\n ProductApiLinkGetOptionalParams,\n ProductApiLinkGetResponse,\n ProductApiLinkCreateOrUpdateOptionalParams,\n ProductApiLinkCreateOrUpdateResponse,\n ProductApiLinkDeleteOptionalParams,\n ProductApiLinkListByProductNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ProductApiLink operations. */\nexport class ProductApiLinkImpl implements ProductApiLink {\n private readonly client: ApiManagementClient;\n\n /**\n * Initialize a new instance of the class ProductApiLink class.\n * @param client Reference to the service client\n */\n constructor(client: ApiManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists a collection of the API links associated with a product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n public listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductApiLinkListByProductOptionalParams,\n ): PagedAsyncIterableIterator<ProductApiLinkContract> {\n const iter = this.listByProductPagingAll(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProductPagingPage(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductApiLinkListByProductOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProductApiLinkContract[]> {\n let result: ProductApiLinkListByProductResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProduct(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByProductNext(\n resourceGroupName,\n serviceName,\n productId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByProductPagingAll(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductApiLinkListByProductOptionalParams,\n ): AsyncIterableIterator<ProductApiLinkContract> {\n for await (const page of this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists a collection of the API links associated with a product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n private _listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductApiLinkListByProductOptionalParams,\n ): Promise<ProductApiLinkListByProductResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, options },\n listByProductOperationSpec,\n );\n }\n\n /**\n * Gets the API link for the product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service\n * instance.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n apiLinkId: string,\n options?: ProductApiLinkGetOptionalParams,\n ): Promise<ProductApiLinkGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, apiLinkId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Adds an API to the specified product via link.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service\n * instance.\n * @param parameters Create or update parameters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n apiLinkId: string,\n parameters: ProductApiLinkContract,\n options?: ProductApiLinkCreateOrUpdateOptionalParams,\n ): Promise<ProductApiLinkCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n productId,\n apiLinkId,\n parameters,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified API from the specified product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service\n * instance.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n apiLinkId: string,\n options?: ProductApiLinkDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, apiLinkId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByProductNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param nextLink The nextLink from the previous successful call to the ListByProduct method.\n * @param options The options parameters.\n */\n private _listByProductNext(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n nextLink: string,\n options?: ProductApiLinkListByProductNextOptionalParams,\n ): Promise<ProductApiLinkListByProductNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, nextLink, options },\n listByProductNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProductOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductApiLinkCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.top,\n Parameters.skip,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductApiLinkContract,\n headersMapper: Mappers.ProductApiLinkGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.apiLinkId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductApiLinkContract,\n },\n 201: {\n bodyMapper: Mappers.ProductApiLinkContract,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters75,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.apiLinkId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.apiLinkId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProductNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductApiLinkCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ProductGroup operations. */
|
|
15
14
|
export class ProductGroupImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ProductGroup class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class ProductGroupImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listByProductPagingPage(resourceGroupName, serviceName, productId, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listByProductPagingPage(resourceGroupName, serviceName, productId, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listByProductPagingPage(resourceGroupName, serviceName, productId, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listByProduct(resourceGroupName, serviceName, productId, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listByProductNext(resourceGroupName, serviceName, productId, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listByProductPagingAll(resourceGroupName, serviceName, productId, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listByProductPagingPage(resourceGroupName, serviceName, productId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listByProductPagingAll(resourceGroupName, serviceName, productId, options) {
|
|
66
|
+
for await (const page of this.listByProductPagingPage(resourceGroupName, serviceName, productId, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Lists the collection of developer groups associated with the specified product.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productGroup.js","sourceRoot":"","sources":["../../../src/operations/productGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,SAAiB,EACjB,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CA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AA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ProductGroup } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApiManagementClient } from \"../apiManagementClient.js\";\nimport {\n GroupContract,\n ProductGroupListByProductNextOptionalParams,\n ProductGroupListByProductOptionalParams,\n ProductGroupListByProductResponse,\n ProductGroupCheckEntityExistsOptionalParams,\n ProductGroupCheckEntityExistsResponse,\n ProductGroupCreateOrUpdateOptionalParams,\n ProductGroupCreateOrUpdateResponse,\n ProductGroupDeleteOptionalParams,\n ProductGroupListByProductNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ProductGroup operations. */\nexport class ProductGroupImpl implements ProductGroup {\n private readonly client: ApiManagementClient;\n\n /**\n * Initialize a new instance of the class ProductGroup class.\n * @param client Reference to the service client\n */\n constructor(client: ApiManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the collection of developer groups associated with the specified product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n public listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupListByProductOptionalParams,\n ): PagedAsyncIterableIterator<GroupContract> {\n const iter = this.listByProductPagingAll(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProductPagingPage(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupListByProductOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GroupContract[]> {\n let result: ProductGroupListByProductResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProduct(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByProductNext(\n resourceGroupName,\n serviceName,\n productId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByProductPagingAll(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupListByProductOptionalParams,\n ): AsyncIterableIterator<GroupContract> {\n for await (const page of this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the collection of developer groups associated with the specified product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n private _listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupListByProductOptionalParams,\n ): Promise<ProductGroupListByProductResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, options },\n listByProductOperationSpec,\n );\n }\n\n /**\n * Checks that Group entity specified by identifier is associated with the Product entity.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupId Group identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n checkEntityExists(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupId: string,\n options?: ProductGroupCheckEntityExistsOptionalParams,\n ): Promise<ProductGroupCheckEntityExistsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, groupId, options },\n checkEntityExistsOperationSpec,\n );\n }\n\n /**\n * Adds the association between the specified developer group with the specified product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupId Group identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupId: string,\n options?: ProductGroupCreateOrUpdateOptionalParams,\n ): Promise<ProductGroupCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, groupId, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the association between the specified group and product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupId Group identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupId: string,\n options?: ProductGroupDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, groupId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByProductNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param nextLink The nextLink from the previous successful call to the ListByProduct method.\n * @param options The options parameters.\n */\n private _listByProductNext(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n nextLink: string,\n options?: ProductGroupListByProductNextOptionalParams,\n ): Promise<ProductGroupListByProductNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, nextLink, options },\n listByProductNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProductOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.top,\n Parameters.skip,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst checkEntityExistsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}\",\n httpMethod: \"HEAD\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupContract,\n },\n 201: {\n bodyMapper: Mappers.GroupContract,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProductNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"productGroup.js","sourceRoot":"","sources":["../../../src/operations/productGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,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CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,OAAO;KACnB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,kKAAkK;IACxK,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,OAAO;KACnB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ProductGroup } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApiManagementClient } from \"../apiManagementClient.js\";\nimport {\n GroupContract,\n ProductGroupListByProductNextOptionalParams,\n ProductGroupListByProductOptionalParams,\n ProductGroupListByProductResponse,\n ProductGroupCheckEntityExistsOptionalParams,\n ProductGroupCheckEntityExistsResponse,\n ProductGroupCreateOrUpdateOptionalParams,\n ProductGroupCreateOrUpdateResponse,\n ProductGroupDeleteOptionalParams,\n ProductGroupListByProductNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ProductGroup operations. */\nexport class ProductGroupImpl implements ProductGroup {\n private readonly client: ApiManagementClient;\n\n /**\n * Initialize a new instance of the class ProductGroup class.\n * @param client Reference to the service client\n */\n constructor(client: ApiManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the collection of developer groups associated with the specified product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n public listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupListByProductOptionalParams,\n ): PagedAsyncIterableIterator<GroupContract> {\n const iter = this.listByProductPagingAll(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProductPagingPage(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupListByProductOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GroupContract[]> {\n let result: ProductGroupListByProductResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProduct(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByProductNext(\n resourceGroupName,\n serviceName,\n productId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByProductPagingAll(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupListByProductOptionalParams,\n ): AsyncIterableIterator<GroupContract> {\n for await (const page of this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the collection of developer groups associated with the specified product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n private _listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupListByProductOptionalParams,\n ): Promise<ProductGroupListByProductResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, options },\n listByProductOperationSpec,\n );\n }\n\n /**\n * Checks that Group entity specified by identifier is associated with the Product entity.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupId Group identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n checkEntityExists(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupId: string,\n options?: ProductGroupCheckEntityExistsOptionalParams,\n ): Promise<ProductGroupCheckEntityExistsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, groupId, options },\n checkEntityExistsOperationSpec,\n );\n }\n\n /**\n * Adds the association between the specified developer group with the specified product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupId Group identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupId: string,\n options?: ProductGroupCreateOrUpdateOptionalParams,\n ): Promise<ProductGroupCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, groupId, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the association between the specified group and product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupId Group identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupId: string,\n options?: ProductGroupDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, groupId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByProductNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param nextLink The nextLink from the previous successful call to the ListByProduct method.\n * @param options The options parameters.\n */\n private _listByProductNext(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n nextLink: string,\n options?: ProductGroupListByProductNextOptionalParams,\n ): Promise<ProductGroupListByProductNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, nextLink, options },\n listByProductNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProductOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.top,\n Parameters.skip,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst checkEntityExistsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}\",\n httpMethod: \"HEAD\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupContract,\n },\n 201: {\n bodyMapper: Mappers.GroupContract,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProductNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GroupCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ProductGroupLink operations. */
|
|
15
14
|
export class ProductGroupLinkImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ProductGroupLink class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class ProductGroupLinkImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listByProductPagingPage(resourceGroupName, serviceName, productId, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listByProductPagingPage(resourceGroupName, serviceName, productId, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listByProductPagingPage(resourceGroupName, serviceName, productId, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listByProduct(resourceGroupName, serviceName, productId, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listByProductNext(resourceGroupName, serviceName, productId, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listByProductPagingAll(resourceGroupName, serviceName, productId, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listByProductPagingPage(resourceGroupName, serviceName, productId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listByProductPagingAll(resourceGroupName, serviceName, productId, options) {
|
|
66
|
+
for await (const page of this.listByProductPagingPage(resourceGroupName, serviceName, productId, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Lists a collection of the group links associated with a product.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productGroupLink.js","sourceRoot":"","sources":["../../../src/operations/productGroupLink.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,SAAiB,EACjB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI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QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ProductGroupLink } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApiManagementClient } from \"../apiManagementClient.js\";\nimport {\n ProductGroupLinkContract,\n ProductGroupLinkListByProductNextOptionalParams,\n ProductGroupLinkListByProductOptionalParams,\n ProductGroupLinkListByProductResponse,\n ProductGroupLinkGetOptionalParams,\n ProductGroupLinkGetResponse,\n ProductGroupLinkCreateOrUpdateOptionalParams,\n ProductGroupLinkCreateOrUpdateResponse,\n ProductGroupLinkDeleteOptionalParams,\n ProductGroupLinkListByProductNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ProductGroupLink operations. */\nexport class ProductGroupLinkImpl implements ProductGroupLink {\n private readonly client: ApiManagementClient;\n\n /**\n * Initialize a new instance of the class ProductGroupLink class.\n * @param client Reference to the service client\n */\n constructor(client: ApiManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists a collection of the group links associated with a product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n public listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupLinkListByProductOptionalParams,\n ): PagedAsyncIterableIterator<ProductGroupLinkContract> {\n const iter = this.listByProductPagingAll(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProductPagingPage(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupLinkListByProductOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProductGroupLinkContract[]> {\n let result: ProductGroupLinkListByProductResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProduct(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByProductNext(\n resourceGroupName,\n serviceName,\n productId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByProductPagingAll(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupLinkListByProductOptionalParams,\n ): AsyncIterableIterator<ProductGroupLinkContract> {\n for await (const page of this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists a collection of the group links associated with a product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n private _listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupLinkListByProductOptionalParams,\n ): Promise<ProductGroupLinkListByProductResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, options },\n listByProductOperationSpec,\n );\n }\n\n /**\n * Gets the group link for the product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management\n * service instance.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupLinkId: string,\n options?: ProductGroupLinkGetOptionalParams,\n ): Promise<ProductGroupLinkGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, groupLinkId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Adds a group to the specified product via link.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management\n * service instance.\n * @param parameters Create or update parameters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupLinkId: string,\n parameters: ProductGroupLinkContract,\n options?: ProductGroupLinkCreateOrUpdateOptionalParams,\n ): Promise<ProductGroupLinkCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n productId,\n groupLinkId,\n parameters,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified group from the specified product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management\n * service instance.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupLinkId: string,\n options?: ProductGroupLinkDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, groupLinkId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByProductNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param nextLink The nextLink from the previous successful call to the ListByProduct method.\n * @param options The options parameters.\n */\n private _listByProductNext(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n nextLink: string,\n options?: ProductGroupLinkListByProductNextOptionalParams,\n ): Promise<ProductGroupLinkListByProductNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, nextLink, options },\n listByProductNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProductOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductGroupLinkCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.top,\n Parameters.skip,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductGroupLinkContract,\n headersMapper: Mappers.ProductGroupLinkGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupLinkId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductGroupLinkContract,\n },\n 201: {\n bodyMapper: Mappers.ProductGroupLinkContract,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters76,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupLinkId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupLinkId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProductNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductGroupLinkCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"productGroupLink.js","sourceRoot":"","sources":["../../../src/operations/productGroupLink.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IACd,MAAM,CAAsB;IAE7C;;;OAGG;IACH,YAAY,MAA2B;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,SAAiB,EACjB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,OAAO,CACR,CA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;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ProductGroupLink } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApiManagementClient } from \"../apiManagementClient.js\";\nimport {\n ProductGroupLinkContract,\n ProductGroupLinkListByProductNextOptionalParams,\n ProductGroupLinkListByProductOptionalParams,\n ProductGroupLinkListByProductResponse,\n ProductGroupLinkGetOptionalParams,\n ProductGroupLinkGetResponse,\n ProductGroupLinkCreateOrUpdateOptionalParams,\n ProductGroupLinkCreateOrUpdateResponse,\n ProductGroupLinkDeleteOptionalParams,\n ProductGroupLinkListByProductNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ProductGroupLink operations. */\nexport class ProductGroupLinkImpl implements ProductGroupLink {\n private readonly client: ApiManagementClient;\n\n /**\n * Initialize a new instance of the class ProductGroupLink class.\n * @param client Reference to the service client\n */\n constructor(client: ApiManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists a collection of the group links associated with a product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n public listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupLinkListByProductOptionalParams,\n ): PagedAsyncIterableIterator<ProductGroupLinkContract> {\n const iter = this.listByProductPagingAll(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByProductPagingPage(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupLinkListByProductOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProductGroupLinkContract[]> {\n let result: ProductGroupLinkListByProductResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByProduct(\n resourceGroupName,\n serviceName,\n productId,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByProductNext(\n resourceGroupName,\n serviceName,\n productId,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByProductPagingAll(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupLinkListByProductOptionalParams,\n ): AsyncIterableIterator<ProductGroupLinkContract> {\n for await (const page of this.listByProductPagingPage(\n resourceGroupName,\n serviceName,\n productId,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists a collection of the group links associated with a product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param options The options parameters.\n */\n private _listByProduct(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n options?: ProductGroupLinkListByProductOptionalParams,\n ): Promise<ProductGroupLinkListByProductResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, options },\n listByProductOperationSpec,\n );\n }\n\n /**\n * Gets the group link for the product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management\n * service instance.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupLinkId: string,\n options?: ProductGroupLinkGetOptionalParams,\n ): Promise<ProductGroupLinkGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, groupLinkId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Adds a group to the specified product via link.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management\n * service instance.\n * @param parameters Create or update parameters.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupLinkId: string,\n parameters: ProductGroupLinkContract,\n options?: ProductGroupLinkCreateOrUpdateOptionalParams,\n ): Promise<ProductGroupLinkCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n serviceName,\n productId,\n groupLinkId,\n parameters,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified group from the specified product.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management\n * service instance.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n groupLinkId: string,\n options?: ProductGroupLinkDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, groupLinkId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByProductNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param serviceName The name of the API Management service.\n * @param productId Product identifier. Must be unique in the current API Management service instance.\n * @param nextLink The nextLink from the previous successful call to the ListByProduct method.\n * @param options The options parameters.\n */\n private _listByProductNext(\n resourceGroupName: string,\n serviceName: string,\n productId: string,\n nextLink: string,\n options?: ProductGroupLinkListByProductNextOptionalParams,\n ): Promise<ProductGroupLinkListByProductNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, serviceName, productId, nextLink, options },\n listByProductNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByProductOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductGroupLinkCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.top,\n Parameters.skip,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductGroupLinkContract,\n headersMapper: Mappers.ProductGroupLinkGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupLinkId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductGroupLinkContract,\n },\n 201: {\n bodyMapper: Mappers.ProductGroupLinkContract,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters76,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupLinkId,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.serviceName,\n Parameters.productId,\n Parameters.groupLinkId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByProductNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProductGroupLinkCollection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.serviceName,\n Parameters.productId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ProductPolicy operations. */
|
|
15
14
|
export class ProductPolicyImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ProductPolicy class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class ProductPolicyImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listByProductPagingPage(resourceGroupName, serviceName, productId, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listByProductPagingPage(resourceGroupName, serviceName, productId, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listByProductPagingPage(resourceGroupName, serviceName, productId, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listByProduct(resourceGroupName, serviceName, productId, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listByProductNext(resourceGroupName, serviceName, productId, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listByProductPagingAll(resourceGroupName, serviceName, productId, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listByProductPagingPage(resourceGroupName, serviceName, productId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listByProductPagingAll(resourceGroupName, serviceName, productId, options) {
|
|
66
|
+
for await (const page of this.listByProductPagingPage(resourceGroupName, serviceName, productId, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Get the policy configuration at the Product level.
|