From 9f6a5892918c41987c402a6302ae74e1d6197213 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 28 Aug 2023 02:05:36 +0000 Subject: [PATCH] CodeGen from PR 25490 in Azure/azure-rest-api-specs Merge 01cbc63b7dc97a0e2b299d31d37111f45f856e52 into 84d7b8f05a60d12922341578434b512540563850 --- .../arm-apimanagement/CHANGELOG.md | 530 + sdk/apimanagement/arm-apimanagement/README.md | 2 +- .../arm-apimanagement/_meta.json | 6 +- .../arm-apimanagement/package.json | 18 +- .../review/arm-apimanagement.api.md | 2407 ++++- .../src/apiManagementClient.ts | 160 +- .../arm-apimanagement/src/models/index.ts | 8753 +++++++++++------ .../arm-apimanagement/src/models/mappers.ts | 4345 +++++--- .../src/models/parameters.ts | 323 +- .../src/operations/apiExport.ts | 2 +- .../src/operations/apiManagementService.ts | 8 +- .../src/operations/authorization.ts | 4 +- .../operations/authorizationAccessPolicy.ts | 2 +- .../src/operations/authorizationLoginLinks.ts | 2 +- .../src/operations/authorizationProvider.ts | 2 +- .../src/operations/authorizationServer.ts | 4 +- .../src/operations/delegationSettings.ts | 4 +- .../src/operations/documentation.ts | 4 +- .../src/operations/emailTemplate.ts | 4 +- .../src/operations/gateway.ts | 152 +- .../src/operations/gatewayApi.ts | 2 +- .../operations/gatewayCertificateAuthority.ts | 2 +- .../gatewayHostnameConfiguration.ts | 2 +- .../src/operations/globalSchema.ts | 2 +- .../arm-apimanagement/src/operations/group.ts | 4 +- .../src/operations/identityProvider.ts | 4 +- .../arm-apimanagement/src/operations/index.ts | 37 +- .../src/operations/logger.ts | 4 +- .../src/operations/namedValue.ts | 4 +- .../src/operations/openIdConnectProvider.ts | 4 +- .../src/operations/policy.ts | 135 +- .../src/operations/policyFragment.ts | 137 +- .../src/operations/portalConfig.ts | 139 +- .../src/operations/portalRevision.ts | 4 +- .../src/operations/product.ts | 4 +- .../src/operations/productApiLink.ts | 379 + .../src/operations/productGroupLink.ts | 379 + .../src/operations/productPolicy.ts | 147 +- .../src/operations/quotaByCounterKeys.ts | 2 +- .../src/operations/quotaByPeriodKeys.ts | 2 +- .../src/operations/signInSettings.ts | 4 +- .../src/operations/signUpSettings.ts | 4 +- .../src/operations/subscription.ts | 4 +- .../src/operations/tagApiLink.ts | 372 + .../src/operations/tagOperationLink.ts | 379 + .../src/operations/tagProductLink.ts | 379 + .../src/operations/tenantAccess.ts | 4 +- .../src/operations/tenantConfiguration.ts | 6 +- .../arm-apimanagement/src/operations/user.ts | 6 +- .../src/operations/workspace.ts | 466 + .../src/operations/workspaceApi.ts | 617 ++ .../src/operations/workspaceApiExport.ts | 100 + .../src/operations/workspaceApiOperation.ts | 576 ++ .../operations/workspaceApiOperationPolicy.ts | 546 + .../src/operations/workspaceApiPolicy.ts | 478 + .../src/operations/workspaceApiRelease.ts | 570 ++ .../src/operations/workspaceApiRevision.ts | 240 + .../src/operations/workspaceApiSchema.ts | 584 ++ .../src/operations/workspaceApiVersionSet.ts | 520 + .../src/operations/workspaceGlobalSchema.ts | 546 + .../src/operations/workspaceGroup.ts | 516 + .../src/operations/workspaceGroupUser.ts | 400 + .../src/operations/workspaceNamedValue.ts | 912 ++ .../src/operations/workspaceNotification.ts | 329 + .../workspaceNotificationRecipientEmail.ts | 261 + .../workspaceNotificationRecipientUser.ts | 261 + .../src/operations/workspacePolicy.ts | 442 + .../src/operations/workspacePolicyFragment.ts | 586 ++ .../src/operations/workspaceProduct.ts | 517 + .../src/operations/workspaceProductApiLink.ts | 431 + .../operations/workspaceProductGroupLink.ts | 432 + .../src/operations/workspaceProductPolicy.ts | 330 + .../src/operations/workspaceSubscription.ts | 659 ++ .../src/operations/workspaceTag.ts | 509 + .../src/operations/workspaceTagApiLink.ts | 424 + .../operations/workspaceTagOperationLink.ts | 425 + .../src/operations/workspaceTagProductLink.ts | 424 + .../src/operationsInterfaces/apiExport.ts | 2 +- .../src/operationsInterfaces/gateway.ts | 55 +- .../src/operationsInterfaces/index.ts | 37 +- .../src/operationsInterfaces/policy.ts | 7 +- .../operationsInterfaces/policyFragment.ts | 7 +- .../src/operationsInterfaces/portalConfig.ts | 7 +- .../operationsInterfaces/productApiLink.ts | 86 + .../operationsInterfaces/productGroupLink.ts | 86 + .../src/operationsInterfaces/productPolicy.ts | 7 +- .../src/operationsInterfaces/tagApiLink.ts | 86 + .../operationsInterfaces/tagOperationLink.ts | 86 + .../operationsInterfaces/tagProductLink.ts | 86 + .../src/operationsInterfaces/workspace.ts | 118 + .../src/operationsInterfaces/workspaceApi.ts | 165 + .../workspaceApiExport.ts | 41 + .../workspaceApiOperation.ts | 155 + .../workspaceApiOperationPolicy.ts | 139 + .../workspaceApiPolicy.ts | 124 + .../workspaceApiRelease.ts | 150 + .../workspaceApiRevision.ts | 34 + .../workspaceApiSchema.ts | 150 + .../workspaceApiVersionSet.ts | 137 + .../workspaceGlobalSchema.ts | 134 + .../operationsInterfaces/workspaceGroup.ts | 133 + .../workspaceGroupUser.ts | 93 + .../workspaceNamedValue.ts | 240 + .../workspaceNotification.ts | 69 + .../workspaceNotificationRecipientEmail.ts | 92 + .../workspaceNotificationRecipientUser.ts | 92 + .../operationsInterfaces/workspacePolicy.ts | 109 + .../workspacePolicyFragment.ts | 150 + .../operationsInterfaces/workspaceProduct.ts | 132 + .../workspaceProductApiLink.ts | 98 + .../workspaceProductGroupLink.ts | 98 + .../workspaceProductPolicy.ts | 118 + .../workspaceSubscription.ts | 195 + .../src/operationsInterfaces/workspaceTag.ts | 132 + .../workspaceTagApiLink.ts | 98 + .../workspaceTagOperationLink.ts | 98 + .../workspaceTagProductLink.ts | 98 + .../arm-apimanagement/test/sampleTest.ts | 43 + .../arm-apimanagement/tsconfig.json | 10 +- 119 files changed, 31881 insertions(+), 4500 deletions(-) create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts create mode 100644 sdk/apimanagement/arm-apimanagement/test/sampleTest.ts diff --git a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md index 25a24201b112..69cfd923d574 100644 --- a/sdk/apimanagement/arm-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/arm-apimanagement/CHANGELOG.md @@ -1,5 +1,535 @@ # Release History + +## 9.2.0-beta.1 (2023-08-28) + +**Features** + - Added operation group ProductApiLink + - Added operation group ProductGroupLink + - Added operation group TagApiLink + - Added operation group TagOperationLink + - Added operation group TagProductLink + - Added operation group Workspace + - Added operation group WorkspaceApi + - Added operation group WorkspaceApiExport + - Added operation group WorkspaceApiOperation + - Added operation group WorkspaceApiOperationPolicy + - Added operation group WorkspaceApiPolicy + - Added operation group WorkspaceApiRelease + - Added operation group WorkspaceApiRevision + - Added operation group WorkspaceApiSchema + - Added operation group WorkspaceApiVersionSet + - Added operation group WorkspaceGlobalSchema + - Added operation group WorkspaceGroup + - Added operation group WorkspaceGroupUser + - Added operation group WorkspaceNamedValue + - Added operation group WorkspaceNotification + - Added operation group WorkspaceNotificationRecipientEmail + - Added operation group WorkspaceNotificationRecipientUser + - Added operation group WorkspacePolicy + - Added operation group WorkspacePolicyFragment + - Added operation group WorkspaceProduct + - Added operation group WorkspaceProductApiLink + - Added operation group WorkspaceProductGroupLink + - Added operation group WorkspaceProductPolicy + - Added operation group WorkspaceSubscription + - Added operation group WorkspaceTag + - Added operation group WorkspaceTagApiLink + - Added operation group WorkspaceTagOperationLink + - Added operation group WorkspaceTagProductLink + - Added operation Gateway.invalidateDebugCredentials + - Added operation Gateway.listDebugCredentials + - Added operation Gateway.listTrace + - Added Interface ApiManagementClientPerformConnectivityCheckAsyncHeaders + - Added Interface ApiManagementServiceDeleteHeaders + - Added Interface ApiManagementServiceUpdateHeaders + - Added Interface BackendCircuitBreaker + - Added Interface CircuitBreakerFailureCondition + - Added Interface CircuitBreakerRule + - Added Interface ConfigurationApi + - Added Interface FailureStatusCodeRange + - Added Interface GatewayDebugCredentialsContract + - Added Interface GatewayInvalidateDebugCredentialsOptionalParams + - Added Interface GatewayListDebugCredentialsContract + - Added Interface GatewayListDebugCredentialsOptionalParams + - Added Interface GatewayListTraceContract + - Added Interface GatewayListTraceOptionalParams + - Added Interface MigrateToStv2Contract + - Added Interface PolicyFragmentListByServiceNextOptionalParams + - Added Interface PolicyListByServiceNextOptionalParams + - Added Interface PortalConfigListByServiceNextOptionalParams + - Added Interface PrivateEndpointConnectionCreateOrUpdateHeaders + - Added Interface PrivateEndpointConnectionDeleteHeaders + - Added Interface ProductApiLinkCollection + - Added Interface ProductApiLinkContract + - Added Interface ProductApiLinkCreateOrUpdateOptionalParams + - Added Interface ProductApiLinkDeleteOptionalParams + - Added Interface ProductApiLinkGetHeaders + - Added Interface ProductApiLinkGetOptionalParams + - Added Interface ProductApiLinkListByProductNextOptionalParams + - Added Interface ProductApiLinkListByProductOptionalParams + - Added Interface ProductGroupLinkCollection + - Added Interface ProductGroupLinkContract + - Added Interface ProductGroupLinkCreateOrUpdateOptionalParams + - Added Interface ProductGroupLinkDeleteOptionalParams + - Added Interface ProductGroupLinkGetHeaders + - Added Interface ProductGroupLinkGetOptionalParams + - Added Interface ProductGroupLinkListByProductNextOptionalParams + - Added Interface ProductGroupLinkListByProductOptionalParams + - Added Interface ProductPolicyListByProductNextOptionalParams + - Added Interface TagApiLinkCollection + - Added Interface TagApiLinkContract + - Added Interface TagApiLinkCreateOrUpdateOptionalParams + - Added Interface TagApiLinkDeleteOptionalParams + - Added Interface TagApiLinkGetHeaders + - Added Interface TagApiLinkGetOptionalParams + - Added Interface TagApiLinkListByProductNextOptionalParams + - Added Interface TagApiLinkListByProductOptionalParams + - Added Interface TagOperationLinkCollection + - Added Interface TagOperationLinkContract + - Added Interface TagOperationLinkCreateOrUpdateOptionalParams + - Added Interface TagOperationLinkDeleteOptionalParams + - Added Interface TagOperationLinkGetHeaders + - Added Interface TagOperationLinkGetOptionalParams + - Added Interface TagOperationLinkListByProductNextOptionalParams + - Added Interface TagOperationLinkListByProductOptionalParams + - Added Interface TagProductLinkCollection + - Added Interface TagProductLinkContract + - Added Interface TagProductLinkCreateOrUpdateOptionalParams + - Added Interface TagProductLinkDeleteOptionalParams + - Added Interface TagProductLinkGetHeaders + - Added Interface TagProductLinkGetOptionalParams + - Added Interface TagProductLinkListByProductNextOptionalParams + - Added Interface TagProductLinkListByProductOptionalParams + - Added Interface TenantConfigurationDeployHeaders + - Added Interface TenantConfigurationSaveHeaders + - Added Interface TenantConfigurationValidateHeaders + - Added Interface WorkspaceApiCreateOrUpdateHeaders + - Added Interface WorkspaceApiCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiDeleteOptionalParams + - Added Interface WorkspaceApiExportGetOptionalParams + - Added Interface WorkspaceApiGetEntityTagHeaders + - Added Interface WorkspaceApiGetEntityTagOptionalParams + - Added Interface WorkspaceApiGetHeaders + - Added Interface WorkspaceApiGetOptionalParams + - Added Interface WorkspaceApiListByServiceNextOptionalParams + - Added Interface WorkspaceApiListByServiceOptionalParams + - Added Interface WorkspaceApiOperationCreateOrUpdateHeaders + - Added Interface WorkspaceApiOperationCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiOperationDeleteOptionalParams + - Added Interface WorkspaceApiOperationGetEntityTagHeaders + - Added Interface WorkspaceApiOperationGetEntityTagOptionalParams + - Added Interface WorkspaceApiOperationGetHeaders + - Added Interface WorkspaceApiOperationGetOptionalParams + - Added Interface WorkspaceApiOperationListByApiNextOptionalParams + - Added Interface WorkspaceApiOperationListByApiOptionalParams + - Added Interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders + - Added Interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiOperationPolicyDeleteOptionalParams + - Added Interface WorkspaceApiOperationPolicyGetEntityTagHeaders + - Added Interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams + - Added Interface WorkspaceApiOperationPolicyGetHeaders + - Added Interface WorkspaceApiOperationPolicyGetOptionalParams + - Added Interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams + - Added Interface WorkspaceApiOperationPolicyListByOperationOptionalParams + - Added Interface WorkspaceApiOperationUpdateHeaders + - Added Interface WorkspaceApiOperationUpdateOptionalParams + - Added Interface WorkspaceApiPolicyCreateOrUpdateHeaders + - Added Interface WorkspaceApiPolicyCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiPolicyDeleteOptionalParams + - Added Interface WorkspaceApiPolicyGetEntityTagHeaders + - Added Interface WorkspaceApiPolicyGetEntityTagOptionalParams + - Added Interface WorkspaceApiPolicyGetHeaders + - Added Interface WorkspaceApiPolicyGetOptionalParams + - Added Interface WorkspaceApiPolicyListByApiNextOptionalParams + - Added Interface WorkspaceApiPolicyListByApiOptionalParams + - Added Interface WorkspaceApiReleaseCreateOrUpdateHeaders + - Added Interface WorkspaceApiReleaseCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiReleaseDeleteOptionalParams + - Added Interface WorkspaceApiReleaseGetEntityTagHeaders + - Added Interface WorkspaceApiReleaseGetEntityTagOptionalParams + - Added Interface WorkspaceApiReleaseGetHeaders + - Added Interface WorkspaceApiReleaseGetOptionalParams + - Added Interface WorkspaceApiReleaseListByServiceNextOptionalParams + - Added Interface WorkspaceApiReleaseListByServiceOptionalParams + - Added Interface WorkspaceApiReleaseUpdateHeaders + - Added Interface WorkspaceApiReleaseUpdateOptionalParams + - Added Interface WorkspaceApiRevisionListByServiceNextOptionalParams + - Added Interface WorkspaceApiRevisionListByServiceOptionalParams + - Added Interface WorkspaceApiSchemaCreateOrUpdateHeaders + - Added Interface WorkspaceApiSchemaCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiSchemaDeleteOptionalParams + - Added Interface WorkspaceApiSchemaGetEntityTagHeaders + - Added Interface WorkspaceApiSchemaGetEntityTagOptionalParams + - Added Interface WorkspaceApiSchemaGetHeaders + - Added Interface WorkspaceApiSchemaGetOptionalParams + - Added Interface WorkspaceApiSchemaListByApiNextOptionalParams + - Added Interface WorkspaceApiSchemaListByApiOptionalParams + - Added Interface WorkspaceApiUpdateHeaders + - Added Interface WorkspaceApiUpdateOptionalParams + - Added Interface WorkspaceApiVersionSetCreateOrUpdateHeaders + - Added Interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams + - Added Interface WorkspaceApiVersionSetDeleteOptionalParams + - Added Interface WorkspaceApiVersionSetGetEntityTagHeaders + - Added Interface WorkspaceApiVersionSetGetEntityTagOptionalParams + - Added Interface WorkspaceApiVersionSetGetHeaders + - Added Interface WorkspaceApiVersionSetGetOptionalParams + - Added Interface WorkspaceApiVersionSetListByServiceNextOptionalParams + - Added Interface WorkspaceApiVersionSetListByServiceOptionalParams + - Added Interface WorkspaceApiVersionSetUpdateHeaders + - Added Interface WorkspaceApiVersionSetUpdateOptionalParams + - Added Interface WorkspaceCollection + - Added Interface WorkspaceContract + - Added Interface WorkspaceCreateOrUpdateHeaders + - Added Interface WorkspaceCreateOrUpdateOptionalParams + - Added Interface WorkspaceDeleteOptionalParams + - Added Interface WorkspaceGetEntityTagHeaders + - Added Interface WorkspaceGetEntityTagOptionalParams + - Added Interface WorkspaceGetHeaders + - Added Interface WorkspaceGetOptionalParams + - Added Interface WorkspaceGlobalSchemaCreateOrUpdateHeaders + - Added Interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams + - Added Interface WorkspaceGlobalSchemaDeleteOptionalParams + - Added Interface WorkspaceGlobalSchemaGetEntityTagHeaders + - Added Interface WorkspaceGlobalSchemaGetEntityTagOptionalParams + - Added Interface WorkspaceGlobalSchemaGetHeaders + - Added Interface WorkspaceGlobalSchemaGetOptionalParams + - Added Interface WorkspaceGlobalSchemaListByServiceNextOptionalParams + - Added Interface WorkspaceGlobalSchemaListByServiceOptionalParams + - Added Interface WorkspaceGroupCreateOrUpdateHeaders + - Added Interface WorkspaceGroupCreateOrUpdateOptionalParams + - Added Interface WorkspaceGroupDeleteOptionalParams + - Added Interface WorkspaceGroupGetEntityTagHeaders + - Added Interface WorkspaceGroupGetEntityTagOptionalParams + - Added Interface WorkspaceGroupGetHeaders + - Added Interface WorkspaceGroupGetOptionalParams + - Added Interface WorkspaceGroupListByServiceNextOptionalParams + - Added Interface WorkspaceGroupListByServiceOptionalParams + - Added Interface WorkspaceGroupUpdateHeaders + - Added Interface WorkspaceGroupUpdateOptionalParams + - Added Interface WorkspaceGroupUserCheckEntityExistsOptionalParams + - Added Interface WorkspaceGroupUserCreateOptionalParams + - Added Interface WorkspaceGroupUserDeleteOptionalParams + - Added Interface WorkspaceGroupUserListNextOptionalParams + - Added Interface WorkspaceGroupUserListOptionalParams + - Added Interface WorkspaceListByServiceNextOptionalParams + - Added Interface WorkspaceListByServiceOptionalParams + - Added Interface WorkspaceNamedValueCreateOrUpdateHeaders + - Added Interface WorkspaceNamedValueCreateOrUpdateOptionalParams + - Added Interface WorkspaceNamedValueDeleteOptionalParams + - Added Interface WorkspaceNamedValueGetEntityTagHeaders + - Added Interface WorkspaceNamedValueGetEntityTagOptionalParams + - Added Interface WorkspaceNamedValueGetHeaders + - Added Interface WorkspaceNamedValueGetOptionalParams + - Added Interface WorkspaceNamedValueListByServiceNextOptionalParams + - Added Interface WorkspaceNamedValueListByServiceOptionalParams + - Added Interface WorkspaceNamedValueListValueHeaders + - Added Interface WorkspaceNamedValueListValueOptionalParams + - Added Interface WorkspaceNamedValueRefreshSecretHeaders + - Added Interface WorkspaceNamedValueRefreshSecretOptionalParams + - Added Interface WorkspaceNamedValueUpdateHeaders + - Added Interface WorkspaceNamedValueUpdateOptionalParams + - Added Interface WorkspaceNotificationCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationGetOptionalParams + - Added Interface WorkspaceNotificationListByServiceNextOptionalParams + - Added Interface WorkspaceNotificationListByServiceOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailDeleteOptionalParams + - Added Interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams + - Added Interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams + - Added Interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams + - Added Interface WorkspaceNotificationRecipientUserDeleteOptionalParams + - Added Interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams + - Added Interface WorkspacePolicyCreateOrUpdateHeaders + - Added Interface WorkspacePolicyCreateOrUpdateOptionalParams + - Added Interface WorkspacePolicyDeleteOptionalParams + - Added Interface WorkspacePolicyFragmentCreateOrUpdateHeaders + - Added Interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams + - Added Interface WorkspacePolicyFragmentDeleteOptionalParams + - Added Interface WorkspacePolicyFragmentGetEntityTagHeaders + - Added Interface WorkspacePolicyFragmentGetEntityTagOptionalParams + - Added Interface WorkspacePolicyFragmentGetHeaders + - Added Interface WorkspacePolicyFragmentGetOptionalParams + - Added Interface WorkspacePolicyFragmentListByServiceNextOptionalParams + - Added Interface WorkspacePolicyFragmentListByServiceOptionalParams + - Added Interface WorkspacePolicyFragmentListReferencesOptionalParams + - Added Interface WorkspacePolicyGetEntityTagHeaders + - Added Interface WorkspacePolicyGetEntityTagOptionalParams + - Added Interface WorkspacePolicyGetHeaders + - Added Interface WorkspacePolicyGetOptionalParams + - Added Interface WorkspacePolicyListByApiNextOptionalParams + - Added Interface WorkspacePolicyListByApiOptionalParams + - Added Interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductApiLinkDeleteOptionalParams + - Added Interface WorkspaceProductApiLinkGetHeaders + - Added Interface WorkspaceProductApiLinkGetOptionalParams + - Added Interface WorkspaceProductApiLinkListByProductNextOptionalParams + - Added Interface WorkspaceProductApiLinkListByProductOptionalParams + - Added Interface WorkspaceProductCreateOrUpdateHeaders + - Added Interface WorkspaceProductCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductDeleteOptionalParams + - Added Interface WorkspaceProductGetEntityTagHeaders + - Added Interface WorkspaceProductGetEntityTagOptionalParams + - Added Interface WorkspaceProductGetHeaders + - Added Interface WorkspaceProductGetOptionalParams + - Added Interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductGroupLinkDeleteOptionalParams + - Added Interface WorkspaceProductGroupLinkGetHeaders + - Added Interface WorkspaceProductGroupLinkGetOptionalParams + - Added Interface WorkspaceProductGroupLinkListByProductNextOptionalParams + - Added Interface WorkspaceProductGroupLinkListByProductOptionalParams + - Added Interface WorkspaceProductListByServiceNextOptionalParams + - Added Interface WorkspaceProductListByServiceOptionalParams + - Added Interface WorkspaceProductPolicyCreateOrUpdateHeaders + - Added Interface WorkspaceProductPolicyCreateOrUpdateOptionalParams + - Added Interface WorkspaceProductPolicyDeleteOptionalParams + - Added Interface WorkspaceProductPolicyGetEntityTagHeaders + - Added Interface WorkspaceProductPolicyGetEntityTagOptionalParams + - Added Interface WorkspaceProductPolicyGetHeaders + - Added Interface WorkspaceProductPolicyGetOptionalParams + - Added Interface WorkspaceProductPolicyListByProductOptionalParams + - Added Interface WorkspaceProductUpdateHeaders + - Added Interface WorkspaceProductUpdateOptionalParams + - Added Interface WorkspaceSubscriptionCreateOrUpdateHeaders + - Added Interface WorkspaceSubscriptionCreateOrUpdateOptionalParams + - Added Interface WorkspaceSubscriptionDeleteOptionalParams + - Added Interface WorkspaceSubscriptionGetEntityTagHeaders + - Added Interface WorkspaceSubscriptionGetEntityTagOptionalParams + - Added Interface WorkspaceSubscriptionGetHeaders + - Added Interface WorkspaceSubscriptionGetOptionalParams + - Added Interface WorkspaceSubscriptionListNextOptionalParams + - Added Interface WorkspaceSubscriptionListOptionalParams + - Added Interface WorkspaceSubscriptionListSecretsHeaders + - Added Interface WorkspaceSubscriptionListSecretsOptionalParams + - Added Interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams + - Added Interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams + - Added Interface WorkspaceSubscriptionUpdateHeaders + - Added Interface WorkspaceSubscriptionUpdateOptionalParams + - Added Interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagApiLinkDeleteOptionalParams + - Added Interface WorkspaceTagApiLinkGetHeaders + - Added Interface WorkspaceTagApiLinkGetOptionalParams + - Added Interface WorkspaceTagApiLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagApiLinkListByProductOptionalParams + - Added Interface WorkspaceTagCreateOrUpdateHeaders + - Added Interface WorkspaceTagCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagDeleteOptionalParams + - Added Interface WorkspaceTagGetEntityStateHeaders + - Added Interface WorkspaceTagGetEntityStateOptionalParams + - Added Interface WorkspaceTagGetHeaders + - Added Interface WorkspaceTagGetOptionalParams + - Added Interface WorkspaceTagListByServiceNextOptionalParams + - Added Interface WorkspaceTagListByServiceOptionalParams + - Added Interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagOperationLinkDeleteOptionalParams + - Added Interface WorkspaceTagOperationLinkGetHeaders + - Added Interface WorkspaceTagOperationLinkGetOptionalParams + - Added Interface WorkspaceTagOperationLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagOperationLinkListByProductOptionalParams + - Added Interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams + - Added Interface WorkspaceTagProductLinkDeleteOptionalParams + - Added Interface WorkspaceTagProductLinkGetHeaders + - Added Interface WorkspaceTagProductLinkGetOptionalParams + - Added Interface WorkspaceTagProductLinkListByProductNextOptionalParams + - Added Interface WorkspaceTagProductLinkListByProductOptionalParams + - Added Interface WorkspaceTagUpdateHeaders + - Added Interface WorkspaceTagUpdateOptionalParams + - Added Interface WorkspaceUpdateHeaders + - Added Interface WorkspaceUpdateOptionalParams + - Added Type Alias DeveloperPortalStatus + - Added Type Alias GatewayListDebugCredentialsContractPurpose + - Added Type Alias GatewayListDebugCredentialsResponse + - Added Type Alias GatewayListTraceResponse + - Added Type Alias KeyVaultRefreshState + - Added Type Alias LegacyApiState + - Added Type Alias LegacyPortalStatus + - Added Type Alias MigrateToStv2Mode + - Added Type Alias PolicyFragmentListByServiceNextResponse + - Added Type Alias PolicyListByServiceNextResponse + - Added Type Alias PortalConfigListByServiceNextResponse + - Added Type Alias ProductApiLinkCreateOrUpdateResponse + - Added Type Alias ProductApiLinkGetResponse + - Added Type Alias ProductApiLinkListByProductNextResponse + - Added Type Alias ProductApiLinkListByProductResponse + - Added Type Alias ProductGroupLinkCreateOrUpdateResponse + - Added Type Alias ProductGroupLinkGetResponse + - Added Type Alias ProductGroupLinkListByProductNextResponse + - Added Type Alias ProductGroupLinkListByProductResponse + - Added Type Alias ProductPolicyListByProductNextResponse + - Added Type Alias TagApiLinkCreateOrUpdateResponse + - Added Type Alias TagApiLinkGetResponse + - Added Type Alias TagApiLinkListByProductNextResponse + - Added Type Alias TagApiLinkListByProductResponse + - Added Type Alias TagOperationLinkCreateOrUpdateResponse + - Added Type Alias TagOperationLinkGetResponse + - Added Type Alias TagOperationLinkListByProductNextResponse + - Added Type Alias TagOperationLinkListByProductResponse + - Added Type Alias TagProductLinkCreateOrUpdateResponse + - Added Type Alias TagProductLinkGetResponse + - Added Type Alias TagProductLinkListByProductNextResponse + - Added Type Alias TagProductLinkListByProductResponse + - Added Type Alias WorkspaceApiCreateOrUpdateResponse + - Added Type Alias WorkspaceApiExportGetResponse + - Added Type Alias WorkspaceApiGetEntityTagResponse + - Added Type Alias WorkspaceApiGetResponse + - Added Type Alias WorkspaceApiListByServiceNextResponse + - Added Type Alias WorkspaceApiListByServiceResponse + - Added Type Alias WorkspaceApiOperationCreateOrUpdateResponse + - Added Type Alias WorkspaceApiOperationGetEntityTagResponse + - Added Type Alias WorkspaceApiOperationGetResponse + - Added Type Alias WorkspaceApiOperationListByApiNextResponse + - Added Type Alias WorkspaceApiOperationListByApiResponse + - Added Type Alias WorkspaceApiOperationPolicyCreateOrUpdateResponse + - Added Type Alias WorkspaceApiOperationPolicyGetEntityTagResponse + - Added Type Alias WorkspaceApiOperationPolicyGetResponse + - Added Type Alias WorkspaceApiOperationPolicyListByOperationNextResponse + - Added Type Alias WorkspaceApiOperationPolicyListByOperationResponse + - Added Type Alias WorkspaceApiOperationUpdateResponse + - Added Type Alias WorkspaceApiPolicyCreateOrUpdateResponse + - Added Type Alias WorkspaceApiPolicyGetEntityTagResponse + - Added Type Alias WorkspaceApiPolicyGetResponse + - Added Type Alias WorkspaceApiPolicyListByApiNextResponse + - Added Type Alias WorkspaceApiPolicyListByApiResponse + - Added Type Alias WorkspaceApiReleaseCreateOrUpdateResponse + - Added Type Alias WorkspaceApiReleaseGetEntityTagResponse + - Added Type Alias WorkspaceApiReleaseGetResponse + - Added Type Alias WorkspaceApiReleaseListByServiceNextResponse + - Added Type Alias WorkspaceApiReleaseListByServiceResponse + - Added Type Alias WorkspaceApiReleaseUpdateResponse + - Added Type Alias WorkspaceApiRevisionListByServiceNextResponse + - Added Type Alias WorkspaceApiRevisionListByServiceResponse + - Added Type Alias WorkspaceApiSchemaCreateOrUpdateResponse + - Added Type Alias WorkspaceApiSchemaGetEntityTagResponse + - Added Type Alias WorkspaceApiSchemaGetResponse + - Added Type Alias WorkspaceApiSchemaListByApiNextResponse + - Added Type Alias WorkspaceApiSchemaListByApiResponse + - Added Type Alias WorkspaceApiUpdateResponse + - Added Type Alias WorkspaceApiVersionSetCreateOrUpdateResponse + - Added Type Alias WorkspaceApiVersionSetGetEntityTagResponse + - Added Type Alias WorkspaceApiVersionSetGetResponse + - Added Type Alias WorkspaceApiVersionSetListByServiceNextResponse + - Added Type Alias WorkspaceApiVersionSetListByServiceResponse + - Added Type Alias WorkspaceApiVersionSetUpdateResponse + - Added Type Alias WorkspaceCreateOrUpdateResponse + - Added Type Alias WorkspaceGetEntityTagResponse + - Added Type Alias WorkspaceGetResponse + - Added Type Alias WorkspaceGlobalSchemaCreateOrUpdateResponse + - Added Type Alias WorkspaceGlobalSchemaGetEntityTagResponse + - Added Type Alias WorkspaceGlobalSchemaGetResponse + - Added Type Alias WorkspaceGlobalSchemaListByServiceNextResponse + - Added Type Alias WorkspaceGlobalSchemaListByServiceResponse + - Added Type Alias WorkspaceGroupCreateOrUpdateResponse + - Added Type Alias WorkspaceGroupGetEntityTagResponse + - Added Type Alias WorkspaceGroupGetResponse + - Added Type Alias WorkspaceGroupListByServiceNextResponse + - Added Type Alias WorkspaceGroupListByServiceResponse + - Added Type Alias WorkspaceGroupUpdateResponse + - Added Type Alias WorkspaceGroupUserCheckEntityExistsResponse + - Added Type Alias WorkspaceGroupUserCreateResponse + - Added Type Alias WorkspaceGroupUserListNextResponse + - Added Type Alias WorkspaceGroupUserListResponse + - Added Type Alias WorkspaceListByServiceNextResponse + - Added Type Alias WorkspaceListByServiceResponse + - Added Type Alias WorkspaceNamedValueCreateOrUpdateResponse + - Added Type Alias WorkspaceNamedValueGetEntityTagResponse + - Added Type Alias WorkspaceNamedValueGetResponse + - Added Type Alias WorkspaceNamedValueListByServiceNextResponse + - Added Type Alias WorkspaceNamedValueListByServiceResponse + - Added Type Alias WorkspaceNamedValueListValueResponse + - Added Type Alias WorkspaceNamedValueRefreshSecretResponse + - Added Type Alias WorkspaceNamedValueUpdateResponse + - Added Type Alias WorkspaceNotificationCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationGetResponse + - Added Type Alias WorkspaceNotificationListByServiceNextResponse + - Added Type Alias WorkspaceNotificationListByServiceResponse + - Added Type Alias WorkspaceNotificationRecipientEmailCheckEntityExistsResponse + - Added Type Alias WorkspaceNotificationRecipientEmailCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationRecipientEmailListByNotificationResponse + - Added Type Alias WorkspaceNotificationRecipientUserCheckEntityExistsResponse + - Added Type Alias WorkspaceNotificationRecipientUserCreateOrUpdateResponse + - Added Type Alias WorkspaceNotificationRecipientUserListByNotificationResponse + - Added Type Alias WorkspacePolicyCreateOrUpdateResponse + - Added Type Alias WorkspacePolicyFragmentCreateOrUpdateResponse + - Added Type Alias WorkspacePolicyFragmentGetEntityTagResponse + - Added Type Alias WorkspacePolicyFragmentGetResponse + - Added Type Alias WorkspacePolicyFragmentListByServiceNextResponse + - Added Type Alias WorkspacePolicyFragmentListByServiceResponse + - Added Type Alias WorkspacePolicyFragmentListReferencesResponse + - Added Type Alias WorkspacePolicyGetEntityTagResponse + - Added Type Alias WorkspacePolicyGetResponse + - Added Type Alias WorkspacePolicyListByApiNextResponse + - Added Type Alias WorkspacePolicyListByApiResponse + - Added Type Alias WorkspaceProductApiLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceProductApiLinkGetResponse + - Added Type Alias WorkspaceProductApiLinkListByProductNextResponse + - Added Type Alias WorkspaceProductApiLinkListByProductResponse + - Added Type Alias WorkspaceProductCreateOrUpdateResponse + - Added Type Alias WorkspaceProductGetEntityTagResponse + - Added Type Alias WorkspaceProductGetResponse + - Added Type Alias WorkspaceProductGroupLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceProductGroupLinkGetResponse + - Added Type Alias WorkspaceProductGroupLinkListByProductNextResponse + - Added Type Alias WorkspaceProductGroupLinkListByProductResponse + - Added Type Alias WorkspaceProductListByServiceNextResponse + - Added Type Alias WorkspaceProductListByServiceResponse + - Added Type Alias WorkspaceProductPolicyCreateOrUpdateResponse + - Added Type Alias WorkspaceProductPolicyGetEntityTagResponse + - Added Type Alias WorkspaceProductPolicyGetResponse + - Added Type Alias WorkspaceProductPolicyListByProductResponse + - Added Type Alias WorkspaceProductUpdateResponse + - Added Type Alias WorkspaceSubscriptionCreateOrUpdateResponse + - Added Type Alias WorkspaceSubscriptionGetEntityTagResponse + - Added Type Alias WorkspaceSubscriptionGetResponse + - Added Type Alias WorkspaceSubscriptionListNextResponse + - Added Type Alias WorkspaceSubscriptionListResponse + - Added Type Alias WorkspaceSubscriptionListSecretsResponse + - Added Type Alias WorkspaceSubscriptionUpdateResponse + - Added Type Alias WorkspaceTagApiLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagApiLinkGetResponse + - Added Type Alias WorkspaceTagApiLinkListByProductNextResponse + - Added Type Alias WorkspaceTagApiLinkListByProductResponse + - Added Type Alias WorkspaceTagCreateOrUpdateResponse + - Added Type Alias WorkspaceTagGetEntityStateResponse + - Added Type Alias WorkspaceTagGetResponse + - Added Type Alias WorkspaceTagListByServiceNextResponse + - Added Type Alias WorkspaceTagListByServiceResponse + - Added Type Alias WorkspaceTagOperationLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagOperationLinkGetResponse + - Added Type Alias WorkspaceTagOperationLinkListByProductNextResponse + - Added Type Alias WorkspaceTagOperationLinkListByProductResponse + - Added Type Alias WorkspaceTagProductLinkCreateOrUpdateResponse + - Added Type Alias WorkspaceTagProductLinkGetResponse + - Added Type Alias WorkspaceTagProductLinkListByProductNextResponse + - Added Type Alias WorkspaceTagProductLinkListByProductResponse + - Added Type Alias WorkspaceTagUpdateResponse + - Added Type Alias WorkspaceUpdateResponse + - Interface ApiManagementServiceBaseProperties has a new optional parameter configurationApi + - Interface ApiManagementServiceBaseProperties has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceBaseProperties has a new optional parameter legacyPortalStatus + - Interface ApiManagementServiceMigrateToStv2OptionalParams has a new optional parameter parameters + - Interface ApiManagementServiceResource has a new optional parameter configurationApi + - Interface ApiManagementServiceResource has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceResource has a new optional parameter legacyPortalStatus + - Interface ApiManagementServiceUpdateParameters has a new optional parameter configurationApi + - Interface ApiManagementServiceUpdateParameters has a new optional parameter developerPortalStatus + - Interface ApiManagementServiceUpdateParameters has a new optional parameter legacyPortalStatus + - Interface BackendBaseParameters has a new optional parameter circuitBreaker + - Interface BackendContract has a new optional parameter circuitBreaker + - Interface BackendUpdateParameters has a new optional parameter circuitBreaker + - Added Enum KnownDeveloperPortalStatus + - Added Enum KnownGatewayListDebugCredentialsContractPurpose + - Added Enum KnownKeyVaultRefreshState + - Added Enum KnownLegacyApiState + - Added Enum KnownLegacyPortalStatus + - Added Enum KnownMigrateToStv2Mode + - Enum KnownApiType has a new value Odata + - Enum KnownContentFormat has a new value Odata + - Enum KnownContentFormat has a new value OdataLink + - Enum KnownHostnameType has a new value ConfigurationApi + - Enum KnownPlatformVersion has a new value Stv21 + - Enum KnownSoapApiType has a new value OData + ## 9.1.0 (2023-08-23) **Features** diff --git a/sdk/apimanagement/arm-apimanagement/README.md b/sdk/apimanagement/arm-apimanagement/README.md index 9b6c2e8409c2..075f96a061ed 100644 --- a/sdk/apimanagement/arm-apimanagement/README.md +++ b/sdk/apimanagement/arm-apimanagement/README.md @@ -6,7 +6,7 @@ ApiManagement Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-apimanagement) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/apimanagement/arm-apimanagement/_meta.json b/sdk/apimanagement/arm-apimanagement/_meta.json index 2dd27e303209..755e69464497 100644 --- a/sdk/apimanagement/arm-apimanagement/_meta.json +++ b/sdk/apimanagement/arm-apimanagement/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c2e836ccebb6a08245631ca1d68927abf8a79ba1", + "commit": "5d2ed06bbbad3641102d7a76ec5c25e4fd0fe741", "readme": "specification/apimanagement/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.8 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.8" + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index f4aa45056394..0eeb47e14f39 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ApiManagementClient.", - "version": "9.1.0", + "version": "9.2.0-beta.1", "engines": { "node": ">=14.0.0" }, @@ -48,8 +48,8 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -112,13 +112,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-apimanagement?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apimanagement/arm-apimanagement" +} \ No newline at end of file diff --git a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md index 666a2a8cd093..802c18da8537 100644 --- a/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md +++ b/sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md @@ -752,8 +752,12 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) productApi: ProductApi; // (undocumented) + productApiLink: ProductApiLink; + // (undocumented) productGroup: ProductGroup; // (undocumented) + productGroupLink: ProductGroupLink; + // (undocumented) productPolicy: ProductPolicy; // (undocumented) productSubscriptions: ProductSubscriptions; @@ -780,6 +784,12 @@ export class ApiManagementClient extends coreClient.ServiceClient { // (undocumented) tag: Tag; // (undocumented) + tagApiLink: TagApiLink; + // (undocumented) + tagOperationLink: TagOperationLink; + // (undocumented) + tagProductLink: TagProductLink; + // (undocumented) tagResource: TagResource; // (undocumented) tenantAccess: TenantAccess; @@ -799,6 +809,62 @@ export class ApiManagementClient extends coreClient.ServiceClient { userIdentities: UserIdentities; // (undocumented) userSubscription: UserSubscription; + // (undocumented) + workspace: Workspace; + // (undocumented) + workspaceApi: WorkspaceApi; + // (undocumented) + workspaceApiExport: WorkspaceApiExport; + // (undocumented) + workspaceApiOperation: WorkspaceApiOperation; + // (undocumented) + workspaceApiOperationPolicy: WorkspaceApiOperationPolicy; + // (undocumented) + workspaceApiPolicy: WorkspaceApiPolicy; + // (undocumented) + workspaceApiRelease: WorkspaceApiRelease; + // (undocumented) + workspaceApiRevision: WorkspaceApiRevision; + // (undocumented) + workspaceApiSchema: WorkspaceApiSchema; + // (undocumented) + workspaceApiVersionSet: WorkspaceApiVersionSet; + // (undocumented) + workspaceGlobalSchema: WorkspaceGlobalSchema; + // (undocumented) + workspaceGroup: WorkspaceGroup; + // (undocumented) + workspaceGroupUser: WorkspaceGroupUser; + // (undocumented) + workspaceNamedValue: WorkspaceNamedValue; + // (undocumented) + workspaceNotification: WorkspaceNotification; + // (undocumented) + workspaceNotificationRecipientEmail: WorkspaceNotificationRecipientEmail; + // (undocumented) + workspaceNotificationRecipientUser: WorkspaceNotificationRecipientUser; + // (undocumented) + workspacePolicy: WorkspacePolicy; + // (undocumented) + workspacePolicyFragment: WorkspacePolicyFragment; + // (undocumented) + workspaceProduct: WorkspaceProduct; + // (undocumented) + workspaceProductApiLink: WorkspaceProductApiLink; + // (undocumented) + workspaceProductGroupLink: WorkspaceProductGroupLink; + // (undocumented) + workspaceProductPolicy: WorkspaceProductPolicy; + // (undocumented) + workspaceSubscription: WorkspaceSubscription; + // (undocumented) + workspaceTag: WorkspaceTag; + // (undocumented) + workspaceTagApiLink: WorkspaceTagApiLink; + // (undocumented) + workspaceTagOperationLink: WorkspaceTagOperationLink; + // (undocumented) + workspaceTagProductLink: WorkspaceTagProductLink; } // @public @@ -808,6 +874,12 @@ export interface ApiManagementClientOptionalParams extends coreClient.ServiceCli endpoint?: string; } +// @public +export interface ApiManagementClientPerformConnectivityCheckAsyncHeaders { + // (undocumented) + location?: string; +} + // @public export interface ApiManagementOperations { list(options?: ApiManagementOperationsListOptionalParams): PagedAsyncIterableIterator; @@ -902,16 +974,19 @@ export interface ApiManagementServiceBaseProperties { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; readonly gatewayRegionalUrl?: string; readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; + legacyPortalStatus?: LegacyPortalStatus; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; notificationSenderEmail?: string; @@ -952,6 +1027,11 @@ export interface ApiManagementServiceCreateOrUpdateOptionalParams extends coreCl // @public export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource; +// @public +export interface ApiManagementServiceDeleteHeaders { + location?: string; +} + // @public export interface ApiManagementServiceDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1041,6 +1121,7 @@ export interface ApiManagementServiceMigrateToStv2Headers { // @public export interface ApiManagementServiceMigrateToStv2OptionalParams extends coreClient.OperationOptions { + parameters?: MigrateToStv2Contract; resumeFrom?: string; updateIntervalInMs?: number; } @@ -1066,10 +1147,12 @@ export interface ApiManagementServiceResource extends ApimResource { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; @@ -1078,6 +1161,7 @@ export interface ApiManagementServiceResource extends ApimResource { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; + legacyPortalStatus?: LegacyPortalStatus; location: string; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; @@ -1143,6 +1227,11 @@ export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams // @public export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; +// @public +export interface ApiManagementServiceUpdateHeaders { + location?: string; +} + // @public export interface ApiManagementServiceUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1154,10 +1243,12 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { additionalLocations?: AdditionalLocation[]; apiVersionConstraint?: ApiVersionConstraint; certificates?: CertificateConfiguration[]; + configurationApi?: ConfigurationApi; readonly createdAtUtc?: Date; customProperties?: { [propertyName: string]: string; }; + developerPortalStatus?: DeveloperPortalStatus; readonly developerPortalUrl?: string; disableGateway?: boolean; enableClientCertificate?: boolean; @@ -1166,6 +1257,7 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { readonly gatewayUrl?: string; hostnameConfigurations?: HostnameConfiguration[]; identity?: ApiManagementServiceIdentity; + legacyPortalStatus?: LegacyPortalStatus; readonly managementApiUrl?: string; natGatewayState?: NatGatewayState; notificationSenderEmail?: string; @@ -2598,6 +2690,7 @@ export interface BackendAuthorizationHeaderCredentials { // @public export interface BackendBaseParameters { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; properties?: BackendProperties; @@ -2607,6 +2700,11 @@ export interface BackendBaseParameters { tls?: BackendTlsProperties; } +// @public +export interface BackendCircuitBreaker { + rules?: CircuitBreakerRule[]; +} + // @public export interface BackendCollection { count?: number; @@ -2616,6 +2714,7 @@ export interface BackendCollection { // @public export interface BackendContract extends ProxyResource { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; properties?: BackendProperties; @@ -2762,6 +2861,7 @@ export interface BackendUpdateParameterProperties extends BackendBaseParameters // @public export interface BackendUpdateParameters { + circuitBreaker?: BackendCircuitBreaker; credentials?: BackendCredentialsContract; description?: string; properties?: BackendProperties; @@ -3017,6 +3117,22 @@ export type CertificateSource = string; // @public export type CertificateStatus = string; +// @public +export interface CircuitBreakerFailureCondition { + count?: number; + errorReasons?: string[]; + interval?: string; + percentage?: number; + statusCodeRanges?: FailureStatusCodeRange[]; +} + +// @public +export interface CircuitBreakerRule { + failureCondition?: CircuitBreakerFailureCondition; + name?: string; + tripDuration?: string; +} + // @public export type ClientAuthenticationMethod = string; @@ -3025,6 +3141,11 @@ export interface ClientSecretContract { clientSecret?: string; } +// @public +export interface ConfigurationApi { + legacyApi?: LegacyApiState; +} + // @public export type ConfigurationIdName = string; @@ -3392,6 +3513,9 @@ export interface DeployConfigurationParameters { force?: boolean; } +// @public +export type DeveloperPortalStatus = string; + // @public export interface Diagnostic { createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: DiagnosticContract, options?: DiagnosticCreateOrUpdateOptionalParams): Promise; @@ -3741,6 +3865,12 @@ export type ExportFormat = string; // @public export type ExportResultFormat = string; +// @public +export interface FailureStatusCodeRange { + max?: number; + min?: number; +} + // @public export interface Gateway { createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayContract, options?: GatewayCreateOrUpdateOptionalParams): Promise; @@ -3748,8 +3878,11 @@ export interface Gateway { generateToken(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayTokenRequestContract, options?: GatewayGenerateTokenOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayGetEntityTagOptionalParams): Promise; + invalidateDebugCredentials(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayInvalidateDebugCredentialsOptionalParams): Promise; listByService(resourceGroupName: string, serviceName: string, options?: GatewayListByServiceOptionalParams): PagedAsyncIterableIterator; + listDebugCredentials(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayListDebugCredentialsContract, options?: GatewayListDebugCredentialsOptionalParams): Promise; listKeys(resourceGroupName: string, serviceName: string, gatewayId: string, options?: GatewayListKeysOptionalParams): Promise; + listTrace(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayListTraceContract, options?: GatewayListTraceOptionalParams): Promise; regenerateKey(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: GatewayKeyRegenerationRequestContract, options?: GatewayRegenerateKeyOptionalParams): Promise; update(resourceGroupName: string, serviceName: string, gatewayId: string, ifMatch: string, parameters: GatewayContract, options?: GatewayUpdateOptionalParams): Promise; } @@ -3907,6 +4040,11 @@ export interface GatewayCreateOrUpdateOptionalParams extends coreClient.Operatio // @public export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & GatewayContract; +// @public +export interface GatewayDebugCredentialsContract { + token?: string; +} + // @public export interface GatewayDeleteOptionalParams extends coreClient.OperationOptions { } @@ -4025,6 +4163,10 @@ export interface GatewayHostnameConfigurationListByServiceOptionalParams extends // @public export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; +// @public +export interface GatewayInvalidateDebugCredentialsOptionalParams extends coreClient.OperationOptions { +} + // @public export interface GatewayKeyRegenerationRequestContract { keyType: KeyType_2; @@ -4053,6 +4195,23 @@ export interface GatewayListByServiceOptionalParams extends coreClient.Operation // @public export type GatewayListByServiceResponse = GatewayCollection; +// @public +export interface GatewayListDebugCredentialsContract { + apiId: string; + credentialsExpireAfter?: string; + purposes: GatewayListDebugCredentialsContractPurpose[]; +} + +// @public +export type GatewayListDebugCredentialsContractPurpose = string; + +// @public +export interface GatewayListDebugCredentialsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayListDebugCredentialsResponse = GatewayDebugCredentialsContract; + // @public export interface GatewayListKeysHeaders { eTag?: string; @@ -4065,6 +4224,20 @@ export interface GatewayListKeysOptionalParams extends coreClient.OperationOptio // @public export type GatewayListKeysResponse = GatewayListKeysHeaders & GatewayKeysContract; +// @public +export interface GatewayListTraceContract { + traceId?: string; +} + +// @public +export interface GatewayListTraceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GatewayListTraceResponse = { + [propertyName: string]: any; +}; + // @public export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions { } @@ -4848,6 +5021,9 @@ export interface KeyVaultLastAccessStatusContractProperties { timeStampUtc?: Date; } +// @public +export type KeyVaultRefreshState = string; + // @public export enum KnownAccessIdName { Access = "access", @@ -4878,6 +5054,7 @@ export enum KnownApimIdentityType { export enum KnownApiType { Graphql = "graphql", Http = "http", + Odata = "odata", Soap = "soap", Websocket = "websocket" } @@ -4981,6 +5158,8 @@ export enum KnownConnectivityStatusType { // @public export enum KnownContentFormat { GraphqlLink = "graphql-link", + Odata = "odata", + OdataLink = "odata-link", Openapi = "openapi", OpenapiJson = "openapi+json", OpenapiJsonLink = "openapi+json-link", @@ -5007,6 +5186,12 @@ export enum KnownDataMaskingMode { Mask = "Mask" } +// @public +export enum KnownDeveloperPortalStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownExportApi { True = "true" @@ -5029,6 +5214,11 @@ export enum KnownExportResultFormat { Wsdl = "wsdl-link+xml" } +// @public +export enum KnownGatewayListDebugCredentialsContractPurpose { + Tracing = "tracing" +} + // @public export enum KnownGrantType { AuthorizationCode = "authorizationCode", @@ -5039,6 +5229,7 @@ export enum KnownGrantType { // @public export enum KnownHostnameType { + ConfigurationApi = "ConfigurationApi", DeveloperPortal = "DeveloperPortal", Management = "Management", Portal = "Portal", @@ -5076,6 +5267,24 @@ export enum KnownIssueType { UserDefinedRoute = "UserDefinedRoute" } +// @public +export enum KnownKeyVaultRefreshState { + False = "false", + True = "true" +} + +// @public +export enum KnownLegacyApiState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownLegacyPortalStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownLoggerType { ApplicationInsights = "applicationInsights", @@ -5089,6 +5298,12 @@ export enum KnownMethod { Post = "POST" } +// @public +export enum KnownMigrateToStv2Mode { + NewIP = "NewIP", + PreserveIp = "PreserveIp" +} + // @public export enum KnownNatGatewayState { Disabled = "Disabled", @@ -5130,6 +5345,7 @@ export enum KnownPlatformVersion { Mtv1 = "mtv1", Stv1 = "stv1", Stv2 = "stv2", + Stv21 = "stv2.1", Undetermined = "undetermined" } @@ -5249,6 +5465,7 @@ export enum KnownSkuType { // @public export enum KnownSoapApiType { GraphQL = "graphql", + OData = "odata", SoapPassThrough = "soap", SoapToRest = "http", WebSocket = "websocket" @@ -5316,6 +5533,12 @@ export enum KnownVirtualNetworkType { None = "None" } +// @public +export type LegacyApiState = string; + +// @public +export type LegacyPortalStatus = string; + // @public export interface Logger { createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: LoggerContract, options?: LoggerCreateOrUpdateOptionalParams): Promise; @@ -5430,6 +5653,14 @@ export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; // @public export type Method = string; +// @public +export interface MigrateToStv2Contract { + mode?: MigrateToStv2Mode; +} + +// @public +export type MigrateToStv2Mode = string; + // @public export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; @@ -6119,7 +6350,7 @@ export interface Policy { delete(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, ifMatch: string, options?: PolicyDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, options?: PolicyGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, policyId: PolicyIdName, options?: PolicyGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6190,7 +6421,7 @@ export interface PolicyFragment { delete(resourceGroupName: string, serviceName: string, id: string, ifMatch: string, options?: PolicyFragmentDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams): PagedAsyncIterableIterator; listReferences(resourceGroupName: string, serviceName: string, id: string, options?: PolicyFragmentListReferencesOptionalParams): Promise; } @@ -6255,6 +6486,13 @@ export interface PolicyFragmentGetOptionalParams extends coreClient.OperationOpt // @public export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & PolicyFragmentContract; +// @public +export interface PolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; + // @public export interface PolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { filter?: string; @@ -6303,6 +6541,13 @@ export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; // @public export type PolicyIdName = string; +// @public +export interface PolicyListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PolicyListByServiceNextResponse = PolicyCollection; + // @public export interface PolicyListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -6318,7 +6563,7 @@ export interface PortalConfig { createOrUpdate(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigCreateOrUpdateOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, portalConfigId: string, options?: PortalConfigGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, portalConfigId: string, options?: PortalConfigGetEntityTagOptionalParams): Promise; - listByService(resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, serviceName: string, portalConfigId: string, ifMatch: string, parameters: PortalConfigContract, options?: PortalConfigUpdateOptionalParams): Promise; } @@ -6391,6 +6636,13 @@ export interface PortalConfigGetOptionalParams extends coreClient.OperationOptio // @public export type PortalConfigGetResponse = PortalConfigGetHeaders & PortalConfigContract; +// @public +export interface PortalConfigListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PortalConfigListByServiceNextResponse = PortalConfigCollection; + // @public export interface PortalConfigListByServiceOptionalParams extends coreClient.OperationOptions { } @@ -6590,6 +6842,11 @@ export interface PrivateEndpointConnection extends Resource { readonly provisioningState?: PrivateEndpointConnectionProvisioningState; } +// @public +export interface PrivateEndpointConnectionCreateOrUpdateHeaders { + location?: string; +} + // @public export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6599,6 +6856,11 @@ export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends c // @public export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; +// @public +export interface PrivateEndpointConnectionDeleteHeaders { + location?: string; +} + // @public export interface PrivateEndpointConnectionDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -6725,6 +6987,66 @@ export type ProductApiCreateOrUpdateResponse = ApiContract; export interface ProductApiDeleteOptionalParams extends coreClient.OperationOptions { } +// @public +export interface ProductApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, parameters: ProductApiLinkContract, options?: ProductApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, options?: ProductApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, apiLinkId: string, options?: ProductApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductApiLinkCollection { + count?: number; + nextLink?: string; + value?: ProductApiLinkContract[]; +} + +// @public +export interface ProductApiLinkContract extends ProxyResource { + apiId?: string; +} + +// @public +export interface ProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; + +// @public +export interface ProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface ProductApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkGetResponse = ProductApiLinkGetHeaders & ProductApiLinkContract; + +// @public +export interface ProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductApiLinkListByProductNextResponse = ProductApiLinkCollection; + +// @public +export interface ProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductApiLinkListByProductResponse = ProductApiLinkCollection; + // @public export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions { } @@ -6845,6 +7167,66 @@ export type ProductGroupCreateOrUpdateResponse = GroupContract; export interface ProductGroupDeleteOptionalParams extends coreClient.OperationOptions { } +// @public +export interface ProductGroupLink { + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, parameters: ProductGroupLinkContract, options?: ProductGroupLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, options?: ProductGroupLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, productId: string, groupLinkId: string, options?: ProductGroupLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductGroupLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ProductGroupLinkCollection { + count?: number; + nextLink?: string; + value?: ProductGroupLinkContract[]; +} + +// @public +export interface ProductGroupLinkContract extends ProxyResource { + groupId?: string; +} + +// @public +export interface ProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; + +// @public +export interface ProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ProductGroupLinkGetHeaders { + eTag?: string; +} + +// @public +export interface ProductGroupLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGroupLinkGetResponse = ProductGroupLinkGetHeaders & ProductGroupLinkContract; + +// @public +export interface ProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; + +// @public +export interface ProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type ProductGroupLinkListByProductResponse = ProductGroupLinkCollection; + // @public export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions { } @@ -6905,7 +7287,7 @@ export interface ProductPolicy { delete(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, ifMatch: string, options?: ProductPolicyDeleteOptionalParams): Promise; get(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, options?: ProductPolicyGetOptionalParams): Promise; getEntityTag(resourceGroupName: string, serviceName: string, productId: string, policyId: PolicyIdName, options?: ProductPolicyGetEntityTagOptionalParams): Promise; - listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams): PagedAsyncIterableIterator; } // @public @@ -6950,6 +7332,13 @@ export interface ProductPolicyGetOptionalParams extends coreClient.OperationOpti // @public export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; +// @public +export interface ProductPolicyListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ProductPolicyListByProductNextResponse = PolicyCollection; + // @public export interface ProductPolicyListByProductOptionalParams extends coreClient.OperationOptions { } @@ -7945,35 +8334,95 @@ export interface Tag { } // @public -export interface TagAssignToApiHeaders { - eTag?: string; +export interface TagApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, parameters: TagApiLinkContract, options?: TagApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, options?: TagApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, apiLinkId: string, options?: TagApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; } // @public -export interface TagAssignToApiOptionalParams extends coreClient.OperationOptions { +export interface TagApiLinkCollection { + count?: number; + nextLink?: string; + value?: TagApiLinkContract[]; } // @public -export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; +export interface TagApiLinkContract extends ProxyResource { + apiId?: string; +} // @public -export interface TagAssignToOperationOptionalParams extends coreClient.OperationOptions { +export interface TagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export type TagAssignToOperationResponse = TagContract; +export type TagApiLinkCreateOrUpdateResponse = TagApiLinkContract; // @public -export interface TagAssignToProductOptionalParams extends coreClient.OperationOptions { +export interface TagApiLinkDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export type TagAssignToProductResponse = TagContract; +export interface TagApiLinkGetHeaders { + eTag?: string; +} // @public -export interface TagCollection { - count?: number; - nextLink?: string; +export interface TagApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkGetResponse = TagApiLinkGetHeaders & TagApiLinkContract; + +// @public +export interface TagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagApiLinkListByProductNextResponse = TagApiLinkCollection; + +// @public +export interface TagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagApiLinkListByProductResponse = TagApiLinkCollection; + +// @public +export interface TagAssignToApiHeaders { + eTag?: string; +} + +// @public +export interface TagAssignToApiOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; + +// @public +export interface TagAssignToOperationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagAssignToOperationResponse = TagContract; + +// @public +export interface TagAssignToProductOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagAssignToProductResponse = TagContract; + +// @public +export interface TagCollection { + count?: number; + nextLink?: string; value?: TagContract[]; } @@ -8217,6 +8666,126 @@ export interface TagListByServiceOptionalParams extends coreClient.OperationOpti // @public export type TagListByServiceResponse = TagCollection; +// @public +export interface TagOperationLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, operationLinkId: string, parameters: TagOperationLinkContract, options?: TagOperationLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, operationLinkId: string, options?: TagOperationLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, operationLinkId: string, options?: TagOperationLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagOperationLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagOperationLinkCollection { + count?: number; + nextLink?: string; + value?: TagOperationLinkContract[]; +} + +// @public +export interface TagOperationLinkContract extends ProxyResource { + operationId?: string; +} + +// @public +export interface TagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; + +// @public +export interface TagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TagOperationLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagOperationLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkGetResponse = TagOperationLinkGetHeaders & TagOperationLinkContract; + +// @public +export interface TagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagOperationLinkListByProductNextResponse = TagOperationLinkCollection; + +// @public +export interface TagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagOperationLinkListByProductResponse = TagOperationLinkCollection; + +// @public +export interface TagProductLink { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, parameters: TagProductLinkContract, options?: TagProductLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, options?: TagProductLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, productLinkId: string, options?: TagProductLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, tagId: string, options?: TagProductLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface TagProductLinkCollection { + count?: number; + nextLink?: string; + value?: TagProductLinkContract[]; +} + +// @public +export interface TagProductLinkContract extends ProxyResource { + productId?: string; +} + +// @public +export interface TagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkCreateOrUpdateResponse = TagProductLinkContract; + +// @public +export interface TagProductLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface TagProductLinkGetHeaders { + eTag?: string; +} + +// @public +export interface TagProductLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkGetResponse = TagProductLinkGetHeaders & TagProductLinkContract; + +// @public +export interface TagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type TagProductLinkListByProductNextResponse = TagProductLinkCollection; + +// @public +export interface TagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type TagProductLinkListByProductResponse = TagProductLinkCollection; + // @public export interface TagResource { listByService(resourceGroupName: string, serviceName: string, options?: TagResourceListByServiceOptionalParams): PagedAsyncIterableIterator; @@ -8395,6 +8964,12 @@ export interface TenantConfiguration { getSyncState(resourceGroupName: string, serviceName: string, configurationName: ConfigurationIdName, options?: TenantConfigurationGetSyncStateOptionalParams): Promise; } +// @public +export interface TenantConfigurationDeployHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationDeployOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8411,6 +8986,12 @@ export interface TenantConfigurationGetSyncStateOptionalParams extends coreClien // @public export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; +// @public +export interface TenantConfigurationSaveHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationSaveOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8432,6 +9013,12 @@ export interface TenantConfigurationSyncStateContract extends ProxyResource { syncDate?: Date; } +// @public +export interface TenantConfigurationValidateHeaders { + // (undocumented) + location?: string; +} + // @public export interface TenantConfigurationValidateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8837,6 +9424,1796 @@ export interface WikiUpdateContract { documents?: WikiDocumentationContract[]; } +// @public +export interface Workspace { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, parameters: WorkspaceContract, options?: WorkspaceCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, ifMatch: string, options?: WorkspaceDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: WorkspaceListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, ifMatch: string, parameters: WorkspaceContract, options?: WorkspaceUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApi { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: WorkspaceApiCreateOrUpdateOptionalParams): Promise, WorkspaceApiCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, parameters: ApiCreateOrUpdateParameter, options?: WorkspaceApiCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, ifMatch: string, options?: WorkspaceApiDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceApiListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, ifMatch: string, parameters: ApiUpdateContract, options?: WorkspaceApiUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceApiCreateOrUpdateResponse = WorkspaceApiCreateOrUpdateHeaders & ApiContract; + +// @public +export interface WorkspaceApiDeleteOptionalParams extends coreClient.OperationOptions { + deleteRevisions?: boolean; +} + +// @public +export interface WorkspaceApiExport { + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, format: ExportFormat, exportParam: ExportApi, options?: WorkspaceApiExportGetOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiExportGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiExportGetResponse = ApiExportResult; + +// @public +export interface WorkspaceApiGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiGetEntityTagResponse = WorkspaceApiGetEntityTagHeaders; + +// @public +export interface WorkspaceApiGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiGetResponse = WorkspaceApiGetHeaders & ApiContract; + +// @public +export interface WorkspaceApiListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiListByServiceNextResponse = ApiCollection; + +// @public +export interface WorkspaceApiListByServiceOptionalParams extends coreClient.OperationOptions { + expandApiVersionSet?: boolean; + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceApiListByServiceResponse = ApiCollection; + +// @public +export interface WorkspaceApiOperation { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, parameters: OperationContract, options?: WorkspaceApiOperationCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, ifMatch: string, options?: WorkspaceApiOperationDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiOperationListByApiOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, ifMatch: string, parameters: OperationUpdateContract, options?: WorkspaceApiOperationUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiOperationCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiOperationCreateOrUpdateResponse = WorkspaceApiOperationCreateOrUpdateHeaders & OperationContract; + +// @public +export interface WorkspaceApiOperationDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiOperationGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationGetEntityTagResponse = WorkspaceApiOperationGetEntityTagHeaders; + +// @public +export interface WorkspaceApiOperationGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationGetResponse = WorkspaceApiOperationGetHeaders & OperationContract; + +// @public +export interface WorkspaceApiOperationListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationListByApiNextResponse = OperationCollection; + +// @public +export interface WorkspaceApiOperationListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceApiOperationListByApiResponse = OperationCollection; + +// @public +export interface WorkspaceApiOperationPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceApiOperationPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, options?: WorkspaceApiOperationPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, policyId: PolicyIdName, options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams): Promise; + listByOperation(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, operationId: string, options?: WorkspaceApiOperationPolicyListByOperationOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiOperationPolicyCreateOrUpdateResponse = WorkspaceApiOperationPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceApiOperationPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiOperationPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyGetEntityTagResponse = WorkspaceApiOperationPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceApiOperationPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceApiOperationPolicyGetResponse = WorkspaceApiOperationPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyListByOperationNextResponse = PolicyCollection; + +// @public +export interface WorkspaceApiOperationPolicyListByOperationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationPolicyListByOperationResponse = PolicyCollection; + +// @public +export interface WorkspaceApiOperationUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiOperationUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiOperationUpdateResponse = WorkspaceApiOperationUpdateHeaders & OperationContract; + +// @public +export interface WorkspaceApiPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceApiPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, options?: WorkspaceApiPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, policyId: PolicyIdName, options?: WorkspaceApiPolicyGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiPolicyListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiPolicyCreateOrUpdateResponse = WorkspaceApiPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceApiPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyGetEntityTagResponse = WorkspaceApiPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceApiPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceApiPolicyGetResponse = WorkspaceApiPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceApiPolicyListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyListByApiNextResponse = PolicyCollection; + +// @public +export interface WorkspaceApiPolicyListByApiOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiPolicyListByApiResponse = PolicyCollection; + +// @public +export interface WorkspaceApiRelease { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, parameters: ApiReleaseContract, options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, ifMatch: string, options?: WorkspaceApiReleaseDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, options?: WorkspaceApiReleaseGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, options?: WorkspaceApiReleaseGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiReleaseListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, releaseId: string, ifMatch: string, parameters: ApiReleaseContract, options?: WorkspaceApiReleaseUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiReleaseCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiReleaseCreateOrUpdateResponse = WorkspaceApiReleaseCreateOrUpdateHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiReleaseDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiReleaseGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseGetEntityTagResponse = WorkspaceApiReleaseGetEntityTagHeaders; + +// @public +export interface WorkspaceApiReleaseGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseGetResponse = WorkspaceApiReleaseGetHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiReleaseListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseListByServiceNextResponse = ApiReleaseCollection; + +// @public +export interface WorkspaceApiReleaseListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiReleaseListByServiceResponse = ApiReleaseCollection; + +// @public +export interface WorkspaceApiReleaseUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiReleaseUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiReleaseUpdateResponse = WorkspaceApiReleaseUpdateHeaders & ApiReleaseContract; + +// @public +export interface WorkspaceApiRevision { + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiRevisionListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiRevisionListByServiceNextResponse = ApiRevisionCollection; + +// @public +export interface WorkspaceApiRevisionListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiRevisionListByServiceResponse = ApiRevisionCollection; + +// @public +export interface WorkspaceApiSchema { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams): Promise, WorkspaceApiSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, parameters: SchemaContract, options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, ifMatch: string, options?: WorkspaceApiSchemaDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, options?: WorkspaceApiSchemaGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, schemaId: string, options?: WorkspaceApiSchemaGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, apiId: string, options?: WorkspaceApiSchemaListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceApiSchemaCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceApiSchemaCreateOrUpdateResponse = WorkspaceApiSchemaCreateOrUpdateHeaders & SchemaContract; + +// @public +export interface WorkspaceApiSchemaDeleteOptionalParams extends coreClient.OperationOptions { + force?: boolean; +} + +// @public +export interface WorkspaceApiSchemaGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaGetEntityTagResponse = WorkspaceApiSchemaGetEntityTagHeaders; + +// @public +export interface WorkspaceApiSchemaGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiSchemaGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaGetResponse = WorkspaceApiSchemaGetHeaders & SchemaContract; + +// @public +export interface WorkspaceApiSchemaListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiSchemaListByApiNextResponse = SchemaCollection; + +// @public +export interface WorkspaceApiSchemaListByApiOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiSchemaListByApiResponse = SchemaCollection; + +// @public +export interface WorkspaceApiUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiUpdateResponse = WorkspaceApiUpdateHeaders & ApiContract; + +// @public +export interface WorkspaceApiVersionSet { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, parameters: ApiVersionSetContract, options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, ifMatch: string, options?: WorkspaceApiVersionSetDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, options?: WorkspaceApiVersionSetGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, options?: WorkspaceApiVersionSetGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceApiVersionSetListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, versionSetId: string, ifMatch: string, parameters: ApiVersionSetUpdateParameters, options?: WorkspaceApiVersionSetUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceApiVersionSetCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceApiVersionSetCreateOrUpdateResponse = WorkspaceApiVersionSetCreateOrUpdateHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceApiVersionSetDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceApiVersionSetGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetGetEntityTagResponse = WorkspaceApiVersionSetGetEntityTagHeaders; + +// @public +export interface WorkspaceApiVersionSetGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetGetResponse = WorkspaceApiVersionSetGetHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceApiVersionSetListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; + +// @public +export interface WorkspaceApiVersionSetListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceApiVersionSetListByServiceResponse = ApiVersionSetCollection; + +// @public +export interface WorkspaceApiVersionSetUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceApiVersionSetUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceApiVersionSetUpdateResponse = WorkspaceApiVersionSetUpdateHeaders & ApiVersionSetContract; + +// @public +export interface WorkspaceCollection { + count?: number; + nextLink?: string; + value?: WorkspaceContract[]; +} + +// @public +export interface WorkspaceContract extends ProxyResource { + description?: string; + displayName?: string; +} + +// @public +export interface WorkspaceCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceCreateOrUpdateResponse = WorkspaceCreateOrUpdateHeaders & WorkspaceContract; + +// @public +export interface WorkspaceDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGetEntityTagResponse = WorkspaceGetEntityTagHeaders; + +// @public +export interface WorkspaceGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGetResponse = WorkspaceGetHeaders & WorkspaceContract; + +// @public +export interface WorkspaceGlobalSchema { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, parameters: GlobalSchemaContract, options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams): Promise, WorkspaceGlobalSchemaCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, parameters: GlobalSchemaContract, options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, ifMatch: string, options?: WorkspaceGlobalSchemaDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, options?: WorkspaceGlobalSchemaGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, schemaId: string, options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGlobalSchemaListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceGlobalSchemaCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceGlobalSchemaCreateOrUpdateResponse = WorkspaceGlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract; + +// @public +export interface WorkspaceGlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGlobalSchemaGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaGetEntityTagResponse = WorkspaceGlobalSchemaGetEntityTagHeaders; + +// @public +export interface WorkspaceGlobalSchemaGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGlobalSchemaGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaGetResponse = WorkspaceGlobalSchemaGetHeaders & GlobalSchemaContract; + +// @public +export interface WorkspaceGlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; + +// @public +export interface WorkspaceGlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGlobalSchemaListByServiceResponse = GlobalSchemaCollection; + +// @public +export interface WorkspaceGroup { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, parameters: GroupCreateParameters, options?: WorkspaceGroupCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, ifMatch: string, options?: WorkspaceGroupDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceGroupListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, ifMatch: string, parameters: GroupUpdateParameters, options?: WorkspaceGroupUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceGroupCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceGroupCreateOrUpdateResponse = WorkspaceGroupCreateOrUpdateHeaders & GroupContract; + +// @public +export interface WorkspaceGroupDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGroupGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupGetEntityTagResponse = WorkspaceGroupGetEntityTagHeaders; + +// @public +export interface WorkspaceGroupGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupGetResponse = WorkspaceGroupGetHeaders & GroupContract; + +// @public +export interface WorkspaceGroupListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupListByServiceNextResponse = GroupCollection; + +// @public +export interface WorkspaceGroupListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGroupListByServiceResponse = GroupCollection; + +// @public +export interface WorkspaceGroupUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceGroupUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUpdateResponse = WorkspaceGroupUpdateHeaders & GroupContract; + +// @public +export interface WorkspaceGroupUser { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserCheckEntityExistsOptionalParams): Promise; + create(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserCreateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, userId: string, options?: WorkspaceGroupUserDeleteOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, workspaceId: string, groupId: string, options?: WorkspaceGroupUserListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceGroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceGroupUserCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserCreateResponse = UserContract; + +// @public +export interface WorkspaceGroupUserDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceGroupUserListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceGroupUserListNextResponse = UserCollection; + +// @public +export interface WorkspaceGroupUserListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceGroupUserListResponse = UserCollection; + +// @public +export interface WorkspaceListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceListByServiceNextResponse = WorkspaceCollection; + +// @public +export interface WorkspaceListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceListByServiceResponse = WorkspaceCollection; + +// @public +export interface WorkspaceNamedValue { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, parameters: NamedValueCreateContract, options?: WorkspaceNamedValueCreateOrUpdateOptionalParams): Promise, WorkspaceNamedValueCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, parameters: NamedValueCreateContract, options?: WorkspaceNamedValueCreateOrUpdateOptionalParams): Promise; + beginRefreshSecret(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueRefreshSecretOptionalParams): Promise, WorkspaceNamedValueRefreshSecretResponse>>; + beginRefreshSecretAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueRefreshSecretOptionalParams): Promise; + beginUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: WorkspaceNamedValueUpdateOptionalParams): Promise, WorkspaceNamedValueUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, parameters: NamedValueUpdateParameters, options?: WorkspaceNamedValueUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, ifMatch: string, options?: WorkspaceNamedValueDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceNamedValueListByServiceOptionalParams): PagedAsyncIterableIterator; + listValue(resourceGroupName: string, serviceName: string, workspaceId: string, namedValueId: string, options?: WorkspaceNamedValueListValueOptionalParams): Promise; +} + +// @public +export interface WorkspaceNamedValueCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueCreateOrUpdateResponse = WorkspaceNamedValueCreateOrUpdateHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNamedValueGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueGetEntityTagResponse = WorkspaceNamedValueGetEntityTagHeaders; + +// @public +export interface WorkspaceNamedValueGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueGetResponse = WorkspaceNamedValueGetHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueListByServiceNextResponse = NamedValueCollection; + +// @public +export interface WorkspaceNamedValueListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + isKeyVaultRefreshFailed?: KeyVaultRefreshState; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceNamedValueListByServiceResponse = NamedValueCollection; + +// @public +export interface WorkspaceNamedValueListValueHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueListValueOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNamedValueListValueResponse = WorkspaceNamedValueListValueHeaders & NamedValueSecretContract; + +// @public +export interface WorkspaceNamedValueRefreshSecretHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueRefreshSecretOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueRefreshSecretResponse = WorkspaceNamedValueRefreshSecretHeaders & NamedValueContract; + +// @public +export interface WorkspaceNamedValueUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceNamedValueUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceNamedValueUpdateResponse = WorkspaceNamedValueUpdateHeaders & NamedValueContract; + +// @public +export interface WorkspaceNotification { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationGetOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceNotificationListByServiceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceNotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceNotificationCreateOrUpdateResponse = NotificationContract; + +// @public +export interface WorkspaceNotificationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationGetResponse = NotificationContract; + +// @public +export interface WorkspaceNotificationListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationListByServiceNextResponse = NotificationCollection; + +// @public +export interface WorkspaceNotificationListByServiceOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type WorkspaceNotificationListByServiceResponse = NotificationCollection; + +// @public +export interface WorkspaceNotificationRecipientEmail { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, email: string, options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams): Promise; + listByNotification(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams): Promise; +} + +// @public +export interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; + +// @public +export interface WorkspaceNotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; + +// @public +export interface WorkspaceNotificationRecipientUser { + checkEntityExists(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, userId: string, options?: WorkspaceNotificationRecipientUserDeleteOptionalParams): Promise; + listByNotification(resourceGroupName: string, serviceName: string, workspaceId: string, notificationName: NotificationName, options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams): Promise; +} + +// @public +export interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; + +// @public +export interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; + +// @public +export interface WorkspaceNotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceNotificationRecipientUserListByNotificationResponse = RecipientUserCollection; + +// @public +export interface WorkspacePolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspacePolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspacePolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, options?: WorkspacePolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, policyId: PolicyIdName, options?: WorkspacePolicyGetEntityTagOptionalParams): Promise; + listByApi(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspacePolicyListByApiOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspacePolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspacePolicyCreateOrUpdateResponse = WorkspacePolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspacePolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspacePolicyFragment { + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, parameters: PolicyFragmentContract, options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams): Promise, WorkspacePolicyFragmentCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, parameters: PolicyFragmentContract, options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, ifMatch: string, options?: WorkspacePolicyFragmentDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspacePolicyFragmentListByServiceOptionalParams): PagedAsyncIterableIterator; + listReferences(resourceGroupName: string, serviceName: string, workspaceId: string, id: string, options?: WorkspacePolicyFragmentListReferencesOptionalParams): Promise; +} + +// @public +export interface WorkspacePolicyFragmentCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacePolicyFragmentCreateOrUpdateResponse = WorkspacePolicyFragmentCreateOrUpdateHeaders & PolicyFragmentContract; + +// @public +export interface WorkspacePolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspacePolicyFragmentGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyFragmentGetEntityTagResponse = WorkspacePolicyFragmentGetEntityTagHeaders; + +// @public +export interface WorkspacePolicyFragmentGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyFragmentGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyFragmentContentFormat; +} + +// @public +export type WorkspacePolicyFragmentGetResponse = WorkspacePolicyFragmentGetHeaders & PolicyFragmentContract; + +// @public +export interface WorkspacePolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; + +// @public +export interface WorkspacePolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + orderby?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspacePolicyFragmentListByServiceResponse = PolicyFragmentCollection; + +// @public +export interface WorkspacePolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { + skip?: number; + top?: number; +} + +// @public +export type WorkspacePolicyFragmentListReferencesResponse = ResourceCollection; + +// @public +export interface WorkspacePolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyGetEntityTagResponse = WorkspacePolicyGetEntityTagHeaders; + +// @public +export interface WorkspacePolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspacePolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspacePolicyGetResponse = WorkspacePolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspacePolicyListByApiNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyListByApiNextResponse = PolicyCollection; + +// @public +export interface WorkspacePolicyListByApiOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacePolicyListByApiResponse = PolicyCollection; + +// @public +export interface WorkspaceProduct { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, parameters: ProductContract, options?: WorkspaceProductCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, ifMatch: string, options?: WorkspaceProductDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGetEntityTagOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceProductListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, ifMatch: string, parameters: ProductUpdateParameters, options?: WorkspaceProductUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceProductApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, parameters: ProductApiLinkContract, options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, options?: WorkspaceProductApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, apiLinkId: string, options?: WorkspaceProductApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; + +// @public +export interface WorkspaceProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkGetResponse = WorkspaceProductApiLinkGetHeaders & ProductApiLinkContract; + +// @public +export interface WorkspaceProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductApiLinkListByProductNextResponse = ProductApiLinkCollection; + +// @public +export interface WorkspaceProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceProductApiLinkListByProductResponse = ProductApiLinkCollection; + +// @public +export interface WorkspaceProductCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceProductCreateOrUpdateResponse = WorkspaceProductCreateOrUpdateHeaders & ProductContract; + +// @public +export interface WorkspaceProductDeleteOptionalParams extends coreClient.OperationOptions { + deleteSubscriptions?: boolean; +} + +// @public +export interface WorkspaceProductGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGetEntityTagResponse = WorkspaceProductGetEntityTagHeaders; + +// @public +export interface WorkspaceProductGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGetResponse = WorkspaceProductGetHeaders & ProductContract; + +// @public +export interface WorkspaceProductGroupLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, parameters: ProductGroupLinkContract, options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, options?: WorkspaceProductGroupLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, groupLinkId: string, options?: WorkspaceProductGroupLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductGroupLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; + +// @public +export interface WorkspaceProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductGroupLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductGroupLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkGetResponse = WorkspaceProductGroupLinkGetHeaders & ProductGroupLinkContract; + +// @public +export interface WorkspaceProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; + +// @public +export interface WorkspaceProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceProductGroupLinkListByProductResponse = ProductGroupLinkCollection; + +// @public +export interface WorkspaceProductListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductListByServiceNextResponse = ProductCollection; + +// @public +export interface WorkspaceProductListByServiceOptionalParams extends coreClient.OperationOptions { + expandGroups?: boolean; + filter?: string; + skip?: number; + tags?: string; + top?: number; +} + +// @public +export type WorkspaceProductListByServiceResponse = ProductCollection; + +// @public +export interface WorkspaceProductPolicy { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, parameters: PolicyContract, options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, ifMatch: string, options?: WorkspaceProductPolicyDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, options?: WorkspaceProductPolicyGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, policyId: PolicyIdName, options?: WorkspaceProductPolicyGetEntityTagOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, productId: string, options?: WorkspaceProductPolicyListByProductOptionalParams): Promise; +} + +// @public +export interface WorkspaceProductPolicyCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceProductPolicyCreateOrUpdateResponse = WorkspaceProductPolicyCreateOrUpdateHeaders & PolicyContract; + +// @public +export interface WorkspaceProductPolicyDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceProductPolicyGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductPolicyGetEntityTagResponse = WorkspaceProductPolicyGetEntityTagHeaders; + +// @public +export interface WorkspaceProductPolicyGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductPolicyGetOptionalParams extends coreClient.OperationOptions { + format?: PolicyExportFormat; +} + +// @public +export type WorkspaceProductPolicyGetResponse = WorkspaceProductPolicyGetHeaders & PolicyContract; + +// @public +export interface WorkspaceProductPolicyListByProductOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductPolicyListByProductResponse = PolicyCollection; + +// @public +export interface WorkspaceProductUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceProductUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceProductUpdateResponse = WorkspaceProductUpdateHeaders & ProductContract; + +// @public +export interface WorkspaceSubscription { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, parameters: SubscriptionCreateParameters, options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, ifMatch: string, options?: WorkspaceSubscriptionDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionGetOptionalParams): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionGetEntityTagOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceSubscriptionListOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionListSecretsOptionalParams): Promise; + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams): Promise; + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, workspaceId: string, sid: string, ifMatch: string, parameters: SubscriptionUpdateParameters, options?: WorkspaceSubscriptionUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceSubscriptionCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + ifMatch?: string; + notify?: boolean; +} + +// @public +export type WorkspaceSubscriptionCreateOrUpdateResponse = WorkspaceSubscriptionCreateOrUpdateHeaders & SubscriptionContract; + +// @public +export interface WorkspaceSubscriptionDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionGetEntityTagHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionGetEntityTagResponse = WorkspaceSubscriptionGetEntityTagHeaders; + +// @public +export interface WorkspaceSubscriptionGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionGetResponse = WorkspaceSubscriptionGetHeaders & SubscriptionContract; + +// @public +export interface WorkspaceSubscriptionListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionListNextResponse = SubscriptionCollection; + +// @public +export interface WorkspaceSubscriptionListOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceSubscriptionListResponse = SubscriptionCollection; + +// @public +export interface WorkspaceSubscriptionListSecretsHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSubscriptionListSecretsResponse = WorkspaceSubscriptionListSecretsHeaders & SubscriptionKeysContract; + +// @public +export interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceSubscriptionUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceSubscriptionUpdateOptionalParams extends coreClient.OperationOptions { + appType?: AppType; + notify?: boolean; +} + +// @public +export type WorkspaceSubscriptionUpdateResponse = WorkspaceSubscriptionUpdateHeaders & SubscriptionContract; + +// @public +export interface WorkspaceTag { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, parameters: TagCreateUpdateParameters, options?: WorkspaceTagCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, ifMatch: string, options?: WorkspaceTagDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagGetOptionalParams): Promise; + getEntityState(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagGetEntityStateOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, workspaceId: string, options?: WorkspaceTagListByServiceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, ifMatch: string, parameters: TagCreateUpdateParameters, options?: WorkspaceTagUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspaceTagApiLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, parameters: TagApiLinkContract, options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, options?: WorkspaceTagApiLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, apiLinkId: string, options?: WorkspaceTagApiLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagApiLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +// @public +export interface WorkspaceTagApiLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagApiLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagApiLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkGetResponse = WorkspaceTagApiLinkGetHeaders & TagApiLinkContract; + +// @public +export interface WorkspaceTagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagApiLinkListByProductNextResponse = TagApiLinkCollection; + +// @public +export interface WorkspaceTagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagApiLinkListByProductResponse = TagApiLinkCollection; + +// @public +export interface WorkspaceTagCreateOrUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type WorkspaceTagCreateOrUpdateResponse = WorkspaceTagCreateOrUpdateHeaders & TagContract; + +// @public +export interface WorkspaceTagDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagGetEntityStateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagGetEntityStateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagGetEntityStateResponse = WorkspaceTagGetEntityStateHeaders; + +// @public +export interface WorkspaceTagGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagGetResponse = WorkspaceTagGetHeaders & TagContract; + +// @public +export interface WorkspaceTagListByServiceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagListByServiceNextResponse = TagCollection; + +// @public +export interface WorkspaceTagListByServiceOptionalParams extends coreClient.OperationOptions { + filter?: string; + scope?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagListByServiceResponse = TagCollection; + +// @public +export interface WorkspaceTagOperationLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, parameters: TagOperationLinkContract, options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, options?: WorkspaceTagOperationLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, operationLinkId: string, options?: WorkspaceTagOperationLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagOperationLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; + +// @public +export interface WorkspaceTagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagOperationLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagOperationLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkGetResponse = WorkspaceTagOperationLinkGetHeaders & TagOperationLinkContract; + +// @public +export interface WorkspaceTagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagOperationLinkListByProductNextResponse = TagOperationLinkCollection; + +// @public +export interface WorkspaceTagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagOperationLinkListByProductResponse = TagOperationLinkCollection; + +// @public +export interface WorkspaceTagProductLink { + createOrUpdate(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, parameters: TagProductLinkContract, options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, options?: WorkspaceTagProductLinkDeleteOptionalParams): Promise; + get(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, productLinkId: string, options?: WorkspaceTagProductLinkGetOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, workspaceId: string, tagId: string, options?: WorkspaceTagProductLinkListByProductOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkCreateOrUpdateResponse = TagProductLinkContract; + +// @public +export interface WorkspaceTagProductLinkDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceTagProductLinkGetHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagProductLinkGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkGetResponse = WorkspaceTagProductLinkGetHeaders & TagProductLinkContract; + +// @public +export interface WorkspaceTagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagProductLinkListByProductNextResponse = TagProductLinkCollection; + +// @public +export interface WorkspaceTagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { + filter?: string; + skip?: number; + top?: number; +} + +// @public +export type WorkspaceTagProductLinkListByProductResponse = TagProductLinkCollection; + +// @public +export interface WorkspaceTagUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceTagUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceTagUpdateResponse = WorkspaceTagUpdateHeaders & TagContract; + +// @public +export interface WorkspaceUpdateHeaders { + eTag?: string; +} + +// @public +export interface WorkspaceUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceUpdateResponse = WorkspaceUpdateHeaders & WorkspaceContract; + // @public export interface X509CertificateName { issuerCertificateThumbprint?: string; diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts index 7907189618aa..2ad60d5cd45d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -42,11 +42,11 @@ import { ApiWikisImpl, ApiExportImpl, ApiVersionSetImpl, - AuthorizationServerImpl, AuthorizationProviderImpl, AuthorizationImpl, AuthorizationLoginLinksImpl, AuthorizationAccessPolicyImpl, + AuthorizationServerImpl, BackendImpl, CacheImpl, CertificateImpl, @@ -57,6 +57,7 @@ import { ApiManagementServiceSkusImpl, ApiManagementServiceImpl, DiagnosticImpl, + DocumentationImpl, EmailTemplateImpl, GatewayImpl, GatewayHostnameConfigurationImpl, @@ -91,6 +92,8 @@ import { ProductPolicyImpl, ProductWikiImpl, ProductWikisImpl, + ProductApiLinkImpl, + ProductGroupLinkImpl, QuotaByCounterKeysImpl, QuotaByPeriodKeysImpl, RegionImpl, @@ -100,6 +103,9 @@ import { ApiManagementSkusImpl, SubscriptionImpl, TagResourceImpl, + TagApiLinkImpl, + TagOperationLinkImpl, + TagProductLinkImpl, TenantAccessImpl, TenantAccessGitImpl, TenantConfigurationImpl, @@ -108,7 +114,34 @@ import { UserSubscriptionImpl, UserIdentitiesImpl, UserConfirmationPasswordImpl, - DocumentationImpl + WorkspaceImpl, + WorkspacePolicyImpl, + WorkspaceNamedValueImpl, + WorkspaceGlobalSchemaImpl, + WorkspaceNotificationImpl, + WorkspaceNotificationRecipientUserImpl, + WorkspaceNotificationRecipientEmailImpl, + WorkspacePolicyFragmentImpl, + WorkspaceGroupImpl, + WorkspaceGroupUserImpl, + WorkspaceSubscriptionImpl, + WorkspaceApiVersionSetImpl, + WorkspaceApiImpl, + WorkspaceApiRevisionImpl, + WorkspaceApiReleaseImpl, + WorkspaceApiOperationImpl, + WorkspaceApiOperationPolicyImpl, + WorkspaceApiPolicyImpl, + WorkspaceApiSchemaImpl, + WorkspaceProductImpl, + WorkspaceProductApiLinkImpl, + WorkspaceProductGroupLinkImpl, + WorkspaceProductPolicyImpl, + WorkspaceTagImpl, + WorkspaceTagApiLinkImpl, + WorkspaceTagOperationLinkImpl, + WorkspaceTagProductLinkImpl, + WorkspaceApiExportImpl } from "./operations"; import { Api, @@ -132,11 +165,11 @@ import { ApiWikis, ApiExport, ApiVersionSet, - AuthorizationServer, AuthorizationProvider, Authorization, AuthorizationLoginLinks, AuthorizationAccessPolicy, + AuthorizationServer, Backend, Cache, Certificate, @@ -147,6 +180,7 @@ import { ApiManagementServiceSkus, ApiManagementService, Diagnostic, + Documentation, EmailTemplate, Gateway, GatewayHostnameConfiguration, @@ -181,6 +215,8 @@ import { ProductPolicy, ProductWiki, ProductWikis, + ProductApiLink, + ProductGroupLink, QuotaByCounterKeys, QuotaByPeriodKeys, Region, @@ -190,6 +226,9 @@ import { ApiManagementSkus, Subscription, TagResource, + TagApiLink, + TagOperationLink, + TagProductLink, TenantAccess, TenantAccessGit, TenantConfiguration, @@ -198,7 +237,34 @@ import { UserSubscription, UserIdentities, UserConfirmationPassword, - Documentation + Workspace, + WorkspacePolicy, + WorkspaceNamedValue, + WorkspaceGlobalSchema, + WorkspaceNotification, + WorkspaceNotificationRecipientUser, + WorkspaceNotificationRecipientEmail, + WorkspacePolicyFragment, + WorkspaceGroup, + WorkspaceGroupUser, + WorkspaceSubscription, + WorkspaceApiVersionSet, + WorkspaceApi, + WorkspaceApiRevision, + WorkspaceApiRelease, + WorkspaceApiOperation, + WorkspaceApiOperationPolicy, + WorkspaceApiPolicy, + WorkspaceApiSchema, + WorkspaceProduct, + WorkspaceProductApiLink, + WorkspaceProductGroupLink, + WorkspaceProductPolicy, + WorkspaceTag, + WorkspaceTagApiLink, + WorkspaceTagOperationLink, + WorkspaceTagProductLink, + WorkspaceApiExport } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -217,7 +283,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the ApiManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( @@ -255,7 +321,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-apimanagement/9.1.0`; + const packageDetails = `azsdk-js-arm-apimanagement/9.2.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -308,7 +374,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-08-01"; + this.apiVersion = options.apiVersion || "2023-03-01-preview"; this.api = new ApiImpl(this); this.apiRevision = new ApiRevisionImpl(this); this.apiRelease = new ApiReleaseImpl(this); @@ -330,11 +396,11 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiWikis = new ApiWikisImpl(this); this.apiExport = new ApiExportImpl(this); this.apiVersionSet = new ApiVersionSetImpl(this); - this.authorizationServer = new AuthorizationServerImpl(this); this.authorizationProvider = new AuthorizationProviderImpl(this); this.authorization = new AuthorizationImpl(this); this.authorizationLoginLinks = new AuthorizationLoginLinksImpl(this); this.authorizationAccessPolicy = new AuthorizationAccessPolicyImpl(this); + this.authorizationServer = new AuthorizationServerImpl(this); this.backend = new BackendImpl(this); this.cache = new CacheImpl(this); this.certificate = new CertificateImpl(this); @@ -345,6 +411,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiManagementServiceSkus = new ApiManagementServiceSkusImpl(this); this.apiManagementService = new ApiManagementServiceImpl(this); this.diagnostic = new DiagnosticImpl(this); + this.documentation = new DocumentationImpl(this); this.emailTemplate = new EmailTemplateImpl(this); this.gateway = new GatewayImpl(this); this.gatewayHostnameConfiguration = new GatewayHostnameConfigurationImpl( @@ -387,6 +454,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.productPolicy = new ProductPolicyImpl(this); this.productWiki = new ProductWikiImpl(this); this.productWikis = new ProductWikisImpl(this); + this.productApiLink = new ProductApiLinkImpl(this); + this.productGroupLink = new ProductGroupLinkImpl(this); this.quotaByCounterKeys = new QuotaByCounterKeysImpl(this); this.quotaByPeriodKeys = new QuotaByPeriodKeysImpl(this); this.region = new RegionImpl(this); @@ -396,6 +465,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.apiManagementSkus = new ApiManagementSkusImpl(this); this.subscription = new SubscriptionImpl(this); this.tagResource = new TagResourceImpl(this); + this.tagApiLink = new TagApiLinkImpl(this); + this.tagOperationLink = new TagOperationLinkImpl(this); + this.tagProductLink = new TagProductLinkImpl(this); this.tenantAccess = new TenantAccessImpl(this); this.tenantAccessGit = new TenantAccessGitImpl(this); this.tenantConfiguration = new TenantConfigurationImpl(this); @@ -404,7 +476,40 @@ export class ApiManagementClient extends coreClient.ServiceClient { this.userSubscription = new UserSubscriptionImpl(this); this.userIdentities = new UserIdentitiesImpl(this); this.userConfirmationPassword = new UserConfirmationPasswordImpl(this); - this.documentation = new DocumentationImpl(this); + this.workspace = new WorkspaceImpl(this); + this.workspacePolicy = new WorkspacePolicyImpl(this); + this.workspaceNamedValue = new WorkspaceNamedValueImpl(this); + this.workspaceGlobalSchema = new WorkspaceGlobalSchemaImpl(this); + this.workspaceNotification = new WorkspaceNotificationImpl(this); + this.workspaceNotificationRecipientUser = new WorkspaceNotificationRecipientUserImpl( + this + ); + this.workspaceNotificationRecipientEmail = new WorkspaceNotificationRecipientEmailImpl( + this + ); + this.workspacePolicyFragment = new WorkspacePolicyFragmentImpl(this); + this.workspaceGroup = new WorkspaceGroupImpl(this); + this.workspaceGroupUser = new WorkspaceGroupUserImpl(this); + this.workspaceSubscription = new WorkspaceSubscriptionImpl(this); + this.workspaceApiVersionSet = new WorkspaceApiVersionSetImpl(this); + this.workspaceApi = new WorkspaceApiImpl(this); + this.workspaceApiRevision = new WorkspaceApiRevisionImpl(this); + this.workspaceApiRelease = new WorkspaceApiReleaseImpl(this); + this.workspaceApiOperation = new WorkspaceApiOperationImpl(this); + this.workspaceApiOperationPolicy = new WorkspaceApiOperationPolicyImpl( + this + ); + this.workspaceApiPolicy = new WorkspaceApiPolicyImpl(this); + this.workspaceApiSchema = new WorkspaceApiSchemaImpl(this); + this.workspaceProduct = new WorkspaceProductImpl(this); + this.workspaceProductApiLink = new WorkspaceProductApiLinkImpl(this); + this.workspaceProductGroupLink = new WorkspaceProductGroupLinkImpl(this); + this.workspaceProductPolicy = new WorkspaceProductPolicyImpl(this); + this.workspaceTag = new WorkspaceTagImpl(this); + this.workspaceTagApiLink = new WorkspaceTagApiLinkImpl(this); + this.workspaceTagOperationLink = new WorkspaceTagOperationLinkImpl(this); + this.workspaceTagProductLink = new WorkspaceTagProductLinkImpl(this); + this.workspaceApiExport = new WorkspaceApiExportImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -560,11 +665,11 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiWikis: ApiWikis; apiExport: ApiExport; apiVersionSet: ApiVersionSet; - authorizationServer: AuthorizationServer; authorizationProvider: AuthorizationProvider; authorization: Authorization; authorizationLoginLinks: AuthorizationLoginLinks; authorizationAccessPolicy: AuthorizationAccessPolicy; + authorizationServer: AuthorizationServer; backend: Backend; cache: Cache; certificate: Certificate; @@ -575,6 +680,7 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiManagementServiceSkus: ApiManagementServiceSkus; apiManagementService: ApiManagementService; diagnostic: Diagnostic; + documentation: Documentation; emailTemplate: EmailTemplate; gateway: Gateway; gatewayHostnameConfiguration: GatewayHostnameConfiguration; @@ -609,6 +715,8 @@ export class ApiManagementClient extends coreClient.ServiceClient { productPolicy: ProductPolicy; productWiki: ProductWiki; productWikis: ProductWikis; + productApiLink: ProductApiLink; + productGroupLink: ProductGroupLink; quotaByCounterKeys: QuotaByCounterKeys; quotaByPeriodKeys: QuotaByPeriodKeys; region: Region; @@ -618,6 +726,9 @@ export class ApiManagementClient extends coreClient.ServiceClient { apiManagementSkus: ApiManagementSkus; subscription: Subscription; tagResource: TagResource; + tagApiLink: TagApiLink; + tagOperationLink: TagOperationLink; + tagProductLink: TagProductLink; tenantAccess: TenantAccess; tenantAccessGit: TenantAccessGit; tenantConfiguration: TenantConfiguration; @@ -626,7 +737,34 @@ export class ApiManagementClient extends coreClient.ServiceClient { userSubscription: UserSubscription; userIdentities: UserIdentities; userConfirmationPassword: UserConfirmationPassword; - documentation: Documentation; + workspace: Workspace; + workspacePolicy: WorkspacePolicy; + workspaceNamedValue: WorkspaceNamedValue; + workspaceGlobalSchema: WorkspaceGlobalSchema; + workspaceNotification: WorkspaceNotification; + workspaceNotificationRecipientUser: WorkspaceNotificationRecipientUser; + workspaceNotificationRecipientEmail: WorkspaceNotificationRecipientEmail; + workspacePolicyFragment: WorkspacePolicyFragment; + workspaceGroup: WorkspaceGroup; + workspaceGroupUser: WorkspaceGroupUser; + workspaceSubscription: WorkspaceSubscription; + workspaceApiVersionSet: WorkspaceApiVersionSet; + workspaceApi: WorkspaceApi; + workspaceApiRevision: WorkspaceApiRevision; + workspaceApiRelease: WorkspaceApiRelease; + workspaceApiOperation: WorkspaceApiOperation; + workspaceApiOperationPolicy: WorkspaceApiOperationPolicy; + workspaceApiPolicy: WorkspaceApiPolicy; + workspaceApiSchema: WorkspaceApiSchema; + workspaceProduct: WorkspaceProduct; + workspaceProductApiLink: WorkspaceProductApiLink; + workspaceProductGroupLink: WorkspaceProductGroupLink; + workspaceProductPolicy: WorkspaceProductPolicy; + workspaceTag: WorkspaceTag; + workspaceTagApiLink: WorkspaceTagApiLink; + workspaceTagOperationLink: WorkspaceTagOperationLink; + workspaceTagProductLink: WorkspaceTagProductLink; + workspaceApiExport: WorkspaceApiExport; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); diff --git a/sdk/apimanagement/arm-apimanagement/src/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index 4e69c371d1f3..e37688254c28 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/index.ts @@ -229,7 +229,7 @@ export interface ApiCreateOrUpdateParameter { apiVersionSet?: ApiVersionSetContractDetails; /** Content value when Importing an API. */ value?: string; - /** Format of the Content in which the API is getting imported. */ + /** Format of the Content in which the API is getting imported. New formats can be added in the future */ format?: ContentFormat; /** Criteria to limit import of WSDL to a subset of the document. */ wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; @@ -239,6 +239,7 @@ export interface ApiCreateOrUpdateParameter { * * `soap` creates a SOAP pass-through API * * `websocket` creates websocket API * * `graphql` creates GraphQL API. + * New types can be added in the future. */ soapApiType?: SoapApiType; /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ @@ -891,58 +892,6 @@ export interface ApiVersionSetUpdateParameters { versioningScheme?: VersioningScheme; } -/** Paged OAuth2 Authorization Servers list representation. */ -export interface AuthorizationServerCollection { - /** Page values. */ - value?: AuthorizationServerContract[]; - /** Total record count number across all pages. */ - count?: number; - /** Next page link if any. */ - nextLink?: string; -} - -/** External OAuth authorization server Update settings contract. */ -export interface AuthorizationServerContractBaseProperties { - /** Description of the authorization server. Can contain HTML formatting tags. */ - description?: string; - /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ - authorizationMethods?: AuthorizationMethod[]; - /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ - clientAuthenticationMethod?: ClientAuthenticationMethod[]; - /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ - tokenBodyParameters?: TokenBodyParameterContract[]; - /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ - tokenEndpoint?: string; - /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ - supportState?: boolean; - /** Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. */ - defaultScope?: string; - /** Specifies the mechanism by which access token is passed to the API. */ - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ - resourceOwnerUsername?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ - resourceOwnerPassword?: string; -} - -/** OAuth acquire token request body parameter (www-url-form-encoded). */ -export interface TokenBodyParameterContract { - /** body parameter name. */ - name: string; - /** body parameter value. */ - value: string; -} - -/** OAuth Server Secrets Contract. */ -export interface AuthorizationServerSecretsContract { - /** oAuth Authorization Server Secrets. */ - clientSecret?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ - resourceOwnerUsername?: string; - /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ - resourceOwnerPassword?: string; -} - /** Paged Authorization Provider list representation. */ export interface AuthorizationProviderCollection { /** Page values. */ @@ -1013,6 +962,58 @@ export interface AuthorizationAccessPolicyCollection { nextLink?: string; } +/** Paged OAuth2 Authorization Servers list representation. */ +export interface AuthorizationServerCollection { + /** Page values. */ + value?: AuthorizationServerContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** External OAuth authorization server Update settings contract. */ +export interface AuthorizationServerContractBaseProperties { + /** Description of the authorization server. Can contain HTML formatting tags. */ + description?: string; + /** HTTP verbs supported by the authorization endpoint. GET must be always present. POST is optional. */ + authorizationMethods?: AuthorizationMethod[]; + /** Method of authentication supported by the token endpoint of this authorization server. Possible values are Basic and/or Body. When Body is specified, client credentials and other parameters are passed within the request body in the application/x-www-form-urlencoded format. */ + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + /** Additional parameters required by the token endpoint of this authorization server represented as an array of JSON objects with name and value string properties, i.e. {"name" : "name value", "value": "a value"}. */ + tokenBodyParameters?: TokenBodyParameterContract[]; + /** OAuth token endpoint. Contains absolute URI to entity being referenced. */ + tokenEndpoint?: string; + /** If true, authorization server will include state parameter from the authorization request to its response. Client may use state parameter to raise protocol security. */ + supportState?: boolean; + /** Access token scope that is going to be requested by default. Can be overridden at the API level. Should be provided in the form of a string containing space-delimited values. */ + defaultScope?: string; + /** Specifies the mechanism by which access token is passed to the API. */ + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ + resourceOwnerUsername?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ + resourceOwnerPassword?: string; +} + +/** OAuth acquire token request body parameter (www-url-form-encoded). */ +export interface TokenBodyParameterContract { + /** body parameter name. */ + name: string; + /** body parameter value. */ + value: string; +} + +/** OAuth Server Secrets Contract. */ +export interface AuthorizationServerSecretsContract { + /** oAuth Authorization Server Secrets. */ + clientSecret?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username. */ + resourceOwnerUsername?: string; + /** Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password. */ + resourceOwnerPassword?: string; +} + /** Paged Backend list representation. */ export interface BackendCollection { /** Backend values. */ @@ -1039,6 +1040,8 @@ export interface BackendBaseParameters { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; } /** Properties specific to the Backend Type. */ @@ -1111,6 +1114,44 @@ export interface BackendTlsProperties { validateCertificateName?: boolean; } +/** The configuration of the backend circuit breaker */ +export interface BackendCircuitBreaker { + /** The rules for tripping the backend. */ + rules?: CircuitBreakerRule[]; +} + +/** Rule configuration to trip the backend. */ +export interface CircuitBreakerRule { + /** The rule name. */ + name?: string; + /** The conditions for tripping the circuit breaker. */ + failureCondition?: CircuitBreakerFailureCondition; + /** The duration for which the circuit will be tripped. */ + tripDuration?: string; +} + +/** The trip conditions of the circuit breaker */ +export interface CircuitBreakerFailureCondition { + /** The threshold for opening the circuit. */ + count?: number; + /** The threshold for opening the circuit. */ + percentage?: number; + /** The interval during which the failures are counted. */ + interval?: string; + /** The status code ranges which are considered as failure. */ + statusCodeRanges?: FailureStatusCodeRange[]; + /** The error reasons which are considered as failure. */ + errorReasons?: string[]; +} + +/** The failure http status code range */ +export interface FailureStatusCodeRange { + /** The minimum http status code. */ + min?: number; + /** The maximum http status code. */ + max?: number; +} + /** Backend update parameters. */ export interface BackendUpdateParameters { /** Backend Title. */ @@ -1127,6 +1168,8 @@ export interface BackendUpdateParameters { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; /** Runtime Url of the Backend. */ url?: string; /** Backend communication protocol. */ @@ -1559,6 +1602,8 @@ export interface ApiManagementServiceBaseProperties { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -1591,6 +1636,10 @@ export interface ApiManagementServiceBaseProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; } /** Custom hostname configuration. */ @@ -1629,6 +1678,12 @@ export interface CertificateInformation { subject: string; } +/** Information regarding the Configuration API of the API Management service. */ +export interface ConfigurationApi { + /** Indication whether or not the legacy Configuration API (v1) should be exposed on the API Management service. Value is optional but must be 'Enabled' or 'Disabled'. If 'Disabled', legacy Configuration API (v1) will not be available for self-hosted gateways. Default value is 'Enabled' */ + legacyApi?: LegacyApiState; +} + /** Configuration of a virtual network to which API Management service is deployed. */ export interface VirtualNetworkConfiguration { /** @@ -1821,6 +1876,12 @@ export interface ApimResource { tags?: { [propertyName: string]: string }; } +/** Describes an available API Management SKU. */ +export interface MigrateToStv2Contract { + /** Mode of Migration to stv2. Default is PreserveIp. */ + mode?: MigrateToStv2Mode; +} + /** The response of the List API Management services operation. */ export interface ApiManagementServiceListResult { /** Result of the List API Management services operation. */ @@ -1872,6 +1933,28 @@ export interface ApiManagementServiceApplyNetworkConfigurationParameters { location?: string; } +/** Paged Documentation list representation. */ +export interface DocumentationCollection { + /** + * Page values. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: DocumentationContract[]; + /** + * Next page link if any. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Documentation update contract details. */ +export interface DocumentationUpdateContract { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: string; +} + /** Paged email template list representation. */ export interface EmailTemplateCollection { /** Page values. */ @@ -1993,6 +2076,28 @@ export interface GatewayCertificateAuthorityCollection { readonly nextLink?: string; } +/** List debug credentials properties. */ +export interface GatewayListDebugCredentialsContract { + /** Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used. */ + credentialsExpireAfter?: string; + /** Purposes of debug credential. */ + purposes: GatewayListDebugCredentialsContractPurpose[]; + /** Full resource Id of an API. */ + apiId: string; +} + +/** Gateway debug credentials. */ +export interface GatewayDebugCredentialsContract { + /** Gateway debug token. */ + token?: string; +} + +/** List trace properties. */ +export interface GatewayListTraceContract { + /** Trace id. */ + traceId?: string; +} + /** Paged Group list representation. */ export interface GroupCollection { /** Page values. */ @@ -2534,6 +2639,26 @@ export interface SubscriptionCollection { nextLink?: string; } +/** Paged Product-API link list representation. */ +export interface ProductApiLinkCollection { + /** Page values. */ + value?: ProductApiLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Product-group link list representation. */ +export interface ProductGroupLinkCollection { + /** Page values. */ + value?: ProductGroupLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged Quota Counter list representation. */ export interface QuotaCounterCollection { /** Quota counter values. */ @@ -3022,6 +3147,36 @@ export interface TagCreateUpdateParameters { displayName?: string; } +/** Paged Tag-API link list representation. */ +export interface TagApiLinkCollection { + /** Page values. */ + value?: TagApiLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Tag-operation link list representation. */ +export interface TagOperationLinkCollection { + /** Page values. */ + value?: TagOperationLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + +/** Paged Tag-product link list representation. */ +export interface TagProductLinkCollection { + /** Page values. */ + value?: TagProductLinkContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; +} + /** Paged AccessInformation list representation. */ export interface AccessInformationCollection { /** @@ -3169,26 +3324,14 @@ export interface UserTokenResult { value?: string; } -/** Paged Documentation list representation. */ -export interface DocumentationCollection { - /** - * Page values. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: DocumentationContract[]; - /** - * Next page link if any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Documentation update contract details. */ -export interface DocumentationUpdateContract { - /** documentation title. */ - title?: string; - /** Markdown documentation content. */ - content?: string; +/** Paged workspace list representation. */ +export interface WorkspaceCollection { + /** Page values. */ + value?: WorkspaceContract[]; + /** Total record count number across all pages. */ + count?: number; + /** Next page link if any. */ + nextLink?: string; } /** Object used to create an API Revision or Version based on an existing API Revision */ @@ -3554,6 +3697,8 @@ export interface ApiManagementServiceResource extends ApimResource { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -3586,6 +3731,10 @@ export interface ApiManagementServiceResource extends ApimResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; /** Publisher email. */ publisherEmail: string; /** Publisher name. */ @@ -3668,6 +3817,8 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { publicIpAddressId?: string; /** Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** Configuration API configuration of the API Management service. */ + configurationApi?: ConfigurationApi; /** Virtual network configuration of the API Management service. */ virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** Additional datacenter locations of the API Management service. */ @@ -3700,6 +3851,10 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly platformVersion?: PlatformVersion; + /** Status of legacy portal in the API Management service. */ + legacyPortalStatus?: LegacyPortalStatus; + /** Status of developer portal in this API Management service. */ + developerPortalStatus?: DeveloperPortalStatus; /** Publisher email. */ publisherEmail?: string; /** Publisher name. */ @@ -3820,7 +3975,7 @@ export interface NamedValueUpdateParameterProperties export interface ApiCreateOrUpdateProperties extends ApiContractProperties { /** Content value when Importing an API. */ value?: string; - /** Format of the Content in which the API is getting imported. */ + /** Format of the Content in which the API is getting imported. New formats can be added in the future */ format?: ContentFormat; /** Criteria to limit import of WSDL to a subset of the document. */ wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; @@ -3830,6 +3985,7 @@ export interface ApiCreateOrUpdateProperties extends ApiContractProperties { * * `soap` creates a SOAP pass-through API * * `websocket` creates websocket API * * `graphql` creates GraphQL API. + * New types can be added in the future. */ soapApiType?: SoapApiType; /** Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query' */ @@ -3967,7 +4123,7 @@ export interface ProductContract extends ProxyResource { /** API Schema Contract details. */ export interface SchemaContract extends ProxyResource { - /** Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`. */ + /** Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use `application/vnd.oai.openapi.components+json`
- `WADL Schema` use `application/vnd.ms-azure-apim.wadl.grammars+xml`
- `OData Schema` use `application/vnd.ms-azure-apim.odata.schema`. */ contentType?: string; /** Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI. */ value?: string; @@ -4071,6 +4227,38 @@ export interface ApiVersionSetContract extends ProxyResource { versioningScheme?: VersioningScheme; } +/** Authorization Provider contract. */ +export interface AuthorizationProviderContract extends ProxyResource { + /** Authorization Provider name. Must be 1 to 300 characters long. */ + displayName?: string; + /** Identity provider name. Must be 1 to 300 characters long. */ + identityProvider?: string; + /** OAuth2 settings */ + oauth2?: AuthorizationProviderOAuth2Settings; +} + +/** Authorization contract. */ +export interface AuthorizationContract extends ProxyResource { + /** Authorization type options */ + authorizationType?: AuthorizationType; + /** OAuth2 grant type options */ + oAuth2GrantType?: OAuth2GrantType; + /** Authorization parameters */ + parameters?: { [propertyName: string]: string }; + /** Authorization error details. */ + error?: AuthorizationError; + /** Status of the Authorization */ + status?: string; +} + +/** Authorization access policy contract. */ +export interface AuthorizationAccessPolicyContract extends ProxyResource { + /** The Tenant Id */ + tenantId?: string; + /** The Object Id */ + objectId?: string; +} + /** External OAuth authorization server settings. */ export interface AuthorizationServerContract extends ProxyResource { /** Description of the authorization server. Can contain HTML formatting tags. */ @@ -4151,38 +4339,6 @@ export interface AuthorizationServerUpdateContract extends ProxyResource { clientSecret?: string; } -/** Authorization Provider contract. */ -export interface AuthorizationProviderContract extends ProxyResource { - /** Authorization Provider name. Must be 1 to 300 characters long. */ - displayName?: string; - /** Identity provider name. Must be 1 to 300 characters long. */ - identityProvider?: string; - /** OAuth2 settings */ - oauth2?: AuthorizationProviderOAuth2Settings; -} - -/** Authorization contract. */ -export interface AuthorizationContract extends ProxyResource { - /** Authorization type options */ - authorizationType?: AuthorizationType; - /** OAuth2 grant type options */ - oAuth2GrantType?: OAuth2GrantType; - /** Authorization parameters */ - parameters?: { [propertyName: string]: string }; - /** Authorization error details. */ - error?: AuthorizationError; - /** Status of the Authorization */ - status?: string; -} - -/** Authorization access policy contract. */ -export interface AuthorizationAccessPolicyContract extends ProxyResource { - /** The Tenant Id */ - tenantId?: string; - /** The Object Id */ - objectId?: string; -} - /** Backend details. */ export interface BackendContract extends ProxyResource { /** Backend Title. */ @@ -4199,6 +4355,8 @@ export interface BackendContract extends ProxyResource { proxy?: BackendProxyContract; /** Backend TLS Properties */ tls?: BackendTlsProperties; + /** Backend Circuit Breaker Configuration */ + circuitBreaker?: BackendCircuitBreaker; /** Runtime Url of the Backend. */ url?: string; /** Backend communication protocol. */ @@ -4273,6 +4431,14 @@ export interface DeletedServiceContract extends ProxyResource { deletionDate?: Date; } +/** Markdown documentation details. */ +export interface DocumentationContract extends ProxyResource { + /** documentation title. */ + title?: string; + /** Markdown documentation content. */ + content?: string; +} + /** Email Template details. */ export interface EmailTemplateContract extends ProxyResource { /** Subject of the Template. */ @@ -4664,6 +4830,18 @@ export interface SubscriptionContract extends ProxyResource { allowTracing?: boolean; } +/** Product-API link details. */ +export interface ProductApiLinkContract extends ProxyResource { + /** Full resource Id of an API. */ + apiId?: string; +} + +/** Product-group link details. */ +export interface ProductGroupLinkContract extends ProxyResource { + /** Full resource Id of a group. */ + groupId?: string; +} + /** Global Schema Contract details. */ export interface GlobalSchemaContract extends ProxyResource { /** Schema Type. Immutable. */ @@ -4682,6 +4860,24 @@ export interface TenantSettingsContract extends ProxyResource { settings?: { [propertyName: string]: string }; } +/** Tag-API link details. */ +export interface TagApiLinkContract extends ProxyResource { + /** Full resource Id of an API. */ + apiId?: string; +} + +/** Tag-operation link details. */ +export interface TagOperationLinkContract extends ProxyResource { + /** Full resource Id of an API operation. */ + operationId?: string; +} + +/** Tag-product link details. */ +export interface TagProductLinkContract extends ProxyResource { + /** Full resource Id of a product. */ + productId?: string; +} + /** Tenant Settings. */ export interface AccessInformationContract extends ProxyResource { /** Access Information type ('access' or 'gitAccess') */ @@ -4745,12 +4941,12 @@ export interface TenantConfigurationSyncStateContract extends ProxyResource { lastOperationId?: string; } -/** Markdown documentation details. */ -export interface DocumentationContract extends ProxyResource { - /** documentation title. */ - title?: string; - /** Markdown documentation content. */ - content?: string; +/** Workspace details. */ +export interface WorkspaceContract extends ProxyResource { + /** Name of the workspace. */ + displayName?: string; + /** Description of the workspace. */ + description?: string; } /** Long Running Git Resolver Results. */ @@ -5164,80 +5360,80 @@ export interface ApiVersionSetUpdateHeaders { eTag?: string; } -/** Defines headers for AuthorizationServer_getEntityTag operation. */ -export interface AuthorizationServerGetEntityTagHeaders { +/** Defines headers for AuthorizationProvider_get operation. */ +export interface AuthorizationProviderGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for AuthorizationServer_get operation. */ -export interface AuthorizationServerGetHeaders { +/** Defines headers for AuthorizationProvider_createOrUpdate operation. */ +export interface AuthorizationProviderCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for AuthorizationServer_createOrUpdate operation. */ -export interface AuthorizationServerCreateOrUpdateHeaders { +/** Defines headers for Authorization_get operation. */ +export interface AuthorizationGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for AuthorizationServer_update operation. */ -export interface AuthorizationServerUpdateHeaders { +/** Defines headers for Authorization_createOrUpdate operation. */ +export interface AuthorizationCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for AuthorizationServer_listSecrets operation. */ -export interface AuthorizationServerListSecretsHeaders { +/** Defines headers for Authorization_confirmConsentCode operation. */ +export interface AuthorizationConfirmConsentCodeHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for AuthorizationProvider_get operation. */ -export interface AuthorizationProviderGetHeaders { +/** Defines headers for AuthorizationLoginLinks_post operation. */ +export interface AuthorizationLoginLinksPostHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for AuthorizationProvider_createOrUpdate operation. */ -export interface AuthorizationProviderCreateOrUpdateHeaders { +/** Defines headers for AuthorizationAccessPolicy_get operation. */ +export interface AuthorizationAccessPolicyGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Authorization_get operation. */ -export interface AuthorizationGetHeaders { +/** Defines headers for AuthorizationAccessPolicy_createOrUpdate operation. */ +export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Authorization_createOrUpdate operation. */ -export interface AuthorizationCreateOrUpdateHeaders { +/** Defines headers for AuthorizationServer_getEntityTag operation. */ +export interface AuthorizationServerGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Authorization_confirmConsentCode operation. */ -export interface AuthorizationConfirmConsentCodeHeaders { +/** Defines headers for AuthorizationServer_get operation. */ +export interface AuthorizationServerGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for AuthorizationLoginLinks_post operation. */ -export interface AuthorizationLoginLinksPostHeaders { +/** Defines headers for AuthorizationServer_createOrUpdate operation. */ +export interface AuthorizationServerCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for AuthorizationAccessPolicy_get operation. */ -export interface AuthorizationAccessPolicyGetHeaders { +/** Defines headers for AuthorizationServer_update operation. */ +export interface AuthorizationServerUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for AuthorizationAccessPolicy_createOrUpdate operation. */ -export interface AuthorizationAccessPolicyCreateOrUpdateHeaders { +/** Defines headers for AuthorizationServer_listSecrets operation. */ +export interface AuthorizationServerListSecretsHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } @@ -5314,6 +5510,11 @@ export interface CertificateRefreshSecretHeaders { eTag?: string; } +/** Defines headers for ApiManagementClient_performConnectivityCheckAsync operation. */ +export interface ApiManagementClientPerformConnectivityCheckAsyncHeaders { + location?: string; +} + /** Defines headers for ContentType_get operation. */ export interface ContentTypeGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5359,6 +5560,18 @@ export interface ApiManagementServiceBackupHeaders { location?: string; } +/** Defines headers for ApiManagementService_update operation. */ +export interface ApiManagementServiceUpdateHeaders { + /** Location header */ + location?: string; +} + +/** Defines headers for ApiManagementService_delete operation. */ +export interface ApiManagementServiceDeleteHeaders { + /** Location header */ + location?: string; +} + /** Defines headers for ApiManagementService_migrateToStv2 operation. */ export interface ApiManagementServiceMigrateToStv2Headers { location?: string; @@ -5393,6 +5606,30 @@ export interface DiagnosticUpdateHeaders { eTag?: string; } +/** Defines headers for Documentation_getEntityTag operation. */ +export interface DocumentationGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_get operation. */ +export interface DocumentationGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_createOrUpdate operation. */ +export interface DocumentationCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for Documentation_update operation. */ +export interface DocumentationUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for EmailTemplate_getEntityTag operation. */ export interface EmailTemplateGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5741,6 +5978,18 @@ export interface DelegationSettingsGetHeaders { eTag?: string; } +/** Defines headers for PrivateEndpointConnection_createOrUpdate operation. */ +export interface PrivateEndpointConnectionCreateOrUpdateHeaders { + /** Location header */ + location?: string; +} + +/** Defines headers for PrivateEndpointConnection_delete operation. */ +export interface PrivateEndpointConnectionDeleteHeaders { + /** Location header */ + location?: string; +} + /** Defines headers for Product_getEntityTag operation. */ export interface ProductGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5819,6 +6068,18 @@ export interface ProductWikisListNextHeaders { eTag?: string; } +/** Defines headers for ProductApiLink_get operation. */ +export interface ProductApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for ProductGroupLink_get operation. */ +export interface ProductGroupLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for GlobalSchema_getEntityTag operation. */ export interface GlobalSchemaGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5873,6 +6134,24 @@ export interface SubscriptionListSecretsHeaders { eTag?: string; } +/** Defines headers for TagApiLink_get operation. */ +export interface TagApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for TagOperationLink_get operation. */ +export interface TagOperationLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for TagProductLink_get operation. */ +export interface TagProductLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + /** Defines headers for TenantAccess_getEntityTag operation. */ export interface TenantAccessGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5903,6 +6182,21 @@ export interface TenantAccessListSecretsHeaders { eTag?: string; } +/** Defines headers for TenantConfiguration_deploy operation. */ +export interface TenantConfigurationDeployHeaders { + location?: string; +} + +/** Defines headers for TenantConfiguration_save operation. */ +export interface TenantConfigurationSaveHeaders { + location?: string; +} + +/** Defines headers for TenantConfiguration_validate operation. */ +export interface TenantConfigurationValidateHeaders { + location?: string; +} + /** Defines headers for User_getEntityTag operation. */ export interface UserGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ @@ -5933,464 +6227,446 @@ export interface UserSubscriptionGetHeaders { eTag?: string; } -/** Defines headers for Documentation_getEntityTag operation. */ -export interface DocumentationGetEntityTagHeaders { +/** Defines headers for Workspace_getEntityTag operation. */ +export interface WorkspaceGetEntityTagHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_get operation. */ -export interface DocumentationGetHeaders { +/** Defines headers for Workspace_get operation. */ +export interface WorkspaceGetHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_createOrUpdate operation. */ -export interface DocumentationCreateOrUpdateHeaders { +/** Defines headers for Workspace_createOrUpdate operation. */ +export interface WorkspaceCreateOrUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Defines headers for Documentation_update operation. */ -export interface DocumentationUpdateHeaders { +/** Defines headers for Workspace_update operation. */ +export interface WorkspaceUpdateHeaders { /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ eTag?: string; } -/** Known values of {@link Protocol} that the service accepts. */ -export enum KnownProtocol { - /** Http */ - Http = "http", - /** Https */ - Https = "https", - /** Ws */ - Ws = "ws", - /** Wss */ - Wss = "wss" +/** Defines headers for WorkspacePolicy_getEntityTag operation. */ +export interface WorkspacePolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for Protocol. \ - * {@link KnownProtocol} can be used interchangeably with Protocol, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **http** \ - * **https** \ - * **ws** \ - * **wss** - */ -export type Protocol = string; +/** Defines headers for WorkspacePolicy_get operation. */ +export interface WorkspacePolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ApiVersionSetContractDetailsVersioningScheme} that the service accepts. */ -export enum KnownApiVersionSetContractDetailsVersioningScheme { - /** The API Version is passed in a path segment. */ - Segment = "Segment", - /** The API Version is passed in a query parameter. */ - Query = "Query", - /** The API Version is passed in a HTTP header. */ - Header = "Header" +/** Defines headers for WorkspacePolicy_createOrUpdate operation. */ +export interface WorkspacePolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ApiVersionSetContractDetailsVersioningScheme. \ - * {@link KnownApiVersionSetContractDetailsVersioningScheme} can be used interchangeably with ApiVersionSetContractDetailsVersioningScheme, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Segment**: The API Version is passed in a path segment. \ - * **Query**: The API Version is passed in a query parameter. \ - * **Header**: The API Version is passed in a HTTP header. - */ -export type ApiVersionSetContractDetailsVersioningScheme = string; +/** Defines headers for WorkspaceNamedValue_getEntityTag operation. */ +export interface WorkspaceNamedValueGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link BearerTokenSendingMethods} that the service accepts. */ -export enum KnownBearerTokenSendingMethods { - /** Access token will be transmitted in the Authorization header using Bearer schema */ - AuthorizationHeader = "authorizationHeader", - /** Access token will be transmitted as query parameters. */ - Query = "query" +/** Defines headers for WorkspaceNamedValue_get operation. */ +export interface WorkspaceNamedValueGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for BearerTokenSendingMethods. \ - * {@link KnownBearerTokenSendingMethods} can be used interchangeably with BearerTokenSendingMethods, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **authorizationHeader**: Access token will be transmitted in the Authorization header using Bearer schema \ - * **query**: Access token will be transmitted as query parameters. - */ -export type BearerTokenSendingMethods = string; +/** Defines headers for WorkspaceNamedValue_createOrUpdate operation. */ +export interface WorkspaceNamedValueCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ApiType} that the service accepts. */ -export enum KnownApiType { - /** Http */ - Http = "http", - /** Soap */ - Soap = "soap", - /** Websocket */ - Websocket = "websocket", - /** Graphql */ - Graphql = "graphql" +/** Defines headers for WorkspaceNamedValue_update operation. */ +export interface WorkspaceNamedValueUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ApiType. \ - * {@link KnownApiType} can be used interchangeably with ApiType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **http** \ - * **soap** \ - * **websocket** \ - * **graphql** - */ -export type ApiType = string; +/** Defines headers for WorkspaceNamedValue_listValue operation. */ +export interface WorkspaceNamedValueListValueHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ContentFormat} that the service accepts. */ -export enum KnownContentFormat { - /** The contents are inline and Content type is a WADL document. */ - WadlXml = "wadl-xml", - /** The WADL document is hosted on a publicly accessible internet address. */ - WadlLinkJson = "wadl-link-json", - /** The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. */ - SwaggerJson = "swagger-json", - /** The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. */ - SwaggerLinkJson = "swagger-link-json", - /** The contents are inline and the document is a WSDL\/Soap document. */ - Wsdl = "wsdl", - /** The WSDL document is hosted on a publicly accessible internet address. */ - WsdlLink = "wsdl-link", - /** The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. */ - Openapi = "openapi", - /** The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. */ - OpenapiJson = "openapi+json", - /** The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. */ - OpenapiLink = "openapi-link", - /** The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. */ - OpenapiJsonLink = "openapi+json-link", - /** The GraphQL API endpoint hosted on a publicly accessible internet address. */ - GraphqlLink = "graphql-link" +/** Defines headers for WorkspaceNamedValue_refreshSecret operation. */ +export interface WorkspaceNamedValueRefreshSecretHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ContentFormat. \ - * {@link KnownContentFormat} can be used interchangeably with ContentFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **wadl-xml**: The contents are inline and Content type is a WADL document. \ - * **wadl-link-json**: The WADL document is hosted on a publicly accessible internet address. \ - * **swagger-json**: The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. \ - * **swagger-link-json**: The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. \ - * **wsdl**: The contents are inline and the document is a WSDL\/Soap document. \ - * **wsdl-link**: The WSDL document is hosted on a publicly accessible internet address. \ - * **openapi**: The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. \ - * **openapi+json**: The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. \ - * **openapi-link**: The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. \ - * **openapi+json-link**: The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. \ - * **graphql-link**: The GraphQL API endpoint hosted on a publicly accessible internet address. - */ -export type ContentFormat = string; +/** Defines headers for WorkspaceGlobalSchema_getEntityTag operation. */ +export interface WorkspaceGlobalSchemaGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link SoapApiType} that the service accepts. */ -export enum KnownSoapApiType { - /** Imports a SOAP API having a RESTful front end. */ - SoapToRest = "http", - /** Imports the SOAP API having a SOAP front end. */ - SoapPassThrough = "soap", - /** Imports the API having a Websocket front end. */ - WebSocket = "websocket", - /** Imports the API having a GraphQL front end. */ - GraphQL = "graphql" +/** Defines headers for WorkspaceGlobalSchema_get operation. */ +export interface WorkspaceGlobalSchemaGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for SoapApiType. \ - * {@link KnownSoapApiType} can be used interchangeably with SoapApiType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **http**: Imports a SOAP API having a RESTful front end. \ - * **soap**: Imports the SOAP API having a SOAP front end. \ - * **websocket**: Imports the API having a Websocket front end. \ - * **graphql**: Imports the API having a GraphQL front end. - */ -export type SoapApiType = string; +/** Defines headers for WorkspaceGlobalSchema_createOrUpdate operation. */ +export interface WorkspaceGlobalSchemaCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link TranslateRequiredQueryParametersConduct} that the service accepts. */ -export enum KnownTranslateRequiredQueryParametersConduct { - /** Translates required query parameters to template ones. Is a default value */ - Template = "template", - /** Leaves required query parameters as they are (no translation done). */ - Query = "query" +/** Defines headers for WorkspacePolicyFragment_getEntityTag operation. */ +export interface WorkspacePolicyFragmentGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for TranslateRequiredQueryParametersConduct. \ - * {@link KnownTranslateRequiredQueryParametersConduct} can be used interchangeably with TranslateRequiredQueryParametersConduct, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **template**: Translates required query parameters to template ones. Is a default value \ - * **query**: Leaves required query parameters as they are (no translation done). - */ -export type TranslateRequiredQueryParametersConduct = string; +/** Defines headers for WorkspacePolicyFragment_get operation. */ +export interface WorkspacePolicyFragmentGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PolicyContentFormat} that the service accepts. */ -export enum KnownPolicyContentFormat { - /** The contents are inline and Content type is an XML document. */ - Xml = "xml", - /** The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. */ - XmlLink = "xml-link", - /** The contents are inline and Content type is a non XML encoded policy document. */ - Rawxml = "rawxml", - /** The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ - RawxmlLink = "rawxml-link" +/** Defines headers for WorkspacePolicyFragment_createOrUpdate operation. */ +export interface WorkspacePolicyFragmentCreateOrUpdateHeaders { + /** Current entity state version */ + eTag?: string; } -/** - * Defines values for PolicyContentFormat. \ - * {@link KnownPolicyContentFormat} can be used interchangeably with PolicyContentFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **xml**: The contents are inline and Content type is an XML document. \ - * **xml-link**: The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. \ - * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. \ - * **rawxml-link**: The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. - */ -export type PolicyContentFormat = string; +/** Defines headers for WorkspaceGroup_getEntityTag operation. */ +export interface WorkspaceGroupGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PolicyIdName} that the service accepts. */ -export enum KnownPolicyIdName { - /** Policy */ - Policy = "policy" +/** Defines headers for WorkspaceGroup_get operation. */ +export interface WorkspaceGroupGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for PolicyIdName. \ - * {@link KnownPolicyIdName} can be used interchangeably with PolicyIdName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **policy** - */ -export type PolicyIdName = string; +/** Defines headers for WorkspaceGroup_createOrUpdate operation. */ +export interface WorkspaceGroupCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link PolicyExportFormat} that the service accepts. */ -export enum KnownPolicyExportFormat { - /** The contents are inline and Content type is an XML document. */ - Xml = "xml", - /** The contents are inline and Content type is a non XML encoded policy document. */ - Rawxml = "rawxml" +/** Defines headers for WorkspaceGroup_update operation. */ +export interface WorkspaceGroupUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for PolicyExportFormat. \ - * {@link KnownPolicyExportFormat} can be used interchangeably with PolicyExportFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **xml**: The contents are inline and Content type is an XML document. \ - * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. - */ -export type PolicyExportFormat = string; +/** Defines headers for WorkspaceSubscription_getEntityTag operation. */ +export interface WorkspaceSubscriptionGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link AlwaysLog} that the service accepts. */ -export enum KnownAlwaysLog { - /** Always log all erroneous request regardless of sampling settings. */ - AllErrors = "allErrors" +/** Defines headers for WorkspaceSubscription_get operation. */ +export interface WorkspaceSubscriptionGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for AlwaysLog. \ - * {@link KnownAlwaysLog} can be used interchangeably with AlwaysLog, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **allErrors**: Always log all erroneous request regardless of sampling settings. - */ -export type AlwaysLog = string; +/** Defines headers for WorkspaceSubscription_createOrUpdate operation. */ +export interface WorkspaceSubscriptionCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link SamplingType} that the service accepts. */ -export enum KnownSamplingType { - /** Fixed-rate sampling. */ - Fixed = "fixed" +/** Defines headers for WorkspaceSubscription_update operation. */ +export interface WorkspaceSubscriptionUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for SamplingType. \ - * {@link KnownSamplingType} can be used interchangeably with SamplingType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **fixed**: Fixed-rate sampling. - */ -export type SamplingType = string; +/** Defines headers for WorkspaceSubscription_listSecrets operation. */ +export interface WorkspaceSubscriptionListSecretsHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link DataMaskingMode} that the service accepts. */ -export enum KnownDataMaskingMode { - /** Mask the value of an entity. */ - Mask = "Mask", - /** Hide the presence of an entity. */ - Hide = "Hide" +/** Defines headers for WorkspaceApiVersionSet_getEntityTag operation. */ +export interface WorkspaceApiVersionSetGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for DataMaskingMode. \ - * {@link KnownDataMaskingMode} can be used interchangeably with DataMaskingMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Mask**: Mask the value of an entity. \ - * **Hide**: Hide the presence of an entity. - */ -export type DataMaskingMode = string; +/** Defines headers for WorkspaceApiVersionSet_get operation. */ +export interface WorkspaceApiVersionSetGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link HttpCorrelationProtocol} that the service accepts. */ -export enum KnownHttpCorrelationProtocol { - /** Do not read and inject correlation headers. */ - None = "None", - /** Inject Request-Id and Request-Context headers with request correlation data. See https:\//github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. */ - Legacy = "Legacy", - /** Inject Trace Context headers. See https:\//w3c.github.io\/trace-context. */ - W3C = "W3C" +/** Defines headers for WorkspaceApiVersionSet_createOrUpdate operation. */ +export interface WorkspaceApiVersionSetCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for HttpCorrelationProtocol. \ - * {@link KnownHttpCorrelationProtocol} can be used interchangeably with HttpCorrelationProtocol, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: Do not read and inject correlation headers. \ - * **Legacy**: Inject Request-Id and Request-Context headers with request correlation data. See https:\/\/github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. \ - * **W3C**: Inject Trace Context headers. See https:\/\/w3c.github.io\/trace-context. - */ -export type HttpCorrelationProtocol = string; +/** Defines headers for WorkspaceApiVersionSet_update operation. */ +export interface WorkspaceApiVersionSetUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link Verbosity} that the service accepts. */ -export enum KnownVerbosity { - /** All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. */ - Verbose = "verbose", - /** Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. */ - Information = "information", - /** Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. */ - Error = "error" +/** Defines headers for WorkspaceApi_getEntityTag operation. */ +export interface WorkspaceApiGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for Verbosity. \ - * {@link KnownVerbosity} can be used interchangeably with Verbosity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **verbose**: All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. \ - * **information**: Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. \ - * **error**: Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. - */ -export type Verbosity = string; +/** Defines headers for WorkspaceApi_get operation. */ +export interface WorkspaceApiGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link OperationNameFormat} that the service accepts. */ -export enum KnownOperationNameFormat { - /** API_NAME;rev=API_REVISION - OPERATION_NAME */ - Name = "Name", - /** HTTP_VERB URL */ - Url = "Url" +/** Defines headers for WorkspaceApi_createOrUpdate operation. */ +export interface WorkspaceApiCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for OperationNameFormat. \ - * {@link KnownOperationNameFormat} can be used interchangeably with OperationNameFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Name**: API_NAME;rev=API_REVISION - OPERATION_NAME \ - * **Url**: HTTP_VERB URL - */ -export type OperationNameFormat = string; +/** Defines headers for WorkspaceApi_update operation. */ +export interface WorkspaceApiUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link State} that the service accepts. */ -export enum KnownState { - /** The issue is proposed. */ - Proposed = "proposed", - /** The issue is opened. */ - Open = "open", - /** The issue was removed. */ - Removed = "removed", - /** The issue is now resolved. */ - Resolved = "resolved", - /** The issue was closed. */ - Closed = "closed" +/** Defines headers for WorkspaceApiRelease_getEntityTag operation. */ +export interface WorkspaceApiReleaseGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for State. \ - * {@link KnownState} can be used interchangeably with State, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **proposed**: The issue is proposed. \ - * **open**: The issue is opened. \ - * **removed**: The issue was removed. \ - * **resolved**: The issue is now resolved. \ - * **closed**: The issue was closed. - */ -export type State = string; +/** Defines headers for WorkspaceApiRelease_get operation. */ +export interface WorkspaceApiReleaseGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ExportFormat} that the service accepts. */ -export enum KnownExportFormat { - /** Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. */ - Swagger = "swagger-link", - /** Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ - Wsdl = "wsdl-link", - /** Export the Api Definition in WADL Schema to Storage Blob. */ - Wadl = "wadl-link", - /** Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. */ - Openapi = "openapi-link", - /** Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. */ - OpenapiJson = "openapi+json-link" +/** Defines headers for WorkspaceApiRelease_createOrUpdate operation. */ +export interface WorkspaceApiReleaseCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ExportFormat. \ - * {@link KnownExportFormat} can be used interchangeably with ExportFormat, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **swagger-link**: Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. \ - * **wsdl-link**: Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ - * **wadl-link**: Export the Api Definition in WADL Schema to Storage Blob. \ - * **openapi-link**: Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. \ - * **openapi+json-link**: Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. - */ -export type ExportFormat = string; +/** Defines headers for WorkspaceApiRelease_update operation. */ +export interface WorkspaceApiReleaseUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ExportApi} that the service accepts. */ -export enum KnownExportApi { - /** True */ - True = "true" +/** Defines headers for WorkspaceApiOperation_getEntityTag operation. */ +export interface WorkspaceApiOperationGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; } -/** - * Defines values for ExportApi. \ - * {@link KnownExportApi} can be used interchangeably with ExportApi, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **true** - */ -export type ExportApi = string; +/** Defines headers for WorkspaceApiOperation_get operation. */ +export interface WorkspaceApiOperationGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} -/** Known values of {@link ExportResultFormat} that the service accepts. */ -export enum KnownExportResultFormat { - /** The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. */ - Swagger = "swagger-link-json", - /** The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ - Wsdl = "wsdl-link+xml", - /** Export the API Definition in WADL Schema to Storage Blob. */ - Wadl = "wadl-link-json", - /** Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. */ - OpenApi = "openapi-link" +/** Defines headers for WorkspaceApiOperation_createOrUpdate operation. */ +export interface WorkspaceApiOperationCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperation_update operation. */ +export interface WorkspaceApiOperationUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperationPolicy_getEntityTag operation. */ +export interface WorkspaceApiOperationPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperationPolicy_get operation. */ +export interface WorkspaceApiOperationPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiOperationPolicy_createOrUpdate operation. */ +export interface WorkspaceApiOperationPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiPolicy_getEntityTag operation. */ +export interface WorkspaceApiPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiPolicy_get operation. */ +export interface WorkspaceApiPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiPolicy_createOrUpdate operation. */ +export interface WorkspaceApiPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiSchema_getEntityTag operation. */ +export interface WorkspaceApiSchemaGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiSchema_get operation. */ +export interface WorkspaceApiSchemaGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceApiSchema_createOrUpdate operation. */ +export interface WorkspaceApiSchemaCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_getEntityTag operation. */ +export interface WorkspaceProductGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_get operation. */ +export interface WorkspaceProductGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_createOrUpdate operation. */ +export interface WorkspaceProductCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProduct_update operation. */ +export interface WorkspaceProductUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductApiLink_get operation. */ +export interface WorkspaceProductApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductGroupLink_get operation. */ +export interface WorkspaceProductGroupLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_getEntityTag operation. */ +export interface WorkspaceProductPolicyGetEntityTagHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_get operation. */ +export interface WorkspaceProductPolicyGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceProductPolicy_createOrUpdate operation. */ +export interface WorkspaceProductPolicyCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_getEntityState operation. */ +export interface WorkspaceTagGetEntityStateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_get operation. */ +export interface WorkspaceTagGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_createOrUpdate operation. */ +export interface WorkspaceTagCreateOrUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTag_update operation. */ +export interface WorkspaceTagUpdateHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagApiLink_get operation. */ +export interface WorkspaceTagApiLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagOperationLink_get operation. */ +export interface WorkspaceTagOperationLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Defines headers for WorkspaceTagProductLink_get operation. */ +export interface WorkspaceTagProductLinkGetHeaders { + /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */ + eTag?: string; +} + +/** Known values of {@link Protocol} that the service accepts. */ +export enum KnownProtocol { + /** Http */ + Http = "http", + /** Https */ + Https = "https", + /** Ws */ + Ws = "ws", + /** Wss */ + Wss = "wss" } /** - * Defines values for ExportResultFormat. \ - * {@link KnownExportResultFormat} can be used interchangeably with ExportResultFormat, + * Defines values for Protocol. \ + * {@link KnownProtocol} can be used interchangeably with Protocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **swagger-link-json**: The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. \ - * **wsdl-link+xml**: The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ - * **wadl-link-json**: Export the API Definition in WADL Schema to Storage Blob. \ - * **openapi-link**: Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. + * **http** \ + * **https** \ + * **ws** \ + * **wss** */ -export type ExportResultFormat = string; +export type Protocol = string; -/** Known values of {@link VersioningScheme} that the service accepts. */ -export enum KnownVersioningScheme { +/** Known values of {@link ApiVersionSetContractDetailsVersioningScheme} that the service accepts. */ +export enum KnownApiVersionSetContractDetailsVersioningScheme { /** The API Version is passed in a path segment. */ Segment = "Segment", /** The API Version is passed in a query parameter. */ @@ -6400,1330 +6676,3340 @@ export enum KnownVersioningScheme { } /** - * Defines values for VersioningScheme. \ - * {@link KnownVersioningScheme} can be used interchangeably with VersioningScheme, + * Defines values for ApiVersionSetContractDetailsVersioningScheme. \ + * {@link KnownApiVersionSetContractDetailsVersioningScheme} can be used interchangeably with ApiVersionSetContractDetailsVersioningScheme, * this enum contains the known values that the service supports. * ### Known values supported by the service * **Segment**: The API Version is passed in a path segment. \ * **Query**: The API Version is passed in a query parameter. \ * **Header**: The API Version is passed in a HTTP header. */ -export type VersioningScheme = string; +export type ApiVersionSetContractDetailsVersioningScheme = string; -/** Known values of {@link GrantType} that the service accepts. */ -export enum KnownGrantType { - /** Authorization Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.1. */ - AuthorizationCode = "authorizationCode", - /** Implicit Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.2. */ - Implicit = "implicit", - /** Resource Owner Password Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.3. */ - ResourceOwnerPassword = "resourceOwnerPassword", - /** Client Credentials Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.4. */ - ClientCredentials = "clientCredentials" +/** Known values of {@link BearerTokenSendingMethods} that the service accepts. */ +export enum KnownBearerTokenSendingMethods { + /** Access token will be transmitted in the Authorization header using Bearer schema */ + AuthorizationHeader = "authorizationHeader", + /** Access token will be transmitted as query parameters. */ + Query = "query" } /** - * Defines values for GrantType. \ - * {@link KnownGrantType} can be used interchangeably with GrantType, + * Defines values for BearerTokenSendingMethods. \ + * {@link KnownBearerTokenSendingMethods} can be used interchangeably with BearerTokenSendingMethods, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **authorizationCode**: Authorization Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.1. \ - * **implicit**: Implicit Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.2. \ - * **resourceOwnerPassword**: Resource Owner Password Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.3. \ - * **clientCredentials**: Client Credentials Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.4. + * **authorizationHeader**: Access token will be transmitted in the Authorization header using Bearer schema \ + * **query**: Access token will be transmitted as query parameters. */ -export type GrantType = string; +export type BearerTokenSendingMethods = string; -/** Known values of {@link ClientAuthenticationMethod} that the service accepts. */ -export enum KnownClientAuthenticationMethod { - /** Basic Client Authentication method. */ - Basic = "Basic", - /** Body based Authentication method. */ - Body = "Body" +/** Known values of {@link ApiType} that the service accepts. */ +export enum KnownApiType { + /** Http */ + Http = "http", + /** Soap */ + Soap = "soap", + /** Websocket */ + Websocket = "websocket", + /** Graphql */ + Graphql = "graphql", + /** Odata */ + Odata = "odata" } /** - * Defines values for ClientAuthenticationMethod. \ - * {@link KnownClientAuthenticationMethod} can be used interchangeably with ClientAuthenticationMethod, + * Defines values for ApiType. \ + * {@link KnownApiType} can be used interchangeably with ApiType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Basic**: Basic Client Authentication method. \ - * **Body**: Body based Authentication method. + * **http** \ + * **soap** \ + * **websocket** \ + * **graphql** \ + * **odata** */ -export type ClientAuthenticationMethod = string; +export type ApiType = string; -/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ -export enum KnownBearerTokenSendingMethod { - /** AuthorizationHeader */ - AuthorizationHeader = "authorizationHeader", - /** Query */ - Query = "query" +/** Known values of {@link ContentFormat} that the service accepts. */ +export enum KnownContentFormat { + /** The contents are inline and Content type is a WADL document. */ + WadlXml = "wadl-xml", + /** The WADL document is hosted on a publicly accessible internet address. */ + WadlLinkJson = "wadl-link-json", + /** The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. */ + SwaggerJson = "swagger-json", + /** The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. */ + SwaggerLinkJson = "swagger-link-json", + /** The contents are inline and the document is a WSDL\/Soap document. */ + Wsdl = "wsdl", + /** The WSDL document is hosted on a publicly accessible internet address. */ + WsdlLink = "wsdl-link", + /** The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. */ + Openapi = "openapi", + /** The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. */ + OpenapiJson = "openapi+json", + /** The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. */ + OpenapiLink = "openapi-link", + /** The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. */ + OpenapiJsonLink = "openapi+json-link", + /** The GraphQL API endpoint hosted on a publicly accessible internet address. */ + GraphqlLink = "graphql-link", + /** The contents are inline and Content Type is a OData XML Document. */ + Odata = "odata", + /** The OData metadata document hosted on a publicly accessible internet address. */ + OdataLink = "odata-link" } /** - * Defines values for BearerTokenSendingMethod. \ - * {@link KnownBearerTokenSendingMethod} can be used interchangeably with BearerTokenSendingMethod, + * Defines values for ContentFormat. \ + * {@link KnownContentFormat} can be used interchangeably with ContentFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **authorizationHeader** \ - * **query** + * **wadl-xml**: The contents are inline and Content type is a WADL document. \ + * **wadl-link-json**: The WADL document is hosted on a publicly accessible internet address. \ + * **swagger-json**: The contents are inline and Content Type is a OpenAPI 2.0 JSON Document. \ + * **swagger-link-json**: The OpenAPI 2.0 JSON document is hosted on a publicly accessible internet address. \ + * **wsdl**: The contents are inline and the document is a WSDL\/Soap document. \ + * **wsdl-link**: The WSDL document is hosted on a publicly accessible internet address. \ + * **openapi**: The contents are inline and Content Type is a OpenAPI 3.0 YAML Document. \ + * **openapi+json**: The contents are inline and Content Type is a OpenAPI 3.0 JSON Document. \ + * **openapi-link**: The OpenAPI 3.0 YAML document is hosted on a publicly accessible internet address. \ + * **openapi+json-link**: The OpenAPI 3.0 JSON document is hosted on a publicly accessible internet address. \ + * **graphql-link**: The GraphQL API endpoint hosted on a publicly accessible internet address. \ + * **odata**: The contents are inline and Content Type is a OData XML Document. \ + * **odata-link**: The OData metadata document hosted on a publicly accessible internet address. */ -export type BearerTokenSendingMethod = string; +export type ContentFormat = string; -/** Known values of {@link AuthorizationType} that the service accepts. */ -export enum KnownAuthorizationType { - /** OAuth2 authorization type */ - OAuth2 = "OAuth2" +/** Known values of {@link SoapApiType} that the service accepts. */ +export enum KnownSoapApiType { + /** Imports a SOAP API having a RESTful front end. */ + SoapToRest = "http", + /** Imports the SOAP API having a SOAP front end. */ + SoapPassThrough = "soap", + /** Imports the API having a Websocket front end. */ + WebSocket = "websocket", + /** Imports the API having a GraphQL front end. */ + GraphQL = "graphql", + /** Imports the API having a OData front end. */ + OData = "odata" } /** - * Defines values for AuthorizationType. \ - * {@link KnownAuthorizationType} can be used interchangeably with AuthorizationType, + * Defines values for SoapApiType. \ + * {@link KnownSoapApiType} can be used interchangeably with SoapApiType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **OAuth2**: OAuth2 authorization type + * **http**: Imports a SOAP API having a RESTful front end. \ + * **soap**: Imports the SOAP API having a SOAP front end. \ + * **websocket**: Imports the API having a Websocket front end. \ + * **graphql**: Imports the API having a GraphQL front end. \ + * **odata**: Imports the API having a OData front end. */ -export type AuthorizationType = string; +export type SoapApiType = string; -/** Known values of {@link OAuth2GrantType} that the service accepts. */ -export enum KnownOAuth2GrantType { - /** Authorization Code grant */ - AuthorizationCode = "AuthorizationCode", - /** Client Credential grant */ - ClientCredentials = "ClientCredentials" +/** Known values of {@link TranslateRequiredQueryParametersConduct} that the service accepts. */ +export enum KnownTranslateRequiredQueryParametersConduct { + /** Translates required query parameters to template ones. Is a default value */ + Template = "template", + /** Leaves required query parameters as they are (no translation done). */ + Query = "query" } /** - * Defines values for OAuth2GrantType. \ - * {@link KnownOAuth2GrantType} can be used interchangeably with OAuth2GrantType, + * Defines values for TranslateRequiredQueryParametersConduct. \ + * {@link KnownTranslateRequiredQueryParametersConduct} can be used interchangeably with TranslateRequiredQueryParametersConduct, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AuthorizationCode**: Authorization Code grant \ - * **ClientCredentials**: Client Credential grant + * **template**: Translates required query parameters to template ones. Is a default value \ + * **query**: Leaves required query parameters as they are (no translation done). */ -export type OAuth2GrantType = string; +export type TranslateRequiredQueryParametersConduct = string; -/** Known values of {@link BackendProtocol} that the service accepts. */ -export enum KnownBackendProtocol { - /** The Backend is a RESTful service. */ - Http = "http", - /** The Backend is a SOAP service. */ - Soap = "soap" +/** Known values of {@link PolicyContentFormat} that the service accepts. */ +export enum KnownPolicyContentFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. */ + XmlLink = "xml-link", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml", + /** The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ + RawxmlLink = "rawxml-link" } /** - * Defines values for BackendProtocol. \ - * {@link KnownBackendProtocol} can be used interchangeably with BackendProtocol, + * Defines values for PolicyContentFormat. \ + * {@link KnownPolicyContentFormat} can be used interchangeably with PolicyContentFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **http**: The Backend is a RESTful service. \ - * **soap**: The Backend is a SOAP service. + * **xml**: The contents are inline and Content type is an XML document. \ + * **xml-link**: The policy XML document is hosted on a HTTP endpoint accessible from the API Management service. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. \ + * **rawxml-link**: The policy document is not XML encoded and is hosted on a HTTP endpoint accessible from the API Management service. */ -export type BackendProtocol = string; +export type PolicyContentFormat = string; -/** Known values of {@link PreferredIPVersion} that the service accepts. */ -export enum KnownPreferredIPVersion { - /** IPv4 */ - IPv4 = "IPv4" +/** Known values of {@link PolicyIdName} that the service accepts. */ +export enum KnownPolicyIdName { + /** Policy */ + Policy = "policy" } /** - * Defines values for PreferredIPVersion. \ - * {@link KnownPreferredIPVersion} can be used interchangeably with PreferredIPVersion, + * Defines values for PolicyIdName. \ + * {@link KnownPolicyIdName} can be used interchangeably with PolicyIdName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IPv4** + * **policy** */ -export type PreferredIPVersion = string; +export type PolicyIdName = string; -/** Known values of {@link ConnectivityCheckProtocol} that the service accepts. */ -export enum KnownConnectivityCheckProtocol { - /** TCP */ - TCP = "TCP", - /** Http */ - Http = "HTTP", - /** Https */ - Https = "HTTPS" +/** Known values of {@link PolicyExportFormat} that the service accepts. */ +export enum KnownPolicyExportFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml" } /** - * Defines values for ConnectivityCheckProtocol. \ - * {@link KnownConnectivityCheckProtocol} can be used interchangeably with ConnectivityCheckProtocol, + * Defines values for PolicyExportFormat. \ + * {@link KnownPolicyExportFormat} can be used interchangeably with PolicyExportFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TCP** \ - * **HTTP** \ - * **HTTPS** + * **xml**: The contents are inline and Content type is an XML document. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. */ -export type ConnectivityCheckProtocol = string; +export type PolicyExportFormat = string; -/** Known values of {@link Method} that the service accepts. */ -export enum KnownMethod { - /** GET */ - GET = "GET", - /** Post */ - Post = "POST" +/** Known values of {@link AlwaysLog} that the service accepts. */ +export enum KnownAlwaysLog { + /** Always log all erroneous request regardless of sampling settings. */ + AllErrors = "allErrors" } /** - * Defines values for Method. \ - * {@link KnownMethod} can be used interchangeably with Method, + * Defines values for AlwaysLog. \ + * {@link KnownAlwaysLog} can be used interchangeably with AlwaysLog, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GET** \ - * **POST** + * **allErrors**: Always log all erroneous request regardless of sampling settings. */ -export type Method = string; +export type AlwaysLog = string; -/** Known values of {@link Origin} that the service accepts. */ -export enum KnownOrigin { - /** Local */ - Local = "Local", - /** Inbound */ - Inbound = "Inbound", - /** Outbound */ - Outbound = "Outbound" +/** Known values of {@link SamplingType} that the service accepts. */ +export enum KnownSamplingType { + /** Fixed-rate sampling. */ + Fixed = "fixed" } /** - * Defines values for Origin. \ - * {@link KnownOrigin} can be used interchangeably with Origin, + * Defines values for SamplingType. \ + * {@link KnownSamplingType} can be used interchangeably with SamplingType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Local** \ - * **Inbound** \ - * **Outbound** + * **fixed**: Fixed-rate sampling. */ -export type Origin = string; +export type SamplingType = string; -/** Known values of {@link Severity} that the service accepts. */ -export enum KnownSeverity { - /** Error */ - Error = "Error", - /** Warning */ - Warning = "Warning" +/** Known values of {@link DataMaskingMode} that the service accepts. */ +export enum KnownDataMaskingMode { + /** Mask the value of an entity. */ + Mask = "Mask", + /** Hide the presence of an entity. */ + Hide = "Hide" } /** - * Defines values for Severity. \ - * {@link KnownSeverity} can be used interchangeably with Severity, + * Defines values for DataMaskingMode. \ + * {@link KnownDataMaskingMode} can be used interchangeably with DataMaskingMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Error** \ - * **Warning** + * **Mask**: Mask the value of an entity. \ + * **Hide**: Hide the presence of an entity. */ -export type Severity = string; +export type DataMaskingMode = string; -/** Known values of {@link IssueType} that the service accepts. */ -export enum KnownIssueType { - /** Unknown */ - Unknown = "Unknown", - /** AgentStopped */ - AgentStopped = "AgentStopped", - /** GuestFirewall */ - GuestFirewall = "GuestFirewall", - /** DnsResolution */ - DnsResolution = "DnsResolution", - /** SocketBind */ - SocketBind = "SocketBind", - /** NetworkSecurityRule */ - NetworkSecurityRule = "NetworkSecurityRule", - /** UserDefinedRoute */ - UserDefinedRoute = "UserDefinedRoute", - /** PortThrottled */ - PortThrottled = "PortThrottled", - /** Platform */ - Platform = "Platform" +/** Known values of {@link HttpCorrelationProtocol} that the service accepts. */ +export enum KnownHttpCorrelationProtocol { + /** Do not read and inject correlation headers. */ + None = "None", + /** Inject Request-Id and Request-Context headers with request correlation data. See https:\//github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. */ + Legacy = "Legacy", + /** Inject Trace Context headers. See https:\//w3c.github.io\/trace-context. */ + W3C = "W3C" } /** - * Defines values for IssueType. \ - * {@link KnownIssueType} can be used interchangeably with IssueType, + * Defines values for HttpCorrelationProtocol. \ + * {@link KnownHttpCorrelationProtocol} can be used interchangeably with HttpCorrelationProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **AgentStopped** \ - * **GuestFirewall** \ - * **DnsResolution** \ - * **SocketBind** \ - * **NetworkSecurityRule** \ - * **UserDefinedRoute** \ - * **PortThrottled** \ - * **Platform** + * **None**: Do not read and inject correlation headers. \ + * **Legacy**: Inject Request-Id and Request-Context headers with request correlation data. See https:\/\/github.com\/dotnet\/corefx\/blob\/master\/src\/System.Diagnostics.DiagnosticSource\/src\/HttpCorrelationProtocol.md. \ + * **W3C**: Inject Trace Context headers. See https:\/\/w3c.github.io\/trace-context. */ -export type IssueType = string; +export type HttpCorrelationProtocol = string; -/** Known values of {@link ConnectionStatus} that the service accepts. */ -export enum KnownConnectionStatus { - /** Unknown */ - Unknown = "Unknown", - /** Connected */ - Connected = "Connected", - /** Disconnected */ - Disconnected = "Disconnected", - /** Degraded */ - Degraded = "Degraded" +/** Known values of {@link Verbosity} that the service accepts. */ +export enum KnownVerbosity { + /** All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. */ + Verbose = "verbose", + /** Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. */ + Information = "information", + /** Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. */ + Error = "error" } /** - * Defines values for ConnectionStatus. \ - * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, + * Defines values for Verbosity. \ + * {@link KnownVerbosity} can be used interchangeably with Verbosity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **Connected** \ - * **Disconnected** \ - * **Degraded** + * **verbose**: All the traces emitted by trace policies will be sent to the logger attached to this diagnostic instance. \ + * **information**: Traces with 'severity' set to 'information' and 'error' will be sent to the logger attached to this diagnostic instance. \ + * **error**: Only traces with 'severity' set to 'error' will be sent to the logger attached to this diagnostic instance. */ -export type ConnectionStatus = string; +export type Verbosity = string; -/** Known values of {@link SkuType} that the service accepts. */ -export enum KnownSkuType { - /** Developer SKU of Api Management. */ - Developer = "Developer", - /** Standard SKU of Api Management. */ - Standard = "Standard", - /** Premium SKU of Api Management. */ - Premium = "Premium", - /** Basic SKU of Api Management. */ - Basic = "Basic", - /** Consumption SKU of Api Management. */ - Consumption = "Consumption", - /** Isolated SKU of Api Management. */ - Isolated = "Isolated" +/** Known values of {@link OperationNameFormat} that the service accepts. */ +export enum KnownOperationNameFormat { + /** API_NAME;rev=API_REVISION - OPERATION_NAME */ + Name = "Name", + /** HTTP_VERB URL */ + Url = "Url" } /** - * Defines values for SkuType. \ - * {@link KnownSkuType} can be used interchangeably with SkuType, + * Defines values for OperationNameFormat. \ + * {@link KnownOperationNameFormat} can be used interchangeably with OperationNameFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Developer**: Developer SKU of Api Management. \ - * **Standard**: Standard SKU of Api Management. \ - * **Premium**: Premium SKU of Api Management. \ - * **Basic**: Basic SKU of Api Management. \ - * **Consumption**: Consumption SKU of Api Management. \ - * **Isolated**: Isolated SKU of Api Management. + * **Name**: API_NAME;rev=API_REVISION - OPERATION_NAME \ + * **Url**: HTTP_VERB URL */ -export type SkuType = string; +export type OperationNameFormat = string; -/** Known values of {@link ResourceSkuCapacityScaleType} that the service accepts. */ -export enum KnownResourceSkuCapacityScaleType { - /** Supported scale type automatic. */ - Automatic = "automatic", - /** Supported scale type manual. */ - Manual = "manual", - /** Scaling not supported. */ - None = "none" +/** Known values of {@link State} that the service accepts. */ +export enum KnownState { + /** The issue is proposed. */ + Proposed = "proposed", + /** The issue is opened. */ + Open = "open", + /** The issue was removed. */ + Removed = "removed", + /** The issue is now resolved. */ + Resolved = "resolved", + /** The issue was closed. */ + Closed = "closed" } /** - * Defines values for ResourceSkuCapacityScaleType. \ - * {@link KnownResourceSkuCapacityScaleType} can be used interchangeably with ResourceSkuCapacityScaleType, + * Defines values for State. \ + * {@link KnownState} can be used interchangeably with State, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **automatic**: Supported scale type automatic. \ - * **manual**: Supported scale type manual. \ - * **none**: Scaling not supported. + * **proposed**: The issue is proposed. \ + * **open**: The issue is opened. \ + * **removed**: The issue was removed. \ + * **resolved**: The issue is now resolved. \ + * **closed**: The issue was closed. */ -export type ResourceSkuCapacityScaleType = string; +export type State = string; -/** Known values of {@link AccessType} that the service accepts. */ -export enum KnownAccessType { - /** Use access key. */ - AccessKey = "AccessKey", - /** Use system assigned managed identity. */ - SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", - /** Use user assigned managed identity. */ - UserAssignedManagedIdentity = "UserAssignedManagedIdentity" +/** Known values of {@link ExportFormat} that the service accepts. */ +export enum KnownExportFormat { + /** Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. */ + Swagger = "swagger-link", + /** Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ + Wsdl = "wsdl-link", + /** Export the Api Definition in WADL Schema to Storage Blob. */ + Wadl = "wadl-link", + /** Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. */ + Openapi = "openapi-link", + /** Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. */ + OpenapiJson = "openapi+json-link" } /** - * Defines values for AccessType. \ - * {@link KnownAccessType} can be used interchangeably with AccessType, + * Defines values for ExportFormat. \ + * {@link KnownExportFormat} can be used interchangeably with ExportFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AccessKey**: Use access key. \ - * **SystemAssignedManagedIdentity**: Use system assigned managed identity. \ - * **UserAssignedManagedIdentity**: Use user assigned managed identity. + * **swagger-link**: Export the Api Definition in OpenAPI 2.0 Specification as JSON document to the Storage Blob. \ + * **wsdl-link**: Export the Api Definition in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ + * **wadl-link**: Export the Api Definition in WADL Schema to Storage Blob. \ + * **openapi-link**: Export the Api Definition in OpenAPI 3.0 Specification as YAML document to Storage Blob. \ + * **openapi+json-link**: Export the Api Definition in OpenAPI 3.0 Specification as JSON document to Storage Blob. */ -export type AccessType = string; +export type ExportFormat = string; -/** Known values of {@link HostnameType} that the service accepts. */ -export enum KnownHostnameType { - /** Proxy */ - Proxy = "Proxy", - /** Portal */ - Portal = "Portal", - /** Management */ - Management = "Management", - /** Scm */ - Scm = "Scm", - /** DeveloperPortal */ - DeveloperPortal = "DeveloperPortal" +/** Known values of {@link ExportApi} that the service accepts. */ +export enum KnownExportApi { + /** True */ + True = "true" } /** - * Defines values for HostnameType. \ - * {@link KnownHostnameType} can be used interchangeably with HostnameType, + * Defines values for ExportApi. \ + * {@link KnownExportApi} can be used interchangeably with ExportApi, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Proxy** \ - * **Portal** \ - * **Management** \ - * **Scm** \ - * **DeveloperPortal** + * **true** */ -export type HostnameType = string; +export type ExportApi = string; -/** Known values of {@link CertificateSource} that the service accepts. */ -export enum KnownCertificateSource { - /** Managed */ - Managed = "Managed", - /** KeyVault */ - KeyVault = "KeyVault", - /** Custom */ - Custom = "Custom", - /** BuiltIn */ - BuiltIn = "BuiltIn" +/** Known values of {@link ExportResultFormat} that the service accepts. */ +export enum KnownExportResultFormat { + /** The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. */ + Swagger = "swagger-link-json", + /** The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` */ + Wsdl = "wsdl-link+xml", + /** Export the API Definition in WADL Schema to Storage Blob. */ + Wadl = "wadl-link-json", + /** Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. */ + OpenApi = "openapi-link" } /** - * Defines values for CertificateSource. \ - * {@link KnownCertificateSource} can be used interchangeably with CertificateSource, + * Defines values for ExportResultFormat. \ + * {@link KnownExportResultFormat} can be used interchangeably with ExportResultFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Managed** \ - * **KeyVault** \ - * **Custom** \ - * **BuiltIn** - */ -export type CertificateSource = string; - -/** Known values of {@link CertificateStatus} that the service accepts. */ -export enum KnownCertificateStatus { - /** Completed */ - Completed = "Completed", - /** Failed */ - Failed = "Failed", - /** InProgress */ - InProgress = "InProgress" + * **swagger-link-json**: The API Definition is exported in OpenAPI Specification 2.0 format to the Storage Blob. \ + * **wsdl-link+xml**: The API Definition is exported in WSDL Schema to Storage Blob. This is only supported for APIs of Type `soap` \ + * **wadl-link-json**: Export the API Definition in WADL Schema to Storage Blob. \ + * **openapi-link**: Export the API Definition in OpenAPI Specification 3.0 to Storage Blob. + */ +export type ExportResultFormat = string; + +/** Known values of {@link VersioningScheme} that the service accepts. */ +export enum KnownVersioningScheme { + /** The API Version is passed in a path segment. */ + Segment = "Segment", + /** The API Version is passed in a query parameter. */ + Query = "Query", + /** The API Version is passed in a HTTP header. */ + Header = "Header" } /** - * Defines values for CertificateStatus. \ - * {@link KnownCertificateStatus} can be used interchangeably with CertificateStatus, + * Defines values for VersioningScheme. \ + * {@link KnownVersioningScheme} can be used interchangeably with VersioningScheme, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Completed** \ - * **Failed** \ - * **InProgress** + * **Segment**: The API Version is passed in a path segment. \ + * **Query**: The API Version is passed in a query parameter. \ + * **Header**: The API Version is passed in a HTTP header. */ -export type CertificateStatus = string; +export type VersioningScheme = string; -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link AuthorizationType} that the service accepts. */ +export enum KnownAuthorizationType { + /** OAuth2 authorization type */ + OAuth2 = "OAuth2" } /** - * Defines values for PublicNetworkAccess. \ - * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * Defines values for AuthorizationType. \ + * {@link KnownAuthorizationType} can be used interchangeably with AuthorizationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **OAuth2**: OAuth2 authorization type */ -export type PublicNetworkAccess = string; +export type AuthorizationType = string; -/** Known values of {@link NatGatewayState} that the service accepts. */ -export enum KnownNatGatewayState { - /** Nat Gateway is enabled for the service. */ - Enabled = "Enabled", - /** Nat Gateway is disabled for the service. */ - Disabled = "Disabled" +/** Known values of {@link OAuth2GrantType} that the service accepts. */ +export enum KnownOAuth2GrantType { + /** Authorization Code grant */ + AuthorizationCode = "AuthorizationCode", + /** Client Credential grant */ + ClientCredentials = "ClientCredentials" } /** - * Defines values for NatGatewayState. \ - * {@link KnownNatGatewayState} can be used interchangeably with NatGatewayState, + * Defines values for OAuth2GrantType. \ + * {@link KnownOAuth2GrantType} can be used interchangeably with OAuth2GrantType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled**: Nat Gateway is enabled for the service. \ - * **Disabled**: Nat Gateway is disabled for the service. + * **AuthorizationCode**: Authorization Code grant \ + * **ClientCredentials**: Client Credential grant */ -export type NatGatewayState = string; +export type OAuth2GrantType = string; -/** Known values of {@link PlatformVersion} that the service accepts. */ -export enum KnownPlatformVersion { - /** Platform version cannot be determined, as compute platform is not deployed. */ - Undetermined = "undetermined", - /** Platform running the service on Single Tenant V1 platform. */ - Stv1 = "stv1", - /** Platform running the service on Single Tenant V2 platform. */ - Stv2 = "stv2", - /** Platform running the service on Multi Tenant V1 platform. */ - Mtv1 = "mtv1" +/** Known values of {@link GrantType} that the service accepts. */ +export enum KnownGrantType { + /** Authorization Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.1. */ + AuthorizationCode = "authorizationCode", + /** Implicit Code Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.2. */ + Implicit = "implicit", + /** Resource Owner Password Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.3. */ + ResourceOwnerPassword = "resourceOwnerPassword", + /** Client Credentials Grant flow as described https:\//tools.ietf.org\/html\/rfc6749#section-4.4. */ + ClientCredentials = "clientCredentials" } /** - * Defines values for PlatformVersion. \ - * {@link KnownPlatformVersion} can be used interchangeably with PlatformVersion, + * Defines values for GrantType. \ + * {@link KnownGrantType} can be used interchangeably with GrantType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **undetermined**: Platform version cannot be determined, as compute platform is not deployed. \ - * **stv1**: Platform running the service on Single Tenant V1 platform. \ - * **stv2**: Platform running the service on Single Tenant V2 platform. \ - * **mtv1**: Platform running the service on Multi Tenant V1 platform. + * **authorizationCode**: Authorization Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.1. \ + * **implicit**: Implicit Code Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.2. \ + * **resourceOwnerPassword**: Resource Owner Password Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.3. \ + * **clientCredentials**: Client Credentials Grant flow as described https:\/\/tools.ietf.org\/html\/rfc6749#section-4.4. */ -export type PlatformVersion = string; +export type GrantType = string; -/** Known values of {@link CertificateConfigurationStoreName} that the service accepts. */ -export enum KnownCertificateConfigurationStoreName { - /** CertificateAuthority */ - CertificateAuthority = "CertificateAuthority", - /** Root */ - Root = "Root" +/** Known values of {@link ClientAuthenticationMethod} that the service accepts. */ +export enum KnownClientAuthenticationMethod { + /** Basic Client Authentication method. */ + Basic = "Basic", + /** Body based Authentication method. */ + Body = "Body" } /** - * Defines values for CertificateConfigurationStoreName. \ - * {@link KnownCertificateConfigurationStoreName} can be used interchangeably with CertificateConfigurationStoreName, + * Defines values for ClientAuthenticationMethod. \ + * {@link KnownClientAuthenticationMethod} can be used interchangeably with ClientAuthenticationMethod, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CertificateAuthority** \ - * **Root** + * **Basic**: Basic Client Authentication method. \ + * **Body**: Body based Authentication method. */ -export type CertificateConfigurationStoreName = string; +export type ClientAuthenticationMethod = string; -/** Known values of {@link VirtualNetworkType} that the service accepts. */ -export enum KnownVirtualNetworkType { - /** The service is not part of any Virtual Network. */ - None = "None", - /** The service is part of Virtual Network and it is accessible from Internet. */ - External = "External", - /** The service is part of Virtual Network and it is only accessible from within the virtual network. */ - Internal = "Internal" +/** Known values of {@link BearerTokenSendingMethod} that the service accepts. */ +export enum KnownBearerTokenSendingMethod { + /** AuthorizationHeader */ + AuthorizationHeader = "authorizationHeader", + /** Query */ + Query = "query" } /** - * Defines values for VirtualNetworkType. \ - * {@link KnownVirtualNetworkType} can be used interchangeably with VirtualNetworkType, + * Defines values for BearerTokenSendingMethod. \ + * {@link KnownBearerTokenSendingMethod} can be used interchangeably with BearerTokenSendingMethod, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None**: The service is not part of any Virtual Network. \ - * **External**: The service is part of Virtual Network and it is accessible from Internet. \ - * **Internal**: The service is part of Virtual Network and it is only accessible from within the virtual network. + * **authorizationHeader** \ + * **query** */ -export type VirtualNetworkType = string; +export type BearerTokenSendingMethod = string; -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ - Pending = "Pending", - /** Approved */ - Approved = "Approved", - /** Rejected */ - Rejected = "Rejected" +/** Known values of {@link BackendProtocol} that the service accepts. */ +export enum KnownBackendProtocol { + /** The Backend is a RESTful service. */ + Http = "http", + /** The Backend is a SOAP service. */ + Soap = "soap" } /** - * Defines values for PrivateEndpointServiceConnectionStatus. \ - * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * Defines values for BackendProtocol. \ + * {@link KnownBackendProtocol} can be used interchangeably with BackendProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Pending** \ - * **Approved** \ - * **Rejected** + * **http**: The Backend is a RESTful service. \ + * **soap**: The Backend is a SOAP service. */ -export type PrivateEndpointServiceConnectionStatus = string; +export type BackendProtocol = string; -/** Known values of {@link ApimIdentityType} that the service accepts. */ -export enum KnownApimIdentityType { - /** SystemAssigned */ - SystemAssigned = "SystemAssigned", - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", - /** None */ - None = "None" +/** Known values of {@link PreferredIPVersion} that the service accepts. */ +export enum KnownPreferredIPVersion { + /** IPv4 */ + IPv4 = "IPv4" } /** - * Defines values for ApimIdentityType. \ - * {@link KnownApimIdentityType} can be used interchangeably with ApimIdentityType, + * Defines values for PreferredIPVersion. \ + * {@link KnownPreferredIPVersion} can be used interchangeably with PreferredIPVersion, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned, UserAssigned** \ - * **None** + * **IPv4** */ -export type ApimIdentityType = string; +export type PreferredIPVersion = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" +/** Known values of {@link ConnectivityCheckProtocol} that the service accepts. */ +export enum KnownConnectivityCheckProtocol { + /** TCP */ + TCP = "TCP", + /** Http */ + Http = "HTTP", + /** Https */ + Https = "HTTPS" } /** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * Defines values for ConnectivityCheckProtocol. \ + * {@link KnownConnectivityCheckProtocol} can be used interchangeably with ConnectivityCheckProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** + * **TCP** \ + * **HTTP** \ + * **HTTPS** */ -export type CreatedByType = string; +export type ConnectivityCheckProtocol = string; -/** Known values of {@link TemplateName} that the service accepts. */ -export enum KnownTemplateName { - /** ApplicationApprovedNotificationMessage */ - ApplicationApprovedNotificationMessage = "applicationApprovedNotificationMessage", - /** AccountClosedDeveloper */ - AccountClosedDeveloper = "accountClosedDeveloper", - /** QuotaLimitApproachingDeveloperNotificationMessage */ - QuotaLimitApproachingDeveloperNotificationMessage = "quotaLimitApproachingDeveloperNotificationMessage", - /** NewDeveloperNotificationMessage */ - NewDeveloperNotificationMessage = "newDeveloperNotificationMessage", - /** EmailChangeIdentityDefault */ - EmailChangeIdentityDefault = "emailChangeIdentityDefault", - /** InviteUserNotificationMessage */ - InviteUserNotificationMessage = "inviteUserNotificationMessage", - /** NewCommentNotificationMessage */ - NewCommentNotificationMessage = "newCommentNotificationMessage", - /** ConfirmSignUpIdentityDefault */ - ConfirmSignUpIdentityDefault = "confirmSignUpIdentityDefault", - /** NewIssueNotificationMessage */ - NewIssueNotificationMessage = "newIssueNotificationMessage", - /** PurchaseDeveloperNotificationMessage */ - PurchaseDeveloperNotificationMessage = "purchaseDeveloperNotificationMessage", - /** PasswordResetIdentityDefault */ - PasswordResetIdentityDefault = "passwordResetIdentityDefault", - /** PasswordResetByAdminNotificationMessage */ - PasswordResetByAdminNotificationMessage = "passwordResetByAdminNotificationMessage", - /** RejectDeveloperNotificationMessage */ - RejectDeveloperNotificationMessage = "rejectDeveloperNotificationMessage", - /** RequestDeveloperNotificationMessage */ - RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage" +/** Known values of {@link Method} that the service accepts. */ +export enum KnownMethod { + /** GET */ + GET = "GET", + /** Post */ + Post = "POST" } /** - * Defines values for TemplateName. \ - * {@link KnownTemplateName} can be used interchangeably with TemplateName, + * Defines values for Method. \ + * {@link KnownMethod} can be used interchangeably with Method, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **applicationApprovedNotificationMessage** \ - * **accountClosedDeveloper** \ - * **quotaLimitApproachingDeveloperNotificationMessage** \ - * **newDeveloperNotificationMessage** \ - * **emailChangeIdentityDefault** \ - * **inviteUserNotificationMessage** \ - * **newCommentNotificationMessage** \ - * **confirmSignUpIdentityDefault** \ - * **newIssueNotificationMessage** \ - * **purchaseDeveloperNotificationMessage** \ - * **passwordResetIdentityDefault** \ - * **passwordResetByAdminNotificationMessage** \ - * **rejectDeveloperNotificationMessage** \ - * **requestDeveloperNotificationMessage** + * **GET** \ + * **POST** */ -export type TemplateName = string; +export type Method = string; -/** Known values of {@link UserState} that the service accepts. */ -export enum KnownUserState { - /** User state is active. */ - Active = "active", - /** User is blocked. Blocked users cannot authenticate at developer portal or call API. */ - Blocked = "blocked", - /** User account is pending. Requires identity confirmation before it can be made active. */ - Pending = "pending", - /** User account is closed. All identities and related entities are removed. */ - Deleted = "deleted" +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** Local */ + Local = "Local", + /** Inbound */ + Inbound = "Inbound", + /** Outbound */ + Outbound = "Outbound" } /** - * Defines values for UserState. \ - * {@link KnownUserState} can be used interchangeably with UserState, + * Defines values for Origin. \ + * {@link KnownOrigin} can be used interchangeably with Origin, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **active**: User state is active. \ - * **blocked**: User is blocked. Blocked users cannot authenticate at developer portal or call API. \ - * **pending**: User account is pending. Requires identity confirmation before it can be made active. \ - * **deleted**: User account is closed. All identities and related entities are removed. + * **Local** \ + * **Inbound** \ + * **Outbound** */ -export type UserState = string; +export type Origin = string; -/** Known values of {@link IdentityProviderType} that the service accepts. */ -export enum KnownIdentityProviderType { - /** Facebook as Identity provider. */ - Facebook = "facebook", - /** Google as Identity provider. */ - Google = "google", - /** Microsoft Live as Identity provider. */ - Microsoft = "microsoft", - /** Twitter as Identity provider. */ - Twitter = "twitter", - /** Azure Active Directory as Identity provider. */ - Aad = "aad", - /** Azure Active Directory B2C as Identity provider. */ - AadB2C = "aadB2C" +/** Known values of {@link Severity} that the service accepts. */ +export enum KnownSeverity { + /** Error */ + Error = "Error", + /** Warning */ + Warning = "Warning" } /** - * Defines values for IdentityProviderType. \ - * {@link KnownIdentityProviderType} can be used interchangeably with IdentityProviderType, + * Defines values for Severity. \ + * {@link KnownSeverity} can be used interchangeably with Severity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **facebook**: Facebook as Identity provider. \ - * **google**: Google as Identity provider. \ - * **microsoft**: Microsoft Live as Identity provider. \ - * **twitter**: Twitter as Identity provider. \ - * **aad**: Azure Active Directory as Identity provider. \ - * **aadB2C**: Azure Active Directory B2C as Identity provider. + * **Error** \ + * **Warning** */ -export type IdentityProviderType = string; +export type Severity = string; -/** Known values of {@link LoggerType} that the service accepts. */ -export enum KnownLoggerType { - /** Azure Event Hub as log destination. */ - AzureEventHub = "azureEventHub", - /** Azure Application Insights as log destination. */ - ApplicationInsights = "applicationInsights", - /** Azure Monitor */ - AzureMonitor = "azureMonitor" +/** Known values of {@link IssueType} that the service accepts. */ +export enum KnownIssueType { + /** Unknown */ + Unknown = "Unknown", + /** AgentStopped */ + AgentStopped = "AgentStopped", + /** GuestFirewall */ + GuestFirewall = "GuestFirewall", + /** DnsResolution */ + DnsResolution = "DnsResolution", + /** SocketBind */ + SocketBind = "SocketBind", + /** NetworkSecurityRule */ + NetworkSecurityRule = "NetworkSecurityRule", + /** UserDefinedRoute */ + UserDefinedRoute = "UserDefinedRoute", + /** PortThrottled */ + PortThrottled = "PortThrottled", + /** Platform */ + Platform = "Platform" } /** - * Defines values for LoggerType. \ - * {@link KnownLoggerType} can be used interchangeably with LoggerType, + * Defines values for IssueType. \ + * {@link KnownIssueType} can be used interchangeably with IssueType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **azureEventHub**: Azure Event Hub as log destination. \ - * **applicationInsights**: Azure Application Insights as log destination. \ - * **azureMonitor**: Azure Monitor + * **Unknown** \ + * **AgentStopped** \ + * **GuestFirewall** \ + * **DnsResolution** \ + * **SocketBind** \ + * **NetworkSecurityRule** \ + * **UserDefinedRoute** \ + * **PortThrottled** \ + * **Platform** */ -export type LoggerType = string; +export type IssueType = string; -/** Known values of {@link ConnectivityStatusType} that the service accepts. */ -export enum KnownConnectivityStatusType { - /** Initializing */ - Initializing = "initializing", - /** Success */ - Success = "success", - /** Failure */ - Failure = "failure" +/** Known values of {@link ConnectionStatus} that the service accepts. */ +export enum KnownConnectionStatus { + /** Unknown */ + Unknown = "Unknown", + /** Connected */ + Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected", + /** Degraded */ + Degraded = "Degraded" } /** - * Defines values for ConnectivityStatusType. \ - * {@link KnownConnectivityStatusType} can be used interchangeably with ConnectivityStatusType, + * Defines values for ConnectionStatus. \ + * {@link KnownConnectionStatus} can be used interchangeably with ConnectionStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **initializing** \ - * **success** \ - * **failure** + * **Unknown** \ + * **Connected** \ + * **Disconnected** \ + * **Degraded** */ -export type ConnectivityStatusType = string; +export type ConnectionStatus = string; -/** Known values of {@link NotificationName} that the service accepts. */ -export enum KnownNotificationName { - /** The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. */ - RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage", - /** The following email recipients and users will receive email notifications about new API product subscriptions. */ - PurchasePublisherNotificationMessage = "PurchasePublisherNotificationMessage", - /** The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. */ - NewApplicationNotificationMessage = "NewApplicationNotificationMessage", - /** The following recipients will receive blind carbon copies of all emails sent to developers. */ - BCC = "BCC", - /** The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. */ - NewIssuePublisherNotificationMessage = "NewIssuePublisherNotificationMessage", - /** The following email recipients and users will receive email notifications when developer closes his account. */ - AccountClosedPublisher = "AccountClosedPublisher", - /** The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. */ - QuotaLimitApproachingPublisherNotificationMessage = "QuotaLimitApproachingPublisherNotificationMessage" +/** Known values of {@link SkuType} that the service accepts. */ +export enum KnownSkuType { + /** Developer SKU of Api Management. */ + Developer = "Developer", + /** Standard SKU of Api Management. */ + Standard = "Standard", + /** Premium SKU of Api Management. */ + Premium = "Premium", + /** Basic SKU of Api Management. */ + Basic = "Basic", + /** Consumption SKU of Api Management. */ + Consumption = "Consumption", + /** Isolated SKU of Api Management. */ + Isolated = "Isolated" } /** - * Defines values for NotificationName. \ - * {@link KnownNotificationName} can be used interchangeably with NotificationName, + * Defines values for SkuType. \ + * {@link KnownSkuType} can be used interchangeably with SkuType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **RequestPublisherNotificationMessage**: The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. \ - * **PurchasePublisherNotificationMessage**: The following email recipients and users will receive email notifications about new API product subscriptions. \ - * **NewApplicationNotificationMessage**: The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. \ - * **BCC**: The following recipients will receive blind carbon copies of all emails sent to developers. \ - * **NewIssuePublisherNotificationMessage**: The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. \ - * **AccountClosedPublisher**: The following email recipients and users will receive email notifications when developer closes his account. \ - * **QuotaLimitApproachingPublisherNotificationMessage**: The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. + * **Developer**: Developer SKU of Api Management. \ + * **Standard**: Standard SKU of Api Management. \ + * **Premium**: Premium SKU of Api Management. \ + * **Basic**: Basic SKU of Api Management. \ + * **Consumption**: Consumption SKU of Api Management. \ + * **Isolated**: Isolated SKU of Api Management. */ -export type NotificationName = string; +export type SkuType = string; -/** Known values of {@link PolicyFragmentContentFormat} that the service accepts. */ -export enum KnownPolicyFragmentContentFormat { - /** The contents are inline and Content type is an XML document. */ - Xml = "xml", - /** The contents are inline and Content type is a non XML encoded policy document. */ - Rawxml = "rawxml" +/** Known values of {@link ResourceSkuCapacityScaleType} that the service accepts. */ +export enum KnownResourceSkuCapacityScaleType { + /** Supported scale type automatic. */ + Automatic = "automatic", + /** Supported scale type manual. */ + Manual = "manual", + /** Scaling not supported. */ + None = "none" } /** - * Defines values for PolicyFragmentContentFormat. \ - * {@link KnownPolicyFragmentContentFormat} can be used interchangeably with PolicyFragmentContentFormat, + * Defines values for ResourceSkuCapacityScaleType. \ + * {@link KnownResourceSkuCapacityScaleType} can be used interchangeably with ResourceSkuCapacityScaleType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **xml**: The contents are inline and Content type is an XML document. \ - * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. + * **automatic**: Supported scale type automatic. \ + * **manual**: Supported scale type manual. \ + * **none**: Scaling not supported. */ -export type PolicyFragmentContentFormat = string; +export type ResourceSkuCapacityScaleType = string; -/** Known values of {@link PortalSettingsCspMode} that the service accepts. */ -export enum KnownPortalSettingsCspMode { - /** The browser will block requests not matching allowed origins. */ - Enabled = "enabled", - /** The browser will not apply the origin restrictions. */ - Disabled = "disabled", - /** The browser will report requests not matching allowed origins without blocking them. */ - ReportOnly = "reportOnly" +/** Known values of {@link AccessType} that the service accepts. */ +export enum KnownAccessType { + /** Use access key. */ + AccessKey = "AccessKey", + /** Use system assigned managed identity. */ + SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity", + /** Use user assigned managed identity. */ + UserAssignedManagedIdentity = "UserAssignedManagedIdentity" } /** - * Defines values for PortalSettingsCspMode. \ - * {@link KnownPortalSettingsCspMode} can be used interchangeably with PortalSettingsCspMode, + * Defines values for AccessType. \ + * {@link KnownAccessType} can be used interchangeably with AccessType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **enabled**: The browser will block requests not matching allowed origins. \ - * **disabled**: The browser will not apply the origin restrictions. \ - * **reportOnly**: The browser will report requests not matching allowed origins without blocking them. + * **AccessKey**: Use access key. \ + * **SystemAssignedManagedIdentity**: Use system assigned managed identity. \ + * **UserAssignedManagedIdentity**: Use user assigned managed identity. */ -export type PortalSettingsCspMode = string; +export type AccessType = string; -/** Known values of {@link PortalRevisionStatus} that the service accepts. */ -export enum KnownPortalRevisionStatus { - /** Portal's revision has been queued. */ - Pending = "pending", - /** Portal's revision is being published. */ - Publishing = "publishing", - /** Portal's revision publishing completed. */ - Completed = "completed", - /** Portal's revision publishing failed. */ - Failed = "failed" +/** Known values of {@link HostnameType} that the service accepts. */ +export enum KnownHostnameType { + /** Proxy */ + Proxy = "Proxy", + /** Portal */ + Portal = "Portal", + /** Management */ + Management = "Management", + /** Scm */ + Scm = "Scm", + /** DeveloperPortal */ + DeveloperPortal = "DeveloperPortal", + /** ConfigurationApi */ + ConfigurationApi = "ConfigurationApi" } /** - * Defines values for PortalRevisionStatus. \ - * {@link KnownPortalRevisionStatus} can be used interchangeably with PortalRevisionStatus, + * Defines values for HostnameType. \ + * {@link KnownHostnameType} can be used interchangeably with HostnameType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **pending**: Portal's revision has been queued. \ - * **publishing**: Portal's revision is being published. \ - * **completed**: Portal's revision publishing completed. \ - * **failed**: Portal's revision publishing failed. + * **Proxy** \ + * **Portal** \ + * **Management** \ + * **Scm** \ + * **DeveloperPortal** \ + * **ConfigurationApi** */ -export type PortalRevisionStatus = string; +export type HostnameType = string; -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", +/** Known values of {@link CertificateSource} that the service accepts. */ +export enum KnownCertificateSource { + /** Managed */ + Managed = "Managed", + /** KeyVault */ + KeyVault = "KeyVault", + /** Custom */ + Custom = "Custom", + /** BuiltIn */ + BuiltIn = "BuiltIn" +} + +/** + * Defines values for CertificateSource. \ + * {@link KnownCertificateSource} can be used interchangeably with CertificateSource, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Managed** \ + * **KeyVault** \ + * **Custom** \ + * **BuiltIn** + */ +export type CertificateSource = string; + +/** Known values of {@link CertificateStatus} that the service accepts. */ +export enum KnownCertificateStatus { + /** Completed */ + Completed = "Completed", /** Failed */ - Failed = "Failed" + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress" } /** - * Defines values for PrivateEndpointConnectionProvisioningState. \ - * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * Defines values for CertificateStatus. \ + * {@link KnownCertificateStatus} can be used interchangeably with CertificateStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Creating** \ - * **Deleting** \ - * **Failed** + * **Completed** \ + * **Failed** \ + * **InProgress** */ -export type PrivateEndpointConnectionProvisioningState = string; +export type CertificateStatus = string; -/** Known values of {@link SchemaType} that the service accepts. */ -export enum KnownSchemaType { - /** XML schema type. */ - Xml = "xml", - /** Json schema type. */ - Json = "json" +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for SchemaType. \ - * {@link KnownSchemaType} can be used interchangeably with SchemaType, + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **xml**: XML schema type. \ - * **json**: Json schema type. + * **Enabled** \ + * **Disabled** */ -export type SchemaType = string; +export type PublicNetworkAccess = string; -/** Known values of {@link SettingsTypeName} that the service accepts. */ -export enum KnownSettingsTypeName { - /** Public */ - Public = "public" +/** Known values of {@link LegacyApiState} that the service accepts. */ +export enum KnownLegacyApiState { + /** Legacy Configuration API (v1) is enabled for the service and self-hosted gateways can connect to it. */ + Enabled = "Enabled", + /** Legacy Configuration API (v1) is disabled for the service and self-hosted gateways can not connect to it. */ + Disabled = "Disabled" } /** - * Defines values for SettingsTypeName. \ - * {@link KnownSettingsTypeName} can be used interchangeably with SettingsTypeName, + * Defines values for LegacyApiState. \ + * {@link KnownLegacyApiState} can be used interchangeably with LegacyApiState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **public** + * **Enabled**: Legacy Configuration API (v1) is enabled for the service and self-hosted gateways can connect to it. \ + * **Disabled**: Legacy Configuration API (v1) is disabled for the service and self-hosted gateways can not connect to it. */ -export type SettingsTypeName = string; +export type LegacyApiState = string; -/** Known values of {@link AppType} that the service accepts. */ -export enum KnownAppType { - /** User create request was sent by legacy developer portal. */ - Portal = "portal", - /** User create request was sent by new developer portal. */ - DeveloperPortal = "developerPortal" +/** Known values of {@link NatGatewayState} that the service accepts. */ +export enum KnownNatGatewayState { + /** Nat Gateway is enabled for the service. */ + Enabled = "Enabled", + /** Nat Gateway is disabled for the service. */ + Disabled = "Disabled" } /** - * Defines values for AppType. \ - * {@link KnownAppType} can be used interchangeably with AppType, + * Defines values for NatGatewayState. \ + * {@link KnownNatGatewayState} can be used interchangeably with NatGatewayState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **portal**: User create request was sent by legacy developer portal. \ - * **developerPortal**: User create request was sent by new developer portal. + * **Enabled**: Nat Gateway is enabled for the service. \ + * **Disabled**: Nat Gateway is disabled for the service. */ -export type AppType = string; +export type NatGatewayState = string; + +/** Known values of {@link PlatformVersion} that the service accepts. */ +export enum KnownPlatformVersion { + /** Platform version cannot be determined, as compute platform is not deployed. */ + Undetermined = "undetermined", + /** Platform running the service on Single Tenant V1 platform. */ + Stv1 = "stv1", + /** Platform running the service on Single Tenant V2 platform. */ + Stv2 = "stv2", + /** Platform running the service on Multi Tenant V1 platform. */ + Mtv1 = "mtv1", + /** Platform running the service on Single Tenant V2 platform on newer Hardware. */ + Stv21 = "stv2.1" +} + +/** + * Defines values for PlatformVersion. \ + * {@link KnownPlatformVersion} can be used interchangeably with PlatformVersion, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **undetermined**: Platform version cannot be determined, as compute platform is not deployed. \ + * **stv1**: Platform running the service on Single Tenant V1 platform. \ + * **stv2**: Platform running the service on Single Tenant V2 platform. \ + * **mtv1**: Platform running the service on Multi Tenant V1 platform. \ + * **stv2.1**: Platform running the service on Single Tenant V2 platform on newer Hardware. + */ +export type PlatformVersion = string; + +/** Known values of {@link CertificateConfigurationStoreName} that the service accepts. */ +export enum KnownCertificateConfigurationStoreName { + /** CertificateAuthority */ + CertificateAuthority = "CertificateAuthority", + /** Root */ + Root = "Root" +} + +/** + * Defines values for CertificateConfigurationStoreName. \ + * {@link KnownCertificateConfigurationStoreName} can be used interchangeably with CertificateConfigurationStoreName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CertificateAuthority** \ + * **Root** + */ +export type CertificateConfigurationStoreName = string; + +/** Known values of {@link VirtualNetworkType} that the service accepts. */ +export enum KnownVirtualNetworkType { + /** The service is not part of any Virtual Network. */ + None = "None", + /** The service is part of Virtual Network and it is accessible from Internet. */ + External = "External", + /** The service is part of Virtual Network and it is only accessible from within the virtual network. */ + Internal = "Internal" +} + +/** + * Defines values for VirtualNetworkType. \ + * {@link KnownVirtualNetworkType} can be used interchangeably with VirtualNetworkType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: The service is not part of any Virtual Network. \ + * **External**: The service is part of Virtual Network and it is accessible from Internet. \ + * **Internal**: The service is part of Virtual Network and it is only accessible from within the virtual network. + */ +export type VirtualNetworkType = string; + +/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownPrivateEndpointServiceConnectionStatus { + /** Pending */ + Pending = "Pending", + /** Approved */ + Approved = "Approved", + /** Rejected */ + Rejected = "Rejected" +} + +/** + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **Approved** \ + * **Rejected** + */ +export type PrivateEndpointServiceConnectionStatus = string; + +/** Known values of {@link LegacyPortalStatus} that the service accepts. */ +export enum KnownLegacyPortalStatus { + /** Legacy Portal is enabled for the service. */ + Enabled = "Enabled", + /** Legacy Portal is disabled for the service. */ + Disabled = "Disabled" +} + +/** + * Defines values for LegacyPortalStatus. \ + * {@link KnownLegacyPortalStatus} can be used interchangeably with LegacyPortalStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Legacy Portal is enabled for the service. \ + * **Disabled**: Legacy Portal is disabled for the service. + */ +export type LegacyPortalStatus = string; + +/** Known values of {@link DeveloperPortalStatus} that the service accepts. */ +export enum KnownDeveloperPortalStatus { + /** Developer Portal is enabled for the service. */ + Enabled = "Enabled", + /** Developer Portal is disabled for the service. */ + Disabled = "Disabled" +} + +/** + * Defines values for DeveloperPortalStatus. \ + * {@link KnownDeveloperPortalStatus} can be used interchangeably with DeveloperPortalStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Developer Portal is enabled for the service. \ + * **Disabled**: Developer Portal is disabled for the service. + */ +export type DeveloperPortalStatus = string; + +/** Known values of {@link ApimIdentityType} that the service accepts. */ +export enum KnownApimIdentityType { + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", + /** None */ + None = "None" +} + +/** + * Defines values for ApimIdentityType. \ + * {@link KnownApimIdentityType} can be used interchangeably with ApimIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned, UserAssigned** \ + * **None** + */ +export type ApimIdentityType = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link MigrateToStv2Mode} that the service accepts. */ +export enum KnownMigrateToStv2Mode { + /** Migrate API Management service to stv2 from stv1, by reserving the IP Address of the service. This will have a downtime of upto 15 minutes, while the IP address is getting migrate to new infrastructure. */ + PreserveIp = "PreserveIp", + /** Migrate API Management service to stv2 from stv1. This will have no downtime as the service configuration will be migrated to new infrastructure, but the IP address will changed. */ + NewIP = "NewIP" +} + +/** + * Defines values for MigrateToStv2Mode. \ + * {@link KnownMigrateToStv2Mode} can be used interchangeably with MigrateToStv2Mode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PreserveIp**: Migrate API Management service to stv2 from stv1, by reserving the IP Address of the service. This will have a downtime of upto 15 minutes, while the IP address is getting migrate to new infrastructure. \ + * **NewIP**: Migrate API Management service to stv2 from stv1. This will have no downtime as the service configuration will be migrated to new infrastructure, but the IP address will changed. + */ +export type MigrateToStv2Mode = string; + +/** Known values of {@link TemplateName} that the service accepts. */ +export enum KnownTemplateName { + /** ApplicationApprovedNotificationMessage */ + ApplicationApprovedNotificationMessage = "applicationApprovedNotificationMessage", + /** AccountClosedDeveloper */ + AccountClosedDeveloper = "accountClosedDeveloper", + /** QuotaLimitApproachingDeveloperNotificationMessage */ + QuotaLimitApproachingDeveloperNotificationMessage = "quotaLimitApproachingDeveloperNotificationMessage", + /** NewDeveloperNotificationMessage */ + NewDeveloperNotificationMessage = "newDeveloperNotificationMessage", + /** EmailChangeIdentityDefault */ + EmailChangeIdentityDefault = "emailChangeIdentityDefault", + /** InviteUserNotificationMessage */ + InviteUserNotificationMessage = "inviteUserNotificationMessage", + /** NewCommentNotificationMessage */ + NewCommentNotificationMessage = "newCommentNotificationMessage", + /** ConfirmSignUpIdentityDefault */ + ConfirmSignUpIdentityDefault = "confirmSignUpIdentityDefault", + /** NewIssueNotificationMessage */ + NewIssueNotificationMessage = "newIssueNotificationMessage", + /** PurchaseDeveloperNotificationMessage */ + PurchaseDeveloperNotificationMessage = "purchaseDeveloperNotificationMessage", + /** PasswordResetIdentityDefault */ + PasswordResetIdentityDefault = "passwordResetIdentityDefault", + /** PasswordResetByAdminNotificationMessage */ + PasswordResetByAdminNotificationMessage = "passwordResetByAdminNotificationMessage", + /** RejectDeveloperNotificationMessage */ + RejectDeveloperNotificationMessage = "rejectDeveloperNotificationMessage", + /** RequestDeveloperNotificationMessage */ + RequestDeveloperNotificationMessage = "requestDeveloperNotificationMessage" +} + +/** + * Defines values for TemplateName. \ + * {@link KnownTemplateName} can be used interchangeably with TemplateName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **applicationApprovedNotificationMessage** \ + * **accountClosedDeveloper** \ + * **quotaLimitApproachingDeveloperNotificationMessage** \ + * **newDeveloperNotificationMessage** \ + * **emailChangeIdentityDefault** \ + * **inviteUserNotificationMessage** \ + * **newCommentNotificationMessage** \ + * **confirmSignUpIdentityDefault** \ + * **newIssueNotificationMessage** \ + * **purchaseDeveloperNotificationMessage** \ + * **passwordResetIdentityDefault** \ + * **passwordResetByAdminNotificationMessage** \ + * **rejectDeveloperNotificationMessage** \ + * **requestDeveloperNotificationMessage** + */ +export type TemplateName = string; + +/** Known values of {@link GatewayListDebugCredentialsContractPurpose} that the service accepts. */ +export enum KnownGatewayListDebugCredentialsContractPurpose { + /** The tracing purpose. */ + Tracing = "tracing" +} + +/** + * Defines values for GatewayListDebugCredentialsContractPurpose. \ + * {@link KnownGatewayListDebugCredentialsContractPurpose} can be used interchangeably with GatewayListDebugCredentialsContractPurpose, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **tracing**: The tracing purpose. + */ +export type GatewayListDebugCredentialsContractPurpose = string; + +/** Known values of {@link UserState} that the service accepts. */ +export enum KnownUserState { + /** User state is active. */ + Active = "active", + /** User is blocked. Blocked users cannot authenticate at developer portal or call API. */ + Blocked = "blocked", + /** User account is pending. Requires identity confirmation before it can be made active. */ + Pending = "pending", + /** User account is closed. All identities and related entities are removed. */ + Deleted = "deleted" +} + +/** + * Defines values for UserState. \ + * {@link KnownUserState} can be used interchangeably with UserState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **active**: User state is active. \ + * **blocked**: User is blocked. Blocked users cannot authenticate at developer portal or call API. \ + * **pending**: User account is pending. Requires identity confirmation before it can be made active. \ + * **deleted**: User account is closed. All identities and related entities are removed. + */ +export type UserState = string; + +/** Known values of {@link IdentityProviderType} that the service accepts. */ +export enum KnownIdentityProviderType { + /** Facebook as Identity provider. */ + Facebook = "facebook", + /** Google as Identity provider. */ + Google = "google", + /** Microsoft Live as Identity provider. */ + Microsoft = "microsoft", + /** Twitter as Identity provider. */ + Twitter = "twitter", + /** Azure Active Directory as Identity provider. */ + Aad = "aad", + /** Azure Active Directory B2C as Identity provider. */ + AadB2C = "aadB2C" +} + +/** + * Defines values for IdentityProviderType. \ + * {@link KnownIdentityProviderType} can be used interchangeably with IdentityProviderType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **facebook**: Facebook as Identity provider. \ + * **google**: Google as Identity provider. \ + * **microsoft**: Microsoft Live as Identity provider. \ + * **twitter**: Twitter as Identity provider. \ + * **aad**: Azure Active Directory as Identity provider. \ + * **aadB2C**: Azure Active Directory B2C as Identity provider. + */ +export type IdentityProviderType = string; + +/** Known values of {@link LoggerType} that the service accepts. */ +export enum KnownLoggerType { + /** Azure Event Hub as log destination. */ + AzureEventHub = "azureEventHub", + /** Azure Application Insights as log destination. */ + ApplicationInsights = "applicationInsights", + /** Azure Monitor */ + AzureMonitor = "azureMonitor" +} + +/** + * Defines values for LoggerType. \ + * {@link KnownLoggerType} can be used interchangeably with LoggerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **azureEventHub**: Azure Event Hub as log destination. \ + * **applicationInsights**: Azure Application Insights as log destination. \ + * **azureMonitor**: Azure Monitor + */ +export type LoggerType = string; + +/** Known values of {@link ConnectivityStatusType} that the service accepts. */ +export enum KnownConnectivityStatusType { + /** Initializing */ + Initializing = "initializing", + /** Success */ + Success = "success", + /** Failure */ + Failure = "failure" +} + +/** + * Defines values for ConnectivityStatusType. \ + * {@link KnownConnectivityStatusType} can be used interchangeably with ConnectivityStatusType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **initializing** \ + * **success** \ + * **failure** + */ +export type ConnectivityStatusType = string; + +/** Known values of {@link NotificationName} that the service accepts. */ +export enum KnownNotificationName { + /** The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. */ + RequestPublisherNotificationMessage = "RequestPublisherNotificationMessage", + /** The following email recipients and users will receive email notifications about new API product subscriptions. */ + PurchasePublisherNotificationMessage = "PurchasePublisherNotificationMessage", + /** The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. */ + NewApplicationNotificationMessage = "NewApplicationNotificationMessage", + /** The following recipients will receive blind carbon copies of all emails sent to developers. */ + BCC = "BCC", + /** The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. */ + NewIssuePublisherNotificationMessage = "NewIssuePublisherNotificationMessage", + /** The following email recipients and users will receive email notifications when developer closes his account. */ + AccountClosedPublisher = "AccountClosedPublisher", + /** The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. */ + QuotaLimitApproachingPublisherNotificationMessage = "QuotaLimitApproachingPublisherNotificationMessage" +} + +/** + * Defines values for NotificationName. \ + * {@link KnownNotificationName} can be used interchangeably with NotificationName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **RequestPublisherNotificationMessage**: The following email recipients and users will receive email notifications about subscription requests for API products requiring approval. \ + * **PurchasePublisherNotificationMessage**: The following email recipients and users will receive email notifications about new API product subscriptions. \ + * **NewApplicationNotificationMessage**: The following email recipients and users will receive email notifications when new applications are submitted to the application gallery. \ + * **BCC**: The following recipients will receive blind carbon copies of all emails sent to developers. \ + * **NewIssuePublisherNotificationMessage**: The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal. \ + * **AccountClosedPublisher**: The following email recipients and users will receive email notifications when developer closes his account. \ + * **QuotaLimitApproachingPublisherNotificationMessage**: The following email recipients and users will receive email notifications when subscription usage gets close to usage quota. + */ +export type NotificationName = string; + +/** Known values of {@link PolicyFragmentContentFormat} that the service accepts. */ +export enum KnownPolicyFragmentContentFormat { + /** The contents are inline and Content type is an XML document. */ + Xml = "xml", + /** The contents are inline and Content type is a non XML encoded policy document. */ + Rawxml = "rawxml" +} + +/** + * Defines values for PolicyFragmentContentFormat. \ + * {@link KnownPolicyFragmentContentFormat} can be used interchangeably with PolicyFragmentContentFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: The contents are inline and Content type is an XML document. \ + * **rawxml**: The contents are inline and Content type is a non XML encoded policy document. + */ +export type PolicyFragmentContentFormat = string; + +/** Known values of {@link PortalSettingsCspMode} that the service accepts. */ +export enum KnownPortalSettingsCspMode { + /** The browser will block requests not matching allowed origins. */ + Enabled = "enabled", + /** The browser will not apply the origin restrictions. */ + Disabled = "disabled", + /** The browser will report requests not matching allowed origins without blocking them. */ + ReportOnly = "reportOnly" +} + +/** + * Defines values for PortalSettingsCspMode. \ + * {@link KnownPortalSettingsCspMode} can be used interchangeably with PortalSettingsCspMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **enabled**: The browser will block requests not matching allowed origins. \ + * **disabled**: The browser will not apply the origin restrictions. \ + * **reportOnly**: The browser will report requests not matching allowed origins without blocking them. + */ +export type PortalSettingsCspMode = string; + +/** Known values of {@link PortalRevisionStatus} that the service accepts. */ +export enum KnownPortalRevisionStatus { + /** Portal's revision has been queued. */ + Pending = "pending", + /** Portal's revision is being published. */ + Publishing = "publishing", + /** Portal's revision publishing completed. */ + Completed = "completed", + /** Portal's revision publishing failed. */ + Failed = "failed" +} + +/** + * Defines values for PortalRevisionStatus. \ + * {@link KnownPortalRevisionStatus} can be used interchangeably with PortalRevisionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **pending**: Portal's revision has been queued. \ + * **publishing**: Portal's revision is being published. \ + * **completed**: Portal's revision publishing completed. \ + * **failed**: Portal's revision publishing failed. + */ +export type PortalRevisionStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** + */ +export type PrivateEndpointConnectionProvisioningState = string; + +/** Known values of {@link SchemaType} that the service accepts. */ +export enum KnownSchemaType { + /** XML schema type. */ + Xml = "xml", + /** Json schema type. */ + Json = "json" +} + +/** + * Defines values for SchemaType. \ + * {@link KnownSchemaType} can be used interchangeably with SchemaType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **xml**: XML schema type. \ + * **json**: Json schema type. + */ +export type SchemaType = string; + +/** Known values of {@link SettingsTypeName} that the service accepts. */ +export enum KnownSettingsTypeName { + /** Public */ + Public = "public" +} + +/** + * Defines values for SettingsTypeName. \ + * {@link KnownSettingsTypeName} can be used interchangeably with SettingsTypeName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **public** + */ +export type SettingsTypeName = string; + +/** Known values of {@link AppType} that the service accepts. */ +export enum KnownAppType { + /** User create request was sent by legacy developer portal. */ + Portal = "portal", + /** User create request was sent by new developer portal. */ + DeveloperPortal = "developerPortal" +} + +/** + * Defines values for AppType. \ + * {@link KnownAppType} can be used interchangeably with AppType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **portal**: User create request was sent by legacy developer portal. \ + * **developerPortal**: User create request was sent by new developer portal. + */ +export type AppType = string; + +/** Known values of {@link AccessIdName} that the service accepts. */ +export enum KnownAccessIdName { + /** Access */ + Access = "access", + /** GitAccess */ + GitAccess = "gitAccess" +} + +/** + * Defines values for AccessIdName. \ + * {@link KnownAccessIdName} can be used interchangeably with AccessIdName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **access** \ + * **gitAccess** + */ +export type AccessIdName = string; + +/** Known values of {@link ConfigurationIdName} that the service accepts. */ +export enum KnownConfigurationIdName { + /** Configuration */ + Configuration = "configuration" +} + +/** + * Defines values for ConfigurationIdName. \ + * {@link KnownConfigurationIdName} can be used interchangeably with ConfigurationIdName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **configuration** + */ +export type ConfigurationIdName = string; + +/** Known values of {@link Confirmation} that the service accepts. */ +export enum KnownConfirmation { + /** Send an e-mail to the user confirming they have successfully signed up. */ + Signup = "signup", + /** Send an e-mail inviting the user to sign-up and complete registration. */ + Invite = "invite" +} + +/** + * Defines values for Confirmation. \ + * {@link KnownConfirmation} can be used interchangeably with Confirmation, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **signup**: Send an e-mail to the user confirming they have successfully signed up. \ + * **invite**: Send an e-mail inviting the user to sign-up and complete registration. + */ +export type Confirmation = string; + +/** Known values of {@link KeyVaultRefreshState} that the service accepts. */ +export enum KnownKeyVaultRefreshState { + /** Entities for which KeyVault refresh failed. */ + True = "true", + /** Entities for which KeyVault refresh succeeded */ + False = "false" +} + +/** + * Defines values for KeyVaultRefreshState. \ + * {@link KnownKeyVaultRefreshState} can be used interchangeably with KeyVaultRefreshState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true**: Entities for which KeyVault refresh failed. \ + * **false**: Entities for which KeyVault refresh succeeded + */ +export type KeyVaultRefreshState = string; +/** Defines values for ProductState. */ +export type ProductState = "notPublished" | "published"; +/** Defines values for AuthorizationMethod. */ +export type AuthorizationMethod = + | "HEAD" + | "OPTIONS" + | "TRACE" + | "GET" + | "POST" + | "PUT" + | "PATCH" + | "DELETE"; +/** Defines values for NameAvailabilityReason. */ +export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; +/** Defines values for KeyType. */ +export type KeyType = "primary" | "secondary"; +/** Defines values for GroupType. */ +export type GroupType = "custom" | "system" | "external"; +/** Defines values for PolicyScopeContract. */ +export type PolicyScopeContract = + | "Tenant" + | "Product" + | "Api" + | "Operation" + | "All"; +/** Defines values for SubscriptionState. */ +export type SubscriptionState = + | "suspended" + | "active" + | "expired" + | "submitted" + | "rejected" + | "cancelled"; +/** Defines values for ApiManagementSkuCapacityScaleType. */ +export type ApiManagementSkuCapacityScaleType = "Automatic" | "Manual" | "None"; +/** Defines values for ApiManagementSkuRestrictionsType. */ +export type ApiManagementSkuRestrictionsType = "Location" | "Zone"; +/** Defines values for ApiManagementSkuRestrictionsReasonCode. */ +export type ApiManagementSkuRestrictionsReasonCode = + | "QuotaId" + | "NotAvailableForSubscription"; +/** Defines values for AsyncOperationStatus. */ +export type AsyncOperationStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; +/** Defines values for AsyncResolverStatus. */ +export type AsyncResolverStatus = + | "Started" + | "InProgress" + | "Succeeded" + | "Failed"; + +/** Optional parameters. */ +export interface ApiListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include tags in the response. */ + tags?: string; + /** Include full ApiVersionSet resource in response */ + expandApiVersionSet?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type ApiListByServiceResponse = ApiCollection; + +/** Optional parameters. */ +export interface ApiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiGetResponse = ApiGetHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiCreateOrUpdateResponse = ApiCreateOrUpdateHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiUpdateResponse = ApiUpdateHeaders & ApiContract; + +/** Optional parameters. */ +export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { + /** Delete all revisions of the Api. */ + deleteRevisions?: boolean; +} + +/** Optional parameters. */ +export interface ApiListByTagsOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include not tagged APIs. */ + includeNotTaggedApis?: boolean; +} + +/** Contains response data for the listByTags operation. */ +export type ApiListByTagsResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiListByServiceNextResponse = ApiCollection; + +/** Optional parameters. */ +export interface ApiListByTagsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTagsNext operation. */ +export type ApiListByTagsNextResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiRevisionListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiRevisionListByServiceResponse = ApiRevisionCollection; + +/** Optional parameters. */ +export interface ApiRevisionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection; + +/** Optional parameters. */ +export interface ApiReleaseListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiReleaseListByServiceResponse = ApiReleaseCollection; + +/** Optional parameters. */ +export interface ApiReleaseGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiReleaseGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiReleaseGetResponse = ApiReleaseGetHeaders & ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiReleaseCreateOrUpdateResponse = ApiReleaseCreateOrUpdateHeaders & + ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiReleaseUpdateResponse = ApiReleaseUpdateHeaders & + ApiReleaseContract; + +/** Optional parameters. */ +export interface ApiReleaseDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiReleaseListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection; + +/** Optional parameters. */ +export interface ApiOperationListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include tags in the response. */ + tags?: string; +} + +/** Contains response data for the listByApi operation. */ +export type ApiOperationListByApiResponse = OperationCollection; + +/** Optional parameters. */ +export interface ApiOperationGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiOperationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiOperationGetResponse = ApiOperationGetHeaders & + OperationContract; + +/** Optional parameters. */ +export interface ApiOperationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiOperationCreateOrUpdateResponse = ApiOperationCreateOrUpdateHeaders & + OperationContract; + +/** Optional parameters. */ +export interface ApiOperationUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiOperationUpdateResponse = ApiOperationUpdateHeaders & + OperationContract; + +/** Optional parameters. */ +export interface ApiOperationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiOperationListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type ApiOperationListByApiNextResponse = OperationCollection; + +/** Optional parameters. */ +export interface ApiOperationPolicyListByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperation operation. */ +export type ApiOperationPolicyListByOperationResponse = PolicyCollection; + +/** Optional parameters. */ +export interface ApiOperationPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiOperationPolicyGetEntityTagResponse = ApiOperationPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiOperationPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type ApiOperationPolicyGetResponse = ApiOperationPolicyGetHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface ApiOperationPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiOperationPolicyCreateOrUpdateResponse = ApiOperationPolicyCreateOrUpdateHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface ApiOperationPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByOperationOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByOperation operation. */ +export type TagListByOperationResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByOperation operation. */ +export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders; + +/** Optional parameters. */ +export interface TagGetByOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByOperation operation. */ +export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToOperation operation. */ +export type TagAssignToOperationResponse = TagContract; + +/** Optional parameters. */ +export interface TagDetachFromOperationOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type TagListByApiResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByApi operation. */ +export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders; + +/** Optional parameters. */ +export interface TagGetByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByApi operation. */ +export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToApi operation. */ +export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; + +/** Optional parameters. */ +export interface TagDetachFromApiOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByProduct operation. */ +export type TagListByProductResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateByProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityStateByProduct operation. */ +export type TagGetEntityStateByProductResponse = TagGetEntityStateByProductHeaders; + +/** Optional parameters. */ +export interface TagGetByProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getByProduct operation. */ +export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; + +/** Optional parameters. */ +export interface TagAssignToProductOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the assignToProduct operation. */ +export type TagAssignToProductResponse = TagContract; + +/** Optional parameters. */ +export interface TagDetachFromProductOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Scope like 'apis', 'products' or 'apis/{apiId} */ + scope?: string; +} + +/** Contains response data for the listByService operation. */ +export type TagListByServiceResponse = TagCollection; + +/** Optional parameters. */ +export interface TagGetEntityStateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityState operation. */ +export type TagGetEntityStateResponse = TagGetEntityStateHeaders; + +/** Optional parameters. */ +export interface TagGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TagGetResponse = TagGetHeaders & TagContract; + +/** Optional parameters. */ +export interface TagCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; + +/** Optional parameters. */ +export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type TagUpdateResponse = TagUpdateHeaders & TagContract; + +/** Optional parameters. */ +export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface TagListByOperationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperationNext operation. */ +export type TagListByOperationNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type TagListByApiNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type TagListByProductNextResponse = TagCollection; + +/** Optional parameters. */ +export interface TagListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type TagListByServiceNextResponse = TagCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type GraphQLApiResolverListByApiResponse = ResolverCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GraphQLApiResolverGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & + ResolverContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GraphQLApiResolverListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolver operation. */ +export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResolverNext operation. */ +export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; + +/** Optional parameters. */ +export interface ApiProductListByApisOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApis operation. */ +export type ApiProductListByApisResponse = ProductCollection; + +/** Optional parameters. */ +export interface ApiProductListByApisNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApisNext operation. */ +export type ApiProductListByApisNextResponse = ProductCollection; + +/** Optional parameters. */ +export interface ApiPolicyListByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApi operation. */ +export type ApiPolicyListByApiResponse = PolicyCollection; + +/** Optional parameters. */ +export interface ApiPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + +/** Contains response data for the get operation. */ +export type ApiPolicyGetResponse = ApiPolicyGetHeaders & PolicyContract; + +/** Optional parameters. */ +export interface ApiPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiPolicyCreateOrUpdateResponse = ApiPolicyCreateOrUpdateHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface ApiPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiSchemaListByApiOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByApi operation. */ +export type ApiSchemaListByApiResponse = SchemaCollection; + +/** Optional parameters. */ +export interface ApiSchemaGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiSchemaGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiSchemaGetResponse = ApiSchemaGetHeaders & SchemaContract; + +/** Optional parameters. */ +export interface ApiSchemaCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiSchemaCreateOrUpdateResponse = ApiSchemaCreateOrUpdateHeaders & + SchemaContract; + +/** Optional parameters. */ +export interface ApiSchemaDeleteOptionalParams + extends coreClient.OperationOptions { + /** If true removes all references to the schema before deleting it. */ + force?: boolean; +} + +/** Optional parameters. */ +export interface ApiSchemaListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type ApiSchemaListByApiNextResponse = SchemaCollection; + +/** Optional parameters. */ +export interface ApiDiagnosticListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiDiagnosticListByServiceResponse = DiagnosticCollection; + +/** Optional parameters. */ +export interface ApiDiagnosticGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiDiagnosticGetEntityTagResponse = ApiDiagnosticGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiDiagnosticGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiDiagnosticGetResponse = ApiDiagnosticGetHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiDiagnosticCreateOrUpdateResponse = ApiDiagnosticCreateOrUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiDiagnosticUpdateResponse = ApiDiagnosticUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface ApiDiagnosticDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiDiagnosticListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection; + +/** Optional parameters. */ +export interface ApiIssueListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Expand the comment attachments. */ + expandCommentsAttachments?: boolean; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueListByServiceResponse = IssueCollection; + +/** Optional parameters. */ +export interface ApiIssueGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueGetEntityTagResponse = ApiIssueGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueGetOptionalParams extends coreClient.OperationOptions { + /** Expand the comment attachments. */ + expandCommentsAttachments?: boolean; +} + +/** Contains response data for the get operation. */ +export type ApiIssueGetResponse = ApiIssueGetHeaders & IssueContract; + +/** Optional parameters. */ +export interface ApiIssueCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueCreateOrUpdateResponse = ApiIssueCreateOrUpdateHeaders & + IssueContract; + +/** Optional parameters. */ +export interface ApiIssueUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiIssueUpdateResponse = ApiIssueUpdateHeaders & IssueContract; + +/** Optional parameters. */ +export interface ApiIssueDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueListByServiceNextResponse = IssueCollection; + +/** Optional parameters. */ +export interface ApiIssueCommentListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueCommentListByServiceResponse = IssueCommentCollection; + +/** Optional parameters. */ +export interface ApiIssueCommentGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueCommentGetEntityTagResponse = ApiIssueCommentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueCommentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiIssueCommentGetResponse = ApiIssueCommentGetHeaders & + IssueCommentContract; + +/** Optional parameters. */ +export interface ApiIssueCommentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueCommentCreateOrUpdateResponse = ApiIssueCommentCreateOrUpdateHeaders & + IssueCommentContract; + +/** Optional parameters. */ +export interface ApiIssueCommentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueCommentListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueCommentListByServiceNextResponse = IssueCommentCollection; + +/** Optional parameters. */ +export interface ApiIssueAttachmentListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiIssueAttachmentListByServiceResponse = IssueAttachmentCollection; + +/** Optional parameters. */ +export interface ApiIssueAttachmentGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiIssueAttachmentGetEntityTagResponse = ApiIssueAttachmentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiIssueAttachmentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiIssueAttachmentGetResponse = ApiIssueAttachmentGetHeaders & + IssueAttachmentContract; + +/** Optional parameters. */ +export interface ApiIssueAttachmentCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiIssueAttachmentCreateOrUpdateResponse = ApiIssueAttachmentCreateOrUpdateHeaders & + IssueAttachmentContract; + +/** Optional parameters. */ +export interface ApiIssueAttachmentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiIssueAttachmentListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiIssueAttachmentListByServiceNextResponse = IssueAttachmentCollection; + +/** Optional parameters. */ +export interface ApiTagDescriptionListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiTagDescriptionListByServiceResponse = TagDescriptionCollection; + +/** Optional parameters. */ +export interface ApiTagDescriptionGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiTagDescriptionGetEntityTagResponse = ApiTagDescriptionGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiTagDescriptionGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiTagDescriptionGetResponse = ApiTagDescriptionGetHeaders & + TagDescriptionContract; + +/** Optional parameters. */ +export interface ApiTagDescriptionCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiTagDescriptionCreateOrUpdateResponse = ApiTagDescriptionCreateOrUpdateHeaders & + TagDescriptionContract; + +/** Optional parameters. */ +export interface ApiTagDescriptionDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiTagDescriptionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiTagDescriptionListByServiceNextResponse = TagDescriptionCollection; + +/** Optional parameters. */ +export interface OperationListByTagsOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include not tagged Operations. */ + includeNotTaggedOperations?: boolean; +} + +/** Contains response data for the listByTags operation. */ +export type OperationListByTagsResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface OperationListByTagsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByTagsNext operation. */ +export type OperationListByTagsNextResponse = TagResourceCollection; + +/** Optional parameters. */ +export interface ApiWikiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; + +/** Optional parameters. */ +export interface ApiWikiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & + WikiContract; + +/** Optional parameters. */ +export interface ApiWikiUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; + +/** Optional parameters. */ +export interface ApiWikiDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiWikisListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the list operation. */ +export type ApiWikisListResponse = WikiCollection; + +/** Optional parameters. */ +export interface ApiWikisListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ApiWikisListNextResponse = WikiCollection; + +/** Optional parameters. */ +export interface ApiExportGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiExportGetResponse = ApiExportResult; + +/** Optional parameters. */ +export interface ApiVersionSetListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection; + +/** Optional parameters. */ +export interface ApiVersionSetGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type ApiVersionSetGetEntityTagResponse = ApiVersionSetGetEntityTagHeaders; + +/** Optional parameters. */ +export interface ApiVersionSetGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ApiVersionSetCreateOrUpdateResponse = ApiVersionSetCreateOrUpdateHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & + ApiVersionSetContract; + +/** Optional parameters. */ +export interface ApiVersionSetDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ApiVersionSetListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; + +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; + +/** Optional parameters. */ +export interface AuthorizationProviderGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & + AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationProviderCreateOrUpdateResponse = AuthorizationProviderCreateOrUpdateHeaders & + AuthorizationProviderContract; + +/** Optional parameters. */ +export interface AuthorizationProviderDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationProviderListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; + +/** Optional parameters. */ +export interface AuthorizationListByAuthorizationProviderOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByAuthorizationProvider operation. */ +export type AuthorizationListByAuthorizationProviderResponse = AuthorizationCollection; + +/** Optional parameters. */ +export interface AuthorizationGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationGetResponse = AuthorizationGetHeaders & + AuthorizationContract; + +/** Optional parameters. */ +export interface AuthorizationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationCreateOrUpdateResponse = AuthorizationCreateOrUpdateHeaders & + AuthorizationContract; + +/** Optional parameters. */ +export interface AuthorizationDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationConfirmConsentCodeOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the confirmConsentCode operation. */ +export type AuthorizationConfirmConsentCodeResponse = AuthorizationConfirmConsentCodeHeaders; + +/** Optional parameters. */ +export interface AuthorizationListByAuthorizationProviderNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAuthorizationProviderNext operation. */ +export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; + +/** Optional parameters. */ +export interface AuthorizationLoginLinksPostOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the post operation. */ +export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & + AuthorizationLoginResponseContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByAuthorization operation. */ +export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & + AuthorizationAccessPolicyContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & + AuthorizationAccessPolicyContract; + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByAuthorizationNext operation. */ +export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; + +/** Optional parameters. */ +export interface AuthorizationServerListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; + +/** Optional parameters. */ +export interface AuthorizationServerGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; + +/** Optional parameters. */ +export interface AuthorizationServerGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & + AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & + AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & + AuthorizationServerContract; + +/** Optional parameters. */ +export interface AuthorizationServerDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AuthorizationServerListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & + AuthorizationServerSecretsContract; + +/** Optional parameters. */ +export interface AuthorizationServerListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; + +/** Optional parameters. */ +export interface BackendListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type BackendListByServiceResponse = BackendCollection; + +/** Optional parameters. */ +export interface BackendGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link AccessIdName} that the service accepts. */ -export enum KnownAccessIdName { - /** Access */ - Access = "access", - /** GitAccess */ - GitAccess = "gitAccess" -} +/** Contains response data for the getEntityTag operation. */ +export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; -/** - * Defines values for AccessIdName. \ - * {@link KnownAccessIdName} can be used interchangeably with AccessIdName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **access** \ - * **gitAccess** - */ -export type AccessIdName = string; +/** Optional parameters. */ +export interface BackendGetOptionalParams extends coreClient.OperationOptions {} -/** Known values of {@link ConfigurationIdName} that the service accepts. */ -export enum KnownConfigurationIdName { - /** Configuration */ - Configuration = "configuration" +/** Contains response data for the get operation. */ +export type BackendGetResponse = BackendGetHeaders & BackendContract; + +/** Optional parameters. */ +export interface BackendCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** - * Defines values for ConfigurationIdName. \ - * {@link KnownConfigurationIdName} can be used interchangeably with ConfigurationIdName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **configuration** - */ -export type ConfigurationIdName = string; +/** Contains response data for the createOrUpdate operation. */ +export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & + BackendContract; -/** Known values of {@link Confirmation} that the service accepts. */ -export enum KnownConfirmation { - /** Send an e-mail to the user confirming they have successfully signed up. */ - Signup = "signup", - /** Send an e-mail inviting the user to sign-up and complete registration. */ - Invite = "invite" +/** Optional parameters. */ +export interface BackendUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type BackendUpdateResponse = BackendUpdateHeaders & BackendContract; + +/** Optional parameters. */ +export interface BackendDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface BackendReconnectOptionalParams + extends coreClient.OperationOptions { + /** Reconnect request parameters. */ + parameters?: BackendReconnectContract; } -/** - * Defines values for Confirmation. \ - * {@link KnownConfirmation} can be used interchangeably with Confirmation, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **signup**: Send an e-mail to the user confirming they have successfully signed up. \ - * **invite**: Send an e-mail inviting the user to sign-up and complete registration. - */ -export type Confirmation = string; -/** Defines values for ProductState. */ -export type ProductState = "notPublished" | "published"; -/** Defines values for AuthorizationMethod. */ -export type AuthorizationMethod = - | "HEAD" - | "OPTIONS" - | "TRACE" - | "GET" - | "POST" - | "PUT" - | "PATCH" - | "DELETE"; -/** Defines values for NameAvailabilityReason. */ -export type NameAvailabilityReason = "Valid" | "Invalid" | "AlreadyExists"; -/** Defines values for KeyType. */ -export type KeyType = "primary" | "secondary"; -/** Defines values for GroupType. */ -export type GroupType = "custom" | "system" | "external"; -/** Defines values for PolicyScopeContract. */ -export type PolicyScopeContract = - | "Tenant" - | "Product" - | "Api" - | "Operation" - | "All"; -/** Defines values for SubscriptionState. */ -export type SubscriptionState = - | "suspended" - | "active" - | "expired" - | "submitted" - | "rejected" - | "cancelled"; -/** Defines values for ApiManagementSkuCapacityScaleType. */ -export type ApiManagementSkuCapacityScaleType = "Automatic" | "Manual" | "None"; -/** Defines values for ApiManagementSkuRestrictionsType. */ -export type ApiManagementSkuRestrictionsType = "Location" | "Zone"; -/** Defines values for ApiManagementSkuRestrictionsReasonCode. */ -export type ApiManagementSkuRestrictionsReasonCode = - | "QuotaId" - | "NotAvailableForSubscription"; -/** Defines values for AsyncOperationStatus. */ -export type AsyncOperationStatus = - | "Started" - | "InProgress" - | "Succeeded" - | "Failed"; -/** Defines values for AsyncResolverStatus. */ -export type AsyncResolverStatus = - | "Started" - | "InProgress" - | "Succeeded" - | "Failed"; +/** Optional parameters. */ +export interface BackendListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type BackendListByServiceNextResponse = BackendCollection; /** Optional parameters. */ -export interface ApiListByServiceOptionalParams +export interface CacheListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Include tags in the response. */ - tags?: string; - /** Include full ApiVersionSet resource in response */ - expandApiVersionSet?: boolean; } /** Contains response data for the listByService operation. */ -export type ApiListByServiceResponse = ApiCollection; +export type CacheListByServiceResponse = CacheCollection; /** Optional parameters. */ -export interface ApiGetEntityTagOptionalParams +export interface CacheGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders; +export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiGetOptionalParams extends coreClient.OperationOptions {} +export interface CacheGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiGetResponse = ApiGetHeaders & ApiContract; +export type CacheGetResponse = CacheGetHeaders & CacheContract; /** Optional parameters. */ -export interface ApiCreateOrUpdateOptionalParams +export interface CacheCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiCreateOrUpdateResponse = ApiCreateOrUpdateHeaders & ApiContract; +export type CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & + CacheContract; /** Optional parameters. */ -export interface ApiUpdateOptionalParams extends coreClient.OperationOptions {} +export interface CacheUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiUpdateResponse = ApiUpdateHeaders & ApiContract; +export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; /** Optional parameters. */ -export interface ApiDeleteOptionalParams extends coreClient.OperationOptions { - /** Delete all revisions of the Api. */ - deleteRevisions?: boolean; -} +export interface CacheDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiListByTagsOptionalParams +export interface CacheListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type CacheListByServiceNextResponse = CacheCollection; + +/** Optional parameters. */ +export interface CertificateListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| subject | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| thumbprint | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| expirationDate | filter | ge, le, eq, ne, gt, lt | |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Include not tagged APIs. */ - includeNotTaggedApis?: boolean; + /** When set to true, the response contains only certificates entities which failed refresh. */ + isKeyVaultRefreshFailed?: boolean; } -/** Contains response data for the listByTags operation. */ -export type ApiListByTagsResponse = TagResourceCollection; +/** Contains response data for the listByService operation. */ +export type CertificateListByServiceResponse = CertificateCollection; /** Optional parameters. */ -export interface ApiListByServiceNextOptionalParams +export interface CertificateGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders; + +/** Optional parameters. */ +export interface CertificateGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CertificateGetResponse = CertificateGetHeaders & + CertificateContract; + +/** Optional parameters. */ +export interface CertificateCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type CertificateCreateOrUpdateResponse = CertificateCreateOrUpdateHeaders & + CertificateContract; + +/** Optional parameters. */ +export interface CertificateDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CertificateRefreshSecretOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the refreshSecret operation. */ +export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & + CertificateContract; + +/** Optional parameters. */ +export interface CertificateListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiListByServiceNextResponse = ApiCollection; +export type CertificateListByServiceNextResponse = CertificateCollection; /** Optional parameters. */ -export interface ApiListByTagsNextOptionalParams +export interface PerformConnectivityCheckAsyncOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the performConnectivityCheckAsync operation. */ +export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; + +/** Optional parameters. */ +export interface ContentTypeListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type ApiListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the listByService operation. */ +export type ContentTypeListByServiceResponse = ContentTypeCollection; + +/** Optional parameters. */ +export interface ContentTypeGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ContentTypeGetResponse = ContentTypeGetHeaders & + ContentTypeContract; /** Optional parameters. */ -export interface ApiRevisionListByServiceOptionalParams +export interface ContentTypeCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the listByService operation. */ -export type ApiRevisionListByServiceResponse = ApiRevisionCollection; +/** Contains response data for the createOrUpdate operation. */ +export type ContentTypeCreateOrUpdateResponse = ContentTypeCreateOrUpdateHeaders & + ContentTypeContract; /** Optional parameters. */ -export interface ApiRevisionListByServiceNextOptionalParams +export interface ContentTypeDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ContentTypeListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection; +export type ContentTypeListByServiceNextResponse = ContentTypeCollection; /** Optional parameters. */ -export interface ApiReleaseListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface ContentItemListByServiceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByService operation. */ -export type ApiReleaseListByServiceResponse = ApiReleaseCollection; +export type ContentItemListByServiceResponse = ContentItemCollection; /** Optional parameters. */ -export interface ApiReleaseGetEntityTagOptionalParams +export interface ContentItemGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders; +export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiReleaseGetOptionalParams +export interface ContentItemGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiReleaseGetResponse = ApiReleaseGetHeaders & ApiReleaseContract; +export type ContentItemGetResponse = ContentItemGetHeaders & + ContentItemContract; /** Optional parameters. */ -export interface ApiReleaseCreateOrUpdateOptionalParams +export interface ContentItemCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiReleaseCreateOrUpdateResponse = ApiReleaseCreateOrUpdateHeaders & - ApiReleaseContract; +export type ContentItemCreateOrUpdateResponse = ContentItemCreateOrUpdateHeaders & + ContentItemContract; /** Optional parameters. */ -export interface ApiReleaseUpdateOptionalParams +export interface ContentItemDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiReleaseUpdateResponse = ApiReleaseUpdateHeaders & - ApiReleaseContract; +/** Optional parameters. */ +export interface ContentItemListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type ContentItemListByServiceNextResponse = ContentItemCollection; /** Optional parameters. */ -export interface ApiReleaseDeleteOptionalParams +export interface DeletedServicesListBySubscriptionOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listBySubscription operation. */ +export type DeletedServicesListBySubscriptionResponse = DeletedServicesCollection; + /** Optional parameters. */ -export interface ApiReleaseListByServiceNextOptionalParams +export interface DeletedServicesGetByNameOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection; +/** Contains response data for the getByName operation. */ +export type DeletedServicesGetByNameResponse = DeletedServiceContract; /** Optional parameters. */ -export interface ApiOperationListByApiOptionalParams +export interface DeletedServicesPurgeOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include tags in the response. */ - tags?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByApi operation. */ -export type ApiOperationListByApiResponse = OperationCollection; - /** Optional parameters. */ -export interface ApiOperationGetEntityTagOptionalParams +export interface DeletedServicesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders; +/** Contains response data for the listBySubscriptionNext operation. */ +export type DeletedServicesListBySubscriptionNextResponse = DeletedServicesCollection; /** Optional parameters. */ -export interface ApiOperationGetOptionalParams +export interface ApiManagementOperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiOperationGetResponse = ApiOperationGetHeaders & - OperationContract; +/** Contains response data for the list operation. */ +export type ApiManagementOperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface ApiOperationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface ApiManagementOperationsListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApiOperationCreateOrUpdateResponse = ApiOperationCreateOrUpdateHeaders & - OperationContract; +/** Contains response data for the listNext operation. */ +export type ApiManagementOperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface ApiOperationUpdateOptionalParams +export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiOperationUpdateResponse = ApiOperationUpdateHeaders & - OperationContract; +/** Contains response data for the listAvailableServiceSkus operation. */ +export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; /** Optional parameters. */ -export interface ApiOperationDeleteOptionalParams +export interface ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listAvailableServiceSkusNext operation. */ +export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = ResourceSkuResults; + /** Optional parameters. */ -export interface ApiOperationListByApiNextOptionalParams - extends coreClient.OperationOptions {} +export interface ApiManagementServiceRestoreOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByApiNext operation. */ -export type ApiOperationListByApiNextResponse = OperationCollection; +/** Contains response data for the restore operation. */ +export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiOperationPolicyListByOperationOptionalParams - extends coreClient.OperationOptions {} +export interface ApiManagementServiceBackupOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listByOperation operation. */ -export type ApiOperationPolicyListByOperationResponse = PolicyCollection; +/** Contains response data for the backup operation. */ +export type ApiManagementServiceBackupResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiOperationPolicyGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +export interface ApiManagementServiceCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the getEntityTag operation. */ -export type ApiOperationPolicyGetEntityTagResponse = ApiOperationPolicyGetEntityTagHeaders; +/** Contains response data for the createOrUpdate operation. */ +export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiOperationPolicyGetOptionalParams +export interface ApiManagementServiceUpdateOptionalParams extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource; + +/** Optional parameters. */ +export interface ApiManagementServiceGetOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type ApiOperationPolicyGetResponse = ApiOperationPolicyGetHeaders & - PolicyContract; +export type ApiManagementServiceGetResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiOperationPolicyCreateOrUpdateOptionalParams +export interface ApiManagementServiceDeleteOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ApiOperationPolicyCreateOrUpdateResponse = ApiOperationPolicyCreateOrUpdateHeaders & - PolicyContract; +/** Optional parameters. */ +export interface ApiManagementServiceMigrateToStv2OptionalParams + extends coreClient.OperationOptions { + /** Optional parameters supplied to migrate service. */ + parameters?: MigrateToStv2Contract; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the migrateToStv2 operation. */ +export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; /** Optional parameters. */ -export interface ApiOperationPolicyDeleteOptionalParams +export interface ApiManagementServiceListByResourceGroupOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroup operation. */ +export type ApiManagementServiceListByResourceGroupResponse = ApiManagementServiceListResult; + /** Optional parameters. */ -export interface TagListByOperationOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface ApiManagementServiceListOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByOperation operation. */ -export type TagListByOperationResponse = TagCollection; +/** Contains response data for the list operation. */ +export type ApiManagementServiceListResponse = ApiManagementServiceListResult; /** Optional parameters. */ -export interface TagGetEntityStateByOperationOptionalParams +export interface ApiManagementServiceGetSsoTokenOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByOperation operation. */ -export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders; +/** Contains response data for the getSsoToken operation. */ +export type ApiManagementServiceGetSsoTokenResponse = ApiManagementServiceGetSsoTokenResult; /** Optional parameters. */ -export interface TagGetByOperationOptionalParams +export interface ApiManagementServiceCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the checkNameAvailability operation. */ +export type ApiManagementServiceCheckNameAvailabilityResponse = ApiManagementServiceNameAvailabilityResult; + +/** Optional parameters. */ +export interface ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByOperation operation. */ -export type TagGetByOperationResponse = TagGetByOperationHeaders & TagContract; +/** Contains response data for the getDomainOwnershipIdentifier operation. */ +export type ApiManagementServiceGetDomainOwnershipIdentifierResponse = ApiManagementServiceGetDomainOwnershipIdentifierResult; + +/** Optional parameters. */ +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams + extends coreClient.OperationOptions { + /** Parameters supplied to the Apply Network Configuration operation. If the parameters are empty, all the regions in which the Api Management service is deployed will be updated sequentially without incurring downtime in the region. */ + parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the applyNetworkConfigurationUpdates operation. */ +export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource; /** Optional parameters. */ -export interface TagAssignToOperationOptionalParams +export interface ApiManagementServiceListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToOperation operation. */ -export type TagAssignToOperationResponse = TagContract; +/** Contains response data for the listByResourceGroupNext operation. */ +export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementServiceListResult; /** Optional parameters. */ -export interface TagDetachFromOperationOptionalParams +export interface ApiManagementServiceListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type ApiManagementServiceListNextResponse = ApiManagementServiceListResult; + /** Optional parameters. */ -export interface TagListByApiOptionalParams +export interface DiagnosticListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7731,38 +10017,57 @@ export interface TagListByApiOptionalParams skip?: number; } -/** Contains response data for the listByApi operation. */ -export type TagListByApiResponse = TagCollection; +/** Contains response data for the listByService operation. */ +export type DiagnosticListByServiceResponse = DiagnosticCollection; /** Optional parameters. */ -export interface TagGetEntityStateByApiOptionalParams +export interface DiagnosticGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByApi operation. */ -export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders; +/** Contains response data for the getEntityTag operation. */ +export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetByApiOptionalParams +export interface DiagnosticGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByApi operation. */ -export type TagGetByApiResponse = TagGetByApiHeaders & TagContract; +/** Contains response data for the get operation. */ +export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; /** Optional parameters. */ -export interface TagAssignToApiOptionalParams +export interface DiagnosticCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & + DiagnosticContract; + +/** Optional parameters. */ +export interface DiagnosticUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToApi operation. */ -export type TagAssignToApiResponse = TagAssignToApiHeaders & TagContract; +/** Contains response data for the update operation. */ +export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & + DiagnosticContract; /** Optional parameters. */ -export interface TagDetachFromApiOptionalParams +export interface DiagnosticDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagListByProductOptionalParams +export interface DiagnosticListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type DiagnosticListByServiceNextResponse = DiagnosticCollection; + +/** Optional parameters. */ +export interface DocumentationListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7770,114 +10075,116 @@ export interface TagListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type TagListByProductResponse = TagCollection; +/** Contains response data for the listByService operation. */ +export type DocumentationListByServiceResponse = DocumentationCollection; /** Optional parameters. */ -export interface TagGetEntityStateByProductOptionalParams +export interface DocumentationGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityStateByProduct operation. */ -export type TagGetEntityStateByProductResponse = TagGetEntityStateByProductHeaders; +/** Contains response data for the getEntityTag operation. */ +export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetByProductOptionalParams +export interface DocumentationGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByProduct operation. */ -export type TagGetByProductResponse = TagGetByProductHeaders & TagContract; +/** Contains response data for the get operation. */ +export type DocumentationGetResponse = DocumentationGetHeaders & + DocumentationContract; /** Optional parameters. */ -export interface TagAssignToProductOptionalParams +export interface DocumentationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & + DocumentationContract; + +/** Optional parameters. */ +export interface DocumentationUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the assignToProduct operation. */ -export type TagAssignToProductResponse = TagContract; +/** Contains response data for the update operation. */ +export type DocumentationUpdateResponse = DocumentationUpdateHeaders & + DocumentationContract; /** Optional parameters. */ -export interface TagDetachFromProductOptionalParams +export interface DocumentationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TagListByServiceOptionalParams +export interface DocumentationListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type DocumentationListByServiceNextResponse = DocumentationCollection; + +/** Optional parameters. */ +export interface EmailTemplateListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Scope like 'apis', 'products' or 'apis/{apiId} */ - scope?: string; } /** Contains response data for the listByService operation. */ -export type TagListByServiceResponse = TagCollection; +export type EmailTemplateListByServiceResponse = EmailTemplateCollection; /** Optional parameters. */ -export interface TagGetEntityStateOptionalParams +export interface EmailTemplateGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityState operation. */ -export type TagGetEntityStateResponse = TagGetEntityStateHeaders; +/** Contains response data for the getEntityTag operation. */ +export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders; /** Optional parameters. */ -export interface TagGetOptionalParams extends coreClient.OperationOptions {} +export interface EmailTemplateGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type TagGetResponse = TagGetHeaders & TagContract; +export type EmailTemplateGetResponse = EmailTemplateGetHeaders & + EmailTemplateContract; /** Optional parameters. */ -export interface TagCreateOrUpdateOptionalParams +export interface EmailTemplateCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type TagCreateOrUpdateResponse = TagCreateOrUpdateHeaders & TagContract; - -/** Optional parameters. */ -export interface TagUpdateOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type TagUpdateResponse = TagUpdateHeaders & TagContract; - -/** Optional parameters. */ -export interface TagDeleteOptionalParams extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface TagListByOperationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByOperationNext operation. */ -export type TagListByOperationNextResponse = TagCollection; +export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract; /** Optional parameters. */ -export interface TagListByApiNextOptionalParams +export interface EmailTemplateUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type TagListByApiNextResponse = TagCollection; +/** Contains response data for the update operation. */ +export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & + EmailTemplateContract; /** Optional parameters. */ -export interface TagListByProductNextOptionalParams +export interface EmailTemplateDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type TagListByProductNextResponse = TagCollection; - /** Optional parameters. */ -export interface TagListByServiceNextOptionalParams +export interface EmailTemplateListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type TagListByServiceNextResponse = TagCollection; +export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; /** Optional parameters. */ -export interface GraphQLApiResolverListByApiOptionalParams +export interface GatewayListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| region | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7885,105 +10192,143 @@ export interface GraphQLApiResolverListByApiOptionalParams skip?: number; } -/** Contains response data for the listByApi operation. */ -export type GraphQLApiResolverListByApiResponse = ResolverCollection; +/** Contains response data for the listByService operation. */ +export type GatewayListByServiceResponse = GatewayCollection; /** Optional parameters. */ -export interface GraphQLApiResolverGetEntityTagOptionalParams +export interface GatewayGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GraphQLApiResolverGetEntityTagResponse = GraphQLApiResolverGetEntityTagHeaders; +export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders; /** Optional parameters. */ -export interface GraphQLApiResolverGetOptionalParams - extends coreClient.OperationOptions {} +export interface GatewayGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GraphQLApiResolverGetResponse = GraphQLApiResolverGetHeaders & - ResolverContract; +export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; /** Optional parameters. */ -export interface GraphQLApiResolverCreateOrUpdateOptionalParams +export interface GatewayCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type GraphQLApiResolverCreateOrUpdateResponse = GraphQLApiResolverCreateOrUpdateHeaders & - ResolverContract; +export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & + GatewayContract; /** Optional parameters. */ -export interface GraphQLApiResolverUpdateOptionalParams +export interface GatewayUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type GraphQLApiResolverUpdateResponse = GraphQLApiResolverUpdateHeaders & - ResolverContract; +export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; /** Optional parameters. */ -export interface GraphQLApiResolverDeleteOptionalParams +export interface GatewayDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GraphQLApiResolverListByApiNextOptionalParams +export interface GatewayListKeysOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type GraphQLApiResolverListByApiNextResponse = ResolverCollection; +/** Contains response data for the listKeys operation. */ +export type GatewayListKeysResponse = GatewayListKeysHeaders & + GatewayKeysContract; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyListByResolverOptionalParams +export interface GatewayRegenerateKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResolver operation. */ -export type GraphQLApiResolverPolicyListByResolverResponse = PolicyCollection; +/** Optional parameters. */ +export interface GatewayGenerateTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the generateToken operation. */ +export type GatewayGenerateTokenResponse = GatewayTokenContract; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyGetEntityTagOptionalParams +export interface GatewayInvalidateDebugCredentialsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GraphQLApiResolverPolicyGetEntityTagResponse = GraphQLApiResolverPolicyGetEntityTagHeaders; +/** Optional parameters. */ +export interface GatewayListDebugCredentialsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listDebugCredentials operation. */ +export type GatewayListDebugCredentialsResponse = GatewayDebugCredentialsContract; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyGetOptionalParams +export interface GatewayListTraceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listTrace operation. */ +export type GatewayListTraceResponse = { [propertyName: string]: any }; + +/** Optional parameters. */ +export interface GatewayListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type GatewayListByServiceNextResponse = GatewayCollection; + +/** Optional parameters. */ +export interface GatewayHostnameConfigurationListByServiceOptionalParams extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| hostname | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } +/** Contains response data for the listByService operation. */ +export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; + +/** Optional parameters. */ +export interface GatewayHostnameConfigurationGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders; + +/** Optional parameters. */ +export interface GatewayHostnameConfigurationGetOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type GraphQLApiResolverPolicyGetResponse = GraphQLApiResolverPolicyGetHeaders & - PolicyContract; +export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationGetHeaders & + GatewayHostnameConfigurationContract; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyCreateOrUpdateOptionalParams +export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type GraphQLApiResolverPolicyCreateOrUpdateResponse = GraphQLApiResolverPolicyCreateOrUpdateHeaders & - PolicyContract; +export type GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationCreateOrUpdateHeaders & + GatewayHostnameConfigurationContract; /** Optional parameters. */ -export interface GraphQLApiResolverPolicyDeleteOptionalParams +export interface GatewayHostnameConfigurationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GraphQLApiResolverPolicyListByResolverNextOptionalParams +export interface GatewayHostnameConfigurationListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResolverNext operation. */ -export type GraphQLApiResolverPolicyListByResolverNextResponse = PolicyCollection; +/** Contains response data for the listByServiceNext operation. */ +export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection; /** Optional parameters. */ -export interface ApiProductListByApisOptionalParams +export interface GatewayApiListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -7991,59 +10336,41 @@ export interface ApiProductListByApisOptionalParams skip?: number; } -/** Contains response data for the listByApis operation. */ -export type ApiProductListByApisResponse = ProductCollection; - -/** Optional parameters. */ -export interface ApiProductListByApisNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByApisNext operation. */ -export type ApiProductListByApisNextResponse = ProductCollection; - -/** Optional parameters. */ -export interface ApiPolicyListByApiOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByApi operation. */ -export type ApiPolicyListByApiResponse = PolicyCollection; +/** Contains response data for the listByService operation. */ +export type GatewayApiListByServiceResponse = ApiCollection; /** Optional parameters. */ -export interface ApiPolicyGetEntityTagOptionalParams +export interface GatewayApiGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders; +export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiPolicyGetOptionalParams +export interface GatewayApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; + /** Association entity details. */ + parameters?: AssociationContract; } -/** Contains response data for the get operation. */ -export type ApiPolicyGetResponse = ApiPolicyGetHeaders & PolicyContract; +/** Contains response data for the createOrUpdate operation. */ +export type GatewayApiCreateOrUpdateResponse = ApiContract; /** Optional parameters. */ -export interface ApiPolicyCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ApiPolicyCreateOrUpdateResponse = ApiPolicyCreateOrUpdateHeaders & - PolicyContract; +export interface GatewayApiDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiPolicyDeleteOptionalParams +export interface GatewayApiListByServiceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type GatewayApiListByServiceNextResponse = ApiCollection; + /** Optional parameters. */ -export interface ApiSchemaListByApiOptionalParams +export interface GatewayCertificateAuthorityListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq, ne | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -8051,56 +10378,50 @@ export interface ApiSchemaListByApiOptionalParams skip?: number; } -/** Contains response data for the listByApi operation. */ -export type ApiSchemaListByApiResponse = SchemaCollection; +/** Contains response data for the listByService operation. */ +export type GatewayCertificateAuthorityListByServiceResponse = GatewayCertificateAuthorityCollection; /** Optional parameters. */ -export interface ApiSchemaGetEntityTagOptionalParams +export interface GatewayCertificateAuthorityGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders; +export type GatewayCertificateAuthorityGetEntityTagResponse = GatewayCertificateAuthorityGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiSchemaGetOptionalParams +export interface GatewayCertificateAuthorityGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiSchemaGetResponse = ApiSchemaGetHeaders & SchemaContract; +export type GatewayCertificateAuthorityGetResponse = GatewayCertificateAuthorityGetHeaders & + GatewayCertificateAuthorityContract; /** Optional parameters. */ -export interface ApiSchemaCreateOrUpdateOptionalParams +export interface GatewayCertificateAuthorityCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiSchemaCreateOrUpdateResponse = ApiSchemaCreateOrUpdateHeaders & - SchemaContract; +export type GatewayCertificateAuthorityCreateOrUpdateResponse = GatewayCertificateAuthorityCreateOrUpdateHeaders & + GatewayCertificateAuthorityContract; /** Optional parameters. */ -export interface ApiSchemaDeleteOptionalParams - extends coreClient.OperationOptions { - /** If true removes all references to the schema before deleting it. */ - force?: boolean; -} +export interface GatewayCertificateAuthorityDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiSchemaListByApiNextOptionalParams +export interface GatewayCertificateAuthorityListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type ApiSchemaListByApiNextResponse = SchemaCollection; +/** Contains response data for the listByServiceNext operation. */ +export type GatewayCertificateAuthorityListByServiceNextResponse = GatewayCertificateAuthorityCollection; /** Optional parameters. */ -export interface ApiDiagnosticListByServiceOptionalParams +export interface GroupListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -8109,118 +10430,155 @@ export interface ApiDiagnosticListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiDiagnosticListByServiceResponse = DiagnosticCollection; +export type GroupListByServiceResponse = GroupCollection; /** Optional parameters. */ -export interface ApiDiagnosticGetEntityTagOptionalParams +export interface GroupGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiDiagnosticGetEntityTagResponse = ApiDiagnosticGetEntityTagHeaders; +export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiDiagnosticGetOptionalParams - extends coreClient.OperationOptions {} +export interface GroupGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiDiagnosticGetResponse = ApiDiagnosticGetHeaders & - DiagnosticContract; +export type GroupGetResponse = GroupGetHeaders & GroupContract; /** Optional parameters. */ -export interface ApiDiagnosticCreateOrUpdateOptionalParams +export interface GroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiDiagnosticCreateOrUpdateResponse = ApiDiagnosticCreateOrUpdateHeaders & - DiagnosticContract; +export type GroupCreateOrUpdateResponse = GroupCreateOrUpdateHeaders & + GroupContract; /** Optional parameters. */ -export interface ApiDiagnosticUpdateOptionalParams +export interface GroupUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiDiagnosticUpdateResponse = ApiDiagnosticUpdateHeaders & - DiagnosticContract; +export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; /** Optional parameters. */ -export interface ApiDiagnosticDeleteOptionalParams +export interface GroupDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiDiagnosticListByServiceNextOptionalParams +export interface GroupListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection; +export type GroupListByServiceNextResponse = GroupCollection; /** Optional parameters. */ -export interface ApiIssueListByServiceOptionalParams +export interface GroupUserListOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Expand the comment attachments. */ - expandCommentsAttachments?: boolean; } +/** Contains response data for the list operation. */ +export type GroupUserListResponse = UserCollection; + +/** Optional parameters. */ +export interface GroupUserCheckEntityExistsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the checkEntityExists operation. */ +export type GroupUserCheckEntityExistsResponse = { + body: boolean; +}; + +/** Optional parameters. */ +export interface GroupUserCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type GroupUserCreateResponse = UserContract; + +/** Optional parameters. */ +export interface GroupUserDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface GroupUserListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type GroupUserListNextResponse = UserCollection; + +/** Optional parameters. */ +export interface IdentityProviderListByServiceOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listByService operation. */ -export type ApiIssueListByServiceResponse = IssueCollection; +export type IdentityProviderListByServiceResponse = IdentityProviderList; /** Optional parameters. */ -export interface ApiIssueGetEntityTagOptionalParams +export interface IdentityProviderGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiIssueGetEntityTagResponse = ApiIssueGetEntityTagHeaders; +export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiIssueGetOptionalParams extends coreClient.OperationOptions { - /** Expand the comment attachments. */ - expandCommentsAttachments?: boolean; -} +export interface IdentityProviderGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiIssueGetResponse = ApiIssueGetHeaders & IssueContract; +export type IdentityProviderGetResponse = IdentityProviderGetHeaders & + IdentityProviderContract; /** Optional parameters. */ -export interface ApiIssueCreateOrUpdateOptionalParams +export interface IdentityProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiIssueCreateOrUpdateResponse = ApiIssueCreateOrUpdateHeaders & - IssueContract; +export type IdentityProviderCreateOrUpdateResponse = IdentityProviderCreateOrUpdateHeaders & + IdentityProviderContract; /** Optional parameters. */ -export interface ApiIssueUpdateOptionalParams +export interface IdentityProviderUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type ApiIssueUpdateResponse = ApiIssueUpdateHeaders & IssueContract; +export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & + IdentityProviderContract; /** Optional parameters. */ -export interface ApiIssueDeleteOptionalParams +export interface IdentityProviderDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiIssueListByServiceNextOptionalParams +export interface IdentityProviderListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type IdentityProviderListSecretsResponse = IdentityProviderListSecretsHeaders & + ClientSecretContract; + +/** Optional parameters. */ +export interface IdentityProviderListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiIssueListByServiceNextResponse = IssueCollection; +export type IdentityProviderListByServiceNextResponse = IdentityProviderList; /** Optional parameters. */ -export interface ApiIssueCommentListByServiceOptionalParams +export interface IssueListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -8228,50 +10586,26 @@ export interface ApiIssueCommentListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type ApiIssueCommentListByServiceResponse = IssueCommentCollection; - -/** Optional parameters. */ -export interface ApiIssueCommentGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type ApiIssueCommentGetEntityTagResponse = ApiIssueCommentGetEntityTagHeaders; - -/** Optional parameters. */ -export interface ApiIssueCommentGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApiIssueCommentGetResponse = ApiIssueCommentGetHeaders & - IssueCommentContract; - -/** Optional parameters. */ -export interface ApiIssueCommentCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ApiIssueCommentCreateOrUpdateResponse = ApiIssueCommentCreateOrUpdateHeaders & - IssueCommentContract; - +/** Contains response data for the listByService operation. */ +export type IssueListByServiceResponse = IssueCollection; + /** Optional parameters. */ -export interface ApiIssueCommentDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface IssueGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IssueGetResponse = IssueGetHeaders & IssueContract; /** Optional parameters. */ -export interface ApiIssueCommentListByServiceNextOptionalParams +export interface IssueListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiIssueCommentListByServiceNextResponse = IssueCommentCollection; +export type IssueListByServiceNextResponse = IssueCollection; /** Optional parameters. */ -export interface ApiIssueAttachmentListByServiceOptionalParams +export interface LoggerListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| loggerType | filter | eq | |
| resourceId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -8280,243 +10614,246 @@ export interface ApiIssueAttachmentListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type ApiIssueAttachmentListByServiceResponse = IssueAttachmentCollection; +export type LoggerListByServiceResponse = LoggerCollection; /** Optional parameters. */ -export interface ApiIssueAttachmentGetEntityTagOptionalParams +export interface LoggerGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiIssueAttachmentGetEntityTagResponse = ApiIssueAttachmentGetEntityTagHeaders; +export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiIssueAttachmentGetOptionalParams - extends coreClient.OperationOptions {} +export interface LoggerGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiIssueAttachmentGetResponse = ApiIssueAttachmentGetHeaders & - IssueAttachmentContract; +export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; /** Optional parameters. */ -export interface ApiIssueAttachmentCreateOrUpdateOptionalParams +export interface LoggerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiIssueAttachmentCreateOrUpdateResponse = ApiIssueAttachmentCreateOrUpdateHeaders & - IssueAttachmentContract; +export type LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & + LoggerContract; /** Optional parameters. */ -export interface ApiIssueAttachmentDeleteOptionalParams +export interface LoggerUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; + +/** Optional parameters. */ +export interface LoggerDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiIssueAttachmentListByServiceNextOptionalParams +export interface LoggerListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ApiIssueAttachmentListByServiceNextResponse = IssueAttachmentCollection; +export type LoggerListByServiceNextResponse = LoggerCollection; /** Optional parameters. */ -export interface ApiTagDescriptionListByServiceOptionalParams +export interface NamedValueListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** When set to true, the response contains only named value entities which failed refresh. */ + isKeyVaultRefreshFailed?: boolean; } /** Contains response data for the listByService operation. */ -export type ApiTagDescriptionListByServiceResponse = TagDescriptionCollection; +export type NamedValueListByServiceResponse = NamedValueCollection; /** Optional parameters. */ -export interface ApiTagDescriptionGetEntityTagOptionalParams +export interface NamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ApiTagDescriptionGetEntityTagResponse = ApiTagDescriptionGetEntityTagHeaders; +export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiTagDescriptionGetOptionalParams +export interface NamedValueGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ApiTagDescriptionGetResponse = ApiTagDescriptionGetHeaders & - TagDescriptionContract; +export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; /** Optional parameters. */ -export interface ApiTagDescriptionCreateOrUpdateOptionalParams +export interface NamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ApiTagDescriptionCreateOrUpdateResponse = ApiTagDescriptionCreateOrUpdateHeaders & - TagDescriptionContract; +export type NamedValueCreateOrUpdateResponse = NamedValueCreateOrUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface ApiTagDescriptionDeleteOptionalParams +export interface NamedValueUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type NamedValueUpdateResponse = NamedValueUpdateHeaders & + NamedValueContract; + +/** Optional parameters. */ +export interface NamedValueDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiTagDescriptionListByServiceNextOptionalParams +export interface NamedValueListValueOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiTagDescriptionListByServiceNextResponse = TagDescriptionCollection; +/** Contains response data for the listValue operation. */ +export type NamedValueListValueResponse = NamedValueListValueHeaders & + NamedValueSecretContract; /** Optional parameters. */ -export interface OperationListByTagsOptionalParams +export interface NamedValueRefreshSecretOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** Include not tagged Operations. */ - includeNotTaggedOperations?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByTags operation. */ -export type OperationListByTagsResponse = TagResourceCollection; +/** Contains response data for the refreshSecret operation. */ +export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & + NamedValueContract; /** Optional parameters. */ -export interface OperationListByTagsNextOptionalParams +export interface NamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTagsNext operation. */ -export type OperationListByTagsNextResponse = TagResourceCollection; +/** Contains response data for the listByServiceNext operation. */ +export type NamedValueListByServiceNextResponse = NamedValueCollection; /** Optional parameters. */ -export interface ApiWikiGetEntityTagOptionalParams +export interface NetworkStatusListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiWikiGetEntityTagResponse = ApiWikiGetEntityTagHeaders; +/** Contains response data for the listByService operation. */ +export type NetworkStatusListByServiceResponse = NetworkStatusContractByLocation[]; /** Optional parameters. */ -export interface ApiWikiGetOptionalParams extends coreClient.OperationOptions {} +export interface NetworkStatusListByLocationOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiWikiGetResponse = ApiWikiGetHeaders & WikiContract; +/** Contains response data for the listByLocation operation. */ +export type NetworkStatusListByLocationResponse = NetworkStatusContract; /** Optional parameters. */ -export interface ApiWikiCreateOrUpdateOptionalParams +export interface NotificationListByServiceOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type ApiWikiCreateOrUpdateResponse = ApiWikiCreateOrUpdateHeaders & - WikiContract; +/** Contains response data for the listByService operation. */ +export type NotificationListByServiceResponse = NotificationCollection; /** Optional parameters. */ -export interface ApiWikiUpdateOptionalParams +export interface NotificationGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiWikiUpdateResponse = ApiWikiUpdateHeaders & WikiContract; - -/** Optional parameters. */ -export interface ApiWikiDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type NotificationGetResponse = NotificationContract; /** Optional parameters. */ -export interface ApiWikisListOptionalParams +export interface NotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the list operation. */ -export type ApiWikisListResponse = WikiCollection; +/** Contains response data for the createOrUpdate operation. */ +export type NotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ -export interface ApiWikisListNextOptionalParams +export interface NotificationListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiWikisListNextResponse = WikiCollection; +/** Contains response data for the listByServiceNext operation. */ +export type NotificationListByServiceNextResponse = NotificationCollection; /** Optional parameters. */ -export interface ApiExportGetOptionalParams +export interface NotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiExportGetResponse = ApiExportResult; +/** Contains response data for the listByNotification operation. */ +export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection; /** Optional parameters. */ -export interface ApiVersionSetListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface NotificationRecipientUserCheckEntityExistsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection; +/** Contains response data for the checkEntityExists operation. */ +export type NotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiVersionSetGetEntityTagOptionalParams +export interface NotificationRecipientUserCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ApiVersionSetGetEntityTagResponse = ApiVersionSetGetEntityTagHeaders; +/** Contains response data for the createOrUpdate operation. */ +export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; /** Optional parameters. */ -export interface ApiVersionSetGetOptionalParams +export interface NotificationRecipientUserDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiVersionSetGetResponse = ApiVersionSetGetHeaders & - ApiVersionSetContract; - /** Optional parameters. */ -export interface ApiVersionSetCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface NotificationRecipientEmailListByNotificationOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApiVersionSetCreateOrUpdateResponse = ApiVersionSetCreateOrUpdateHeaders & - ApiVersionSetContract; +/** Contains response data for the listByNotification operation. */ +export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; /** Optional parameters. */ -export interface ApiVersionSetUpdateOptionalParams +export interface NotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ApiVersionSetUpdateResponse = ApiVersionSetUpdateHeaders & - ApiVersionSetContract; +/** Contains response data for the checkEntityExists operation. */ +export type NotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiVersionSetDeleteOptionalParams +export interface NotificationRecipientEmailCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; + /** Optional parameters. */ -export interface ApiVersionSetListByServiceNextOptionalParams +export interface NotificationRecipientEmailDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; - /** Optional parameters. */ -export interface AuthorizationServerListByServiceOptionalParams +export interface OpenIdConnectProviderListByServiceOptionalParams extends coreClient.OperationOptions { /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; @@ -8527,212 +10864,250 @@ export interface AuthorizationServerListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection; +export type OpenIdConnectProviderListByServiceResponse = OpenIdConnectProviderCollection; /** Optional parameters. */ -export interface AuthorizationServerGetEntityTagOptionalParams +export interface OpenIdConnectProviderGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders; +export type OpenIdConnectProviderGetEntityTagResponse = OpenIdConnectProviderGetEntityTagHeaders; /** Optional parameters. */ -export interface AuthorizationServerGetOptionalParams +export interface OpenIdConnectProviderGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationServerGetResponse = AuthorizationServerGetHeaders & - AuthorizationServerContract; +export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & + OpenidConnectProviderContract; /** Optional parameters. */ -export interface AuthorizationServerCreateOrUpdateOptionalParams +export interface OpenIdConnectProviderCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerCreateOrUpdateHeaders & - AuthorizationServerContract; +export type OpenIdConnectProviderCreateOrUpdateResponse = OpenIdConnectProviderCreateOrUpdateHeaders & + OpenidConnectProviderContract; /** Optional parameters. */ -export interface AuthorizationServerUpdateOptionalParams +export interface OpenIdConnectProviderUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type AuthorizationServerUpdateResponse = AuthorizationServerUpdateHeaders & - AuthorizationServerContract; +export type OpenIdConnectProviderUpdateResponse = OpenIdConnectProviderUpdateHeaders & + OpenidConnectProviderContract; /** Optional parameters. */ -export interface AuthorizationServerDeleteOptionalParams +export interface OpenIdConnectProviderDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AuthorizationServerListSecretsOptionalParams +export interface OpenIdConnectProviderListSecretsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSecrets operation. */ -export type AuthorizationServerListSecretsResponse = AuthorizationServerListSecretsHeaders & - AuthorizationServerSecretsContract; +export type OpenIdConnectProviderListSecretsResponse = OpenIdConnectProviderListSecretsHeaders & + ClientSecretContract; /** Optional parameters. */ -export interface AuthorizationServerListByServiceNextOptionalParams +export interface OpenIdConnectProviderListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection; +export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection; /** Optional parameters. */ -export interface AuthorizationProviderListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface OutboundNetworkDependenciesEndpointsListByServiceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByService operation. */ -export type AuthorizationProviderListByServiceResponse = AuthorizationProviderCollection; +export type OutboundNetworkDependenciesEndpointsListByServiceResponse = OutboundEnvironmentEndpointList; /** Optional parameters. */ -export interface AuthorizationProviderGetOptionalParams +export interface PolicyListByServiceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByService operation. */ +export type PolicyListByServiceResponse = PolicyCollection; + +/** Optional parameters. */ +export interface PolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface PolicyGetOptionalParams extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + /** Contains response data for the get operation. */ -export type AuthorizationProviderGetResponse = AuthorizationProviderGetHeaders & - AuthorizationProviderContract; +export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface AuthorizationProviderCreateOrUpdateOptionalParams +export interface PolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationProviderCreateOrUpdateResponse = AuthorizationProviderCreateOrUpdateHeaders & - AuthorizationProviderContract; +export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & + PolicyContract; /** Optional parameters. */ -export interface AuthorizationProviderDeleteOptionalParams +export interface PolicyDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AuthorizationProviderListByServiceNextOptionalParams +export interface PolicyListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type AuthorizationProviderListByServiceNextResponse = AuthorizationProviderCollection; +export type PolicyListByServiceNextResponse = PolicyCollection; /** Optional parameters. */ -export interface AuthorizationListByAuthorizationProviderOptionalParams +export interface PolicyDescriptionListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** Policy scope. */ + scope?: PolicyScopeContract; +} + +/** Contains response data for the listByService operation. */ +export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; + +/** Optional parameters. */ +export interface PolicyFragmentListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** OData order by query option. */ + orderby?: string; } -/** Contains response data for the listByAuthorizationProvider operation. */ -export type AuthorizationListByAuthorizationProviderResponse = AuthorizationCollection; +/** Contains response data for the listByService operation. */ +export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface AuthorizationGetOptionalParams +export interface PolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; + +/** Optional parameters. */ +export interface PolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} + /** Contains response data for the get operation. */ -export type AuthorizationGetResponse = AuthorizationGetHeaders & - AuthorizationContract; +export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & + PolicyFragmentContract; /** Optional parameters. */ -export interface AuthorizationCreateOrUpdateOptionalParams +export interface PolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type AuthorizationCreateOrUpdateResponse = AuthorizationCreateOrUpdateHeaders & - AuthorizationContract; +export type PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & + PolicyFragmentContract; /** Optional parameters. */ -export interface AuthorizationDeleteOptionalParams +export interface PolicyFragmentDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AuthorizationConfirmConsentCodeOptionalParams - extends coreClient.OperationOptions {} +export interface PolicyFragmentListReferencesOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the confirmConsentCode operation. */ -export type AuthorizationConfirmConsentCodeResponse = AuthorizationConfirmConsentCodeHeaders; +/** Contains response data for the listReferences operation. */ +export type PolicyFragmentListReferencesResponse = ResourceCollection; /** Optional parameters. */ -export interface AuthorizationListByAuthorizationProviderNextOptionalParams +export interface PolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorizationProviderNext operation. */ -export type AuthorizationListByAuthorizationProviderNextResponse = AuthorizationCollection; +/** Contains response data for the listByServiceNext operation. */ +export type PolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface AuthorizationLoginLinksPostOptionalParams +export interface PortalConfigListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the post operation. */ -export type AuthorizationLoginLinksPostResponse = AuthorizationLoginLinksPostHeaders & - AuthorizationLoginResponseContract; +/** Contains response data for the listByService operation. */ +export type PortalConfigListByServiceResponse = PortalConfigCollection; /** Optional parameters. */ -export interface AuthorizationAccessPolicyListByAuthorizationOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface PortalConfigGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorization operation. */ -export type AuthorizationAccessPolicyListByAuthorizationResponse = AuthorizationAccessPolicyCollection; +/** Contains response data for the getEntityTag operation. */ +export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; /** Optional parameters. */ -export interface AuthorizationAccessPolicyGetOptionalParams +export interface PortalConfigGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AuthorizationAccessPolicyGetResponse = AuthorizationAccessPolicyGetHeaders & - AuthorizationAccessPolicyContract; +export type PortalConfigGetResponse = PortalConfigGetHeaders & + PortalConfigContract; /** Optional parameters. */ -export interface AuthorizationAccessPolicyCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface PortalConfigUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type AuthorizationAccessPolicyCreateOrUpdateResponse = AuthorizationAccessPolicyCreateOrUpdateHeaders & - AuthorizationAccessPolicyContract; +/** Contains response data for the update operation. */ +export type PortalConfigUpdateResponse = PortalConfigContract; /** Optional parameters. */ -export interface AuthorizationAccessPolicyDeleteOptionalParams +export interface PortalConfigCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; + /** Optional parameters. */ -export interface AuthorizationAccessPolicyListByAuthorizationNextOptionalParams +export interface PortalConfigListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAuthorizationNext operation. */ -export type AuthorizationAccessPolicyListByAuthorizationNextResponse = AuthorizationAccessPolicyCollection; +/** Contains response data for the listByServiceNext operation. */ +export type PortalConfigListByServiceNextResponse = PortalConfigCollection; /** Optional parameters. */ -export interface BackendListByServiceOptionalParams +export interface PortalRevisionListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| url | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** + * | Field | Supported operators | Supported functions | + * |-------------|------------------------|-----------------------------------| + * + * |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| + * |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| + * |isCurrent | eq, ne | | + * + */ filter?: string; /** Number of records to return. */ top?: number; @@ -8741,174 +11116,173 @@ export interface BackendListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type BackendListByServiceResponse = BackendCollection; +export type PortalRevisionListByServiceResponse = PortalRevisionCollection; /** Optional parameters. */ -export interface BackendGetEntityTagOptionalParams +export interface PortalRevisionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders; +export type PortalRevisionGetEntityTagResponse = PortalRevisionGetEntityTagHeaders; /** Optional parameters. */ -export interface BackendGetOptionalParams extends coreClient.OperationOptions {} +export interface PortalRevisionGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BackendGetResponse = BackendGetHeaders & BackendContract; +export type PortalRevisionGetResponse = PortalRevisionGetHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface BackendCreateOrUpdateOptionalParams +export interface PortalRevisionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type BackendCreateOrUpdateResponse = BackendCreateOrUpdateHeaders & - BackendContract; - -/** Optional parameters. */ -export interface BackendUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type BackendUpdateResponse = BackendUpdateHeaders & BackendContract; - -/** Optional parameters. */ -export interface BackendDeleteOptionalParams - extends coreClient.OperationOptions {} +export type PortalRevisionCreateOrUpdateResponse = PortalRevisionCreateOrUpdateHeaders & + PortalRevisionContract; /** Optional parameters. */ -export interface BackendReconnectOptionalParams +export interface PortalRevisionUpdateOptionalParams extends coreClient.OperationOptions { - /** Reconnect request parameters. */ - parameters?: BackendReconnectContract; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & + PortalRevisionContract; + /** Optional parameters. */ -export interface BackendListByServiceNextOptionalParams +export interface PortalRevisionListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type BackendListByServiceNextResponse = BackendCollection; - -/** Optional parameters. */ -export interface CacheListByServiceOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; + +/** Optional parameters. */ +export interface PortalSettingsListByServiceOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listByService operation. */ -export type CacheListByServiceResponse = CacheCollection; +export type PortalSettingsListByServiceResponse = PortalSettingsCollection; /** Optional parameters. */ -export interface CacheGetEntityTagOptionalParams +export interface SignInSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders; +export type SignInSettingsGetEntityTagResponse = SignInSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface CacheGetOptionalParams extends coreClient.OperationOptions {} +export interface SignInSettingsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CacheGetResponse = CacheGetHeaders & CacheContract; +export type SignInSettingsGetResponse = SignInSettingsGetHeaders & + PortalSigninSettings; /** Optional parameters. */ -export interface CacheCreateOrUpdateOptionalParams +export interface SignInSettingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SignInSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type CacheCreateOrUpdateResponse = CacheCreateOrUpdateHeaders & - CacheContract; +export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; /** Optional parameters. */ -export interface CacheUpdateOptionalParams +export interface SignUpSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type CacheUpdateResponse = CacheUpdateHeaders & CacheContract; +/** Contains response data for the getEntityTag operation. */ +export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface CacheDeleteOptionalParams +export interface SignUpSettingsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & + PortalSignupSettings; + /** Optional parameters. */ -export interface CacheListByServiceNextOptionalParams +export interface SignUpSettingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type CacheListByServiceNextResponse = CacheCollection; - /** Optional parameters. */ -export interface CertificateListByServiceOptionalParams +export interface SignUpSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| subject | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| thumbprint | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| expirationDate | filter | ge, le, eq, ne, gt, lt | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** When set to true, the response contains only certificates entities which failed refresh. */ - isKeyVaultRefreshFailed?: boolean; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the listByService operation. */ -export type CertificateListByServiceResponse = CertificateCollection; +/** Contains response data for the createOrUpdate operation. */ +export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; /** Optional parameters. */ -export interface CertificateGetEntityTagOptionalParams +export interface DelegationSettingsGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders; +export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders; /** Optional parameters. */ -export interface CertificateGetOptionalParams +export interface DelegationSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CertificateGetResponse = CertificateGetHeaders & - CertificateContract; +export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & + PortalDelegationSettings; /** Optional parameters. */ -export interface CertificateCreateOrUpdateOptionalParams +export interface DelegationSettingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DelegationSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type CertificateCreateOrUpdateResponse = CertificateCreateOrUpdateHeaders & - CertificateContract; +export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; /** Optional parameters. */ -export interface CertificateDeleteOptionalParams +export interface DelegationSettingsListSecretsOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listSecrets operation. */ +export type DelegationSettingsListSecretsResponse = PortalSettingValidationKeyContract; + /** Optional parameters. */ -export interface CertificateRefreshSecretOptionalParams +export interface PrivateEndpointConnectionListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the refreshSecret operation. */ -export type CertificateRefreshSecretResponse = CertificateRefreshSecretHeaders & - CertificateContract; +/** Contains response data for the listByService operation. */ +export type PrivateEndpointConnectionListByServiceResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface CertificateListByServiceNextOptionalParams +export interface PrivateEndpointConnectionGetByNameOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type CertificateListByServiceNextResponse = CertificateCollection; +/** Contains response data for the getByName operation. */ +export type PrivateEndpointConnectionGetByNameResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface PerformConnectivityCheckAsyncOptionalParams +export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8916,349 +11290,307 @@ export interface PerformConnectivityCheckAsyncOptionalParams resumeFrom?: string; } -/** Contains response data for the performConnectivityCheckAsync operation. */ -export type PerformConnectivityCheckAsyncResponse = ConnectivityCheckResponse; - -/** Optional parameters. */ -export interface ContentTypeListByServiceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByService operation. */ -export type ContentTypeListByServiceResponse = ContentTypeCollection; - -/** Optional parameters. */ -export interface ContentTypeGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ContentTypeGetResponse = ContentTypeGetHeaders & - ContentTypeContract; +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; /** Optional parameters. */ -export interface ContentTypeCreateOrUpdateOptionalParams +export interface PrivateEndpointConnectionDeleteOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ContentTypeCreateOrUpdateResponse = ContentTypeCreateOrUpdateHeaders & - ContentTypeContract; - /** Optional parameters. */ -export interface ContentTypeDeleteOptionalParams +export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listPrivateLinkResources operation. */ +export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = PrivateLinkResourceListResult; + /** Optional parameters. */ -export interface ContentTypeListByServiceNextOptionalParams +export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type ContentTypeListByServiceNextResponse = ContentTypeCollection; +/** Contains response data for the getPrivateLinkResource operation. */ +export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = PrivateLinkResource; /** Optional parameters. */ -export interface ContentItemListByServiceOptionalParams - extends coreClient.OperationOptions {} +export interface ProductListByServiceOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Products which are part of a specific tag. */ + tags?: string; + /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ + expandGroups?: boolean; +} /** Contains response data for the listByService operation. */ -export type ContentItemListByServiceResponse = ContentItemCollection; +export type ProductListByServiceResponse = ProductCollection; /** Optional parameters. */ -export interface ContentItemGetEntityTagOptionalParams +export interface ProductGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ContentItemGetEntityTagResponse = ContentItemGetEntityTagHeaders; +export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; /** Optional parameters. */ -export interface ContentItemGetOptionalParams - extends coreClient.OperationOptions {} +export interface ProductGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ContentItemGetResponse = ContentItemGetHeaders & - ContentItemContract; +export type ProductGetResponse = ProductGetHeaders & ProductContract; /** Optional parameters. */ -export interface ContentItemCreateOrUpdateOptionalParams +export interface ProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ContentItemCreateOrUpdateResponse = ContentItemCreateOrUpdateHeaders & - ContentItemContract; - -/** Optional parameters. */ -export interface ContentItemDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ContentItemListByServiceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByServiceNext operation. */ -export type ContentItemListByServiceNextResponse = ContentItemCollection; - -/** Optional parameters. */ -export interface DeletedServicesListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type DeletedServicesListBySubscriptionResponse = DeletedServicesCollection; +export type ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & + ProductContract; /** Optional parameters. */ -export interface DeletedServicesGetByNameOptionalParams +export interface ProductUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByName operation. */ -export type DeletedServicesGetByNameResponse = DeletedServiceContract; +/** Contains response data for the update operation. */ +export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; /** Optional parameters. */ -export interface DeletedServicesPurgeOptionalParams +export interface ProductDeleteOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Delete existing subscriptions associated with the product or not. */ + deleteSubscriptions?: boolean; } /** Optional parameters. */ -export interface DeletedServicesListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type DeletedServicesListBySubscriptionNextResponse = DeletedServicesCollection; - -/** Optional parameters. */ -export interface ApiManagementOperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ApiManagementOperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface ApiManagementOperationsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ProductListByTagsOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** Include not tagged Products. */ + includeNotTaggedProducts?: boolean; +} -/** Contains response data for the listNext operation. */ -export type ApiManagementOperationsListNextResponse = OperationListResult; +/** Contains response data for the listByTags operation. */ +export type ProductListByTagsResponse = TagResourceCollection; /** Optional parameters. */ -export interface ApiManagementServiceSkusListAvailableServiceSkusOptionalParams +export interface ProductListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableServiceSkus operation. */ -export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults; +/** Contains response data for the listByServiceNext operation. */ +export type ProductListByServiceNextResponse = ProductCollection; /** Optional parameters. */ -export interface ApiManagementServiceSkusListAvailableServiceSkusNextOptionalParams +export interface ProductListByTagsNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailableServiceSkusNext operation. */ -export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = ResourceSkuResults; +/** Contains response data for the listByTagsNext operation. */ +export type ProductListByTagsNextResponse = TagResourceCollection; /** Optional parameters. */ -export interface ApiManagementServiceRestoreOptionalParams +export interface ProductApiListByProductOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the restore operation. */ -export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource; +/** Contains response data for the listByProduct operation. */ +export type ProductApiListByProductResponse = ApiCollection; /** Optional parameters. */ -export interface ApiManagementServiceBackupOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ProductApiCheckEntityExistsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the backup operation. */ -export type ApiManagementServiceBackupResponse = ApiManagementServiceResource; +/** Contains response data for the checkEntityExists operation. */ +export type ProductApiCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiManagementServiceCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ProductApiCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource; +export type ProductApiCreateOrUpdateResponse = ApiContract; /** Optional parameters. */ -export interface ApiManagementServiceUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource; +export interface ProductApiDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ApiManagementServiceGetOptionalParams +export interface ProductApiListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApiManagementServiceGetResponse = ApiManagementServiceResource; +/** Contains response data for the listByProductNext operation. */ +export type ProductApiListByProductNextResponse = ApiCollection; /** Optional parameters. */ -export interface ApiManagementServiceDeleteOptionalParams +export interface ProductGroupListByProductOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | |
| displayName | filter | eq, ne | |
| description | filter | eq, ne | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } +/** Contains response data for the listByProduct operation. */ +export type ProductGroupListByProductResponse = GroupCollection; + /** Optional parameters. */ -export interface ApiManagementServiceMigrateToStv2OptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ProductGroupCheckEntityExistsOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the migrateToStv2 operation. */ -export type ApiManagementServiceMigrateToStv2Response = ApiManagementServiceResource; +/** Contains response data for the checkEntityExists operation. */ +export type ProductGroupCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ApiManagementServiceListByResourceGroupOptionalParams +export interface ProductGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type ApiManagementServiceListByResourceGroupResponse = ApiManagementServiceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ProductGroupCreateOrUpdateResponse = GroupContract; /** Optional parameters. */ -export interface ApiManagementServiceListOptionalParams +export interface ProductGroupDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ProductGroupListByProductNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProductNext operation. */ +export type ProductGroupListByProductNextResponse = GroupCollection; + +/** Optional parameters. */ +export interface ProductSubscriptionsListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + /** Contains response data for the list operation. */ -export type ApiManagementServiceListResponse = ApiManagementServiceListResult; +export type ProductSubscriptionsListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ApiManagementServiceGetSsoTokenOptionalParams +export interface ProductSubscriptionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSsoToken operation. */ -export type ApiManagementServiceGetSsoTokenResponse = ApiManagementServiceGetSsoTokenResult; +/** Contains response data for the listNext operation. */ +export type ProductSubscriptionsListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ApiManagementServiceCheckNameAvailabilityOptionalParams +export interface ProductPolicyListByProductOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkNameAvailability operation. */ -export type ApiManagementServiceCheckNameAvailabilityResponse = ApiManagementServiceNameAvailabilityResult; +/** Contains response data for the listByProduct operation. */ +export type ProductPolicyListByProductResponse = PolicyCollection; /** Optional parameters. */ -export interface ApiManagementServiceGetDomainOwnershipIdentifierOptionalParams +export interface ProductPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getDomainOwnershipIdentifier operation. */ -export type ApiManagementServiceGetDomainOwnershipIdentifierResponse = ApiManagementServiceGetDomainOwnershipIdentifierResult; +/** Contains response data for the getEntityTag operation. */ +export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams +export interface ProductPolicyGetOptionalParams extends coreClient.OperationOptions { - /** Parameters supplied to the Apply Network Configuration operation. If the parameters are empty, all the regions in which the Api Management service is deployed will be updated sequentially without incurring downtime in the region. */ - parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Policy Export Format. */ + format?: PolicyExportFormat; } -/** Contains response data for the applyNetworkConfigurationUpdates operation. */ -export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource; +/** Contains response data for the get operation. */ +export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; /** Optional parameters. */ -export interface ApiManagementServiceListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface ProductPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the listByResourceGroupNext operation. */ -export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementServiceListResult; +/** Contains response data for the createOrUpdate operation. */ +export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHeaders & + PolicyContract; /** Optional parameters. */ -export interface ApiManagementServiceListNextOptionalParams +export interface ProductPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiManagementServiceListNextResponse = ApiManagementServiceListResult; - /** Optional parameters. */ -export interface DiagnosticListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface ProductPolicyListByProductNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type DiagnosticListByServiceResponse = DiagnosticCollection; +/** Contains response data for the listByProductNext operation. */ +export type ProductPolicyListByProductNextResponse = PolicyCollection; /** Optional parameters. */ -export interface DiagnosticGetEntityTagOptionalParams +export interface ProductWikiGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders; +export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; /** Optional parameters. */ -export interface DiagnosticGetOptionalParams +export interface ProductWikiGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DiagnosticGetResponse = DiagnosticGetHeaders & DiagnosticContract; +export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; /** Optional parameters. */ -export interface DiagnosticCreateOrUpdateOptionalParams +export interface ProductWikiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type DiagnosticCreateOrUpdateResponse = DiagnosticCreateOrUpdateHeaders & - DiagnosticContract; +export type ProductWikiCreateOrUpdateResponse = ProductWikiCreateOrUpdateHeaders & + WikiContract; /** Optional parameters. */ -export interface DiagnosticUpdateOptionalParams +export interface ProductWikiUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type DiagnosticUpdateResponse = DiagnosticUpdateHeaders & - DiagnosticContract; - -/** Optional parameters. */ -export interface DiagnosticDeleteOptionalParams - extends coreClient.OperationOptions {} +export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; /** Optional parameters. */ -export interface DiagnosticListByServiceNextOptionalParams +export interface ProductWikiDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type DiagnosticListByServiceNextResponse = DiagnosticCollection; - /** Optional parameters. */ -export interface EmailTemplateListByServiceOptionalParams +export interface ProductWikisListOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9266,57 +11598,61 @@ export interface EmailTemplateListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type EmailTemplateListByServiceResponse = EmailTemplateCollection; +/** Contains response data for the list operation. */ +export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; /** Optional parameters. */ -export interface EmailTemplateGetEntityTagOptionalParams +export interface ProductWikisListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders; +/** Contains response data for the listNext operation. */ +export type ProductWikisListNextResponse = ProductWikisListNextHeaders & + WikiCollection; /** Optional parameters. */ -export interface EmailTemplateGetOptionalParams - extends coreClient.OperationOptions {} +export interface ProductApiLinkListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the get operation. */ -export type EmailTemplateGetResponse = EmailTemplateGetHeaders & - EmailTemplateContract; +/** Contains response data for the listByProduct operation. */ +export type ProductApiLinkListByProductResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface EmailTemplateCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface ProductApiLinkGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract; +/** Contains response data for the get operation. */ +export type ProductApiLinkGetResponse = ProductApiLinkGetHeaders & + ProductApiLinkContract; /** Optional parameters. */ -export interface EmailTemplateUpdateOptionalParams +export interface ProductApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type EmailTemplateUpdateResponse = EmailTemplateUpdateHeaders & - EmailTemplateContract; +/** Contains response data for the createOrUpdate operation. */ +export type ProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; /** Optional parameters. */ -export interface EmailTemplateDeleteOptionalParams +export interface ProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface EmailTemplateListByServiceNextOptionalParams +export interface ProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection; +/** Contains response data for the listByProductNext operation. */ +export type ProductApiLinkListByProductNextResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface GatewayListByServiceOptionalParams +export interface ProductGroupLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| region | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| groupId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9324,218 +11660,238 @@ export interface GatewayListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type GatewayListByServiceResponse = GatewayCollection; +/** Contains response data for the listByProduct operation. */ +export type ProductGroupLinkListByProductResponse = ProductGroupLinkCollection; + +/** Optional parameters. */ +export interface ProductGroupLinkGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ProductGroupLinkGetResponse = ProductGroupLinkGetHeaders & + ProductGroupLinkContract; /** Optional parameters. */ -export interface GatewayGetEntityTagOptionalParams +export interface ProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders; +/** Contains response data for the createOrUpdate operation. */ +export type ProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; /** Optional parameters. */ -export interface GatewayGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GatewayGetResponse = GatewayGetHeaders & GatewayContract; +export interface ProductGroupLinkDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GatewayCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface ProductGroupLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GatewayCreateOrUpdateResponse = GatewayCreateOrUpdateHeaders & - GatewayContract; +/** Contains response data for the listByProductNext operation. */ +export type ProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; /** Optional parameters. */ -export interface GatewayUpdateOptionalParams +export interface QuotaByCounterKeysListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type GatewayUpdateResponse = GatewayUpdateHeaders & GatewayContract; +/** Contains response data for the listByService operation. */ +export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; /** Optional parameters. */ -export interface GatewayDeleteOptionalParams +export interface QuotaByCounterKeysUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; + /** Optional parameters. */ -export interface GatewayListKeysOptionalParams +export interface QuotaByPeriodKeysGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type GatewayListKeysResponse = GatewayListKeysHeaders & - GatewayKeysContract; +/** Contains response data for the get operation. */ +export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; /** Optional parameters. */ -export interface GatewayRegenerateKeyOptionalParams +export interface QuotaByPeriodKeysUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; + /** Optional parameters. */ -export interface GatewayGenerateTokenOptionalParams +export interface RegionListByServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateToken operation. */ -export type GatewayGenerateTokenResponse = GatewayTokenContract; +/** Contains response data for the listByService operation. */ +export type RegionListByServiceResponse = RegionListResult; /** Optional parameters. */ -export interface GatewayListByServiceNextOptionalParams +export interface RegionListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type GatewayListByServiceNextResponse = GatewayCollection; +export type RegionListByServiceNextResponse = RegionListResult; /** Optional parameters. */ -export interface GatewayHostnameConfigurationListByServiceOptionalParams +export interface ReportsListByApiOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| hostname | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** OData order by query option. */ + orderby?: string; } -/** Contains response data for the listByService operation. */ -export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection; +/** Contains response data for the listByApi operation. */ +export type ReportsListByApiResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayHostnameConfigurationGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByUserOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; +} -/** Contains response data for the getEntityTag operation. */ -export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders; +/** Contains response data for the listByUser operation. */ +export type ReportsListByUserResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayHostnameConfigurationGetOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByOperationOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; +} -/** Contains response data for the get operation. */ -export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationGetHeaders & - GatewayHostnameConfigurationContract; +/** Contains response data for the listByOperation operation. */ +export type ReportsListByOperationResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayHostnameConfigurationCreateOrUpdateOptionalParams +export interface ReportsListByProductOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationCreateOrUpdateHeaders & - GatewayHostnameConfigurationContract; - -/** Optional parameters. */ -export interface GatewayHostnameConfigurationDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type ReportsListByProductResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayHostnameConfigurationListByServiceNextOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByGeoOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection; +/** Contains response data for the listByGeo operation. */ +export type ReportsListByGeoResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayApiListByServiceOptionalParams +export interface ReportsListBySubscriptionOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** OData order by query option. */ + orderby?: string; } -/** Contains response data for the listByService operation. */ -export type GatewayApiListByServiceResponse = ApiCollection; +/** Contains response data for the listBySubscription operation. */ +export type ReportsListBySubscriptionResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayApiGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +export interface ReportsListByTimeOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; + /** OData order by query option. */ + orderby?: string; +} -/** Contains response data for the getEntityTag operation. */ -export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders; +/** Contains response data for the listByTime operation. */ +export type ReportsListByTimeResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayApiCreateOrUpdateOptionalParams +export interface ReportsListByRequestOptionalParams extends coreClient.OperationOptions { - /** Association entity details. */ - parameters?: AssociationContract; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type GatewayApiCreateOrUpdateResponse = ApiContract; - -/** Optional parameters. */ -export interface GatewayApiDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByRequest operation. */ +export type ReportsListByRequestResponse = RequestReportCollection; /** Optional parameters. */ -export interface GatewayApiListByServiceNextOptionalParams +export interface ReportsListByApiNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayApiListByServiceNextResponse = ApiCollection; +/** Contains response data for the listByApiNext operation. */ +export type ReportsListByApiNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayCertificateAuthorityListByServiceOptionalParams - extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq, ne | |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface ReportsListByUserNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type GatewayCertificateAuthorityListByServiceResponse = GatewayCertificateAuthorityCollection; +/** Contains response data for the listByUserNext operation. */ +export type ReportsListByUserNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayCertificateAuthorityGetEntityTagOptionalParams +export interface ReportsListByOperationNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GatewayCertificateAuthorityGetEntityTagResponse = GatewayCertificateAuthorityGetEntityTagHeaders; +/** Contains response data for the listByOperationNext operation. */ +export type ReportsListByOperationNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayCertificateAuthorityGetOptionalParams +export interface ReportsListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GatewayCertificateAuthorityGetResponse = GatewayCertificateAuthorityGetHeaders & - GatewayCertificateAuthorityContract; +/** Contains response data for the listByProductNext operation. */ +export type ReportsListByProductNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayCertificateAuthorityCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface ReportsListByGeoNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GatewayCertificateAuthorityCreateOrUpdateResponse = GatewayCertificateAuthorityCreateOrUpdateHeaders & - GatewayCertificateAuthorityContract; +/** Contains response data for the listByGeoNext operation. */ +export type ReportsListByGeoNextResponse = ReportCollection; /** Optional parameters. */ -export interface GatewayCertificateAuthorityDeleteOptionalParams +export interface ReportsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listBySubscriptionNext operation. */ +export type ReportsListBySubscriptionNextResponse = ReportCollection; + /** Optional parameters. */ -export interface GatewayCertificateAuthorityListByServiceNextOptionalParams +export interface ReportsListByTimeNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GatewayCertificateAuthorityListByServiceNextResponse = GatewayCertificateAuthorityCollection; +/** Contains response data for the listByTimeNext operation. */ +export type ReportsListByTimeNextResponse = ReportCollection; /** Optional parameters. */ -export interface GroupListByServiceOptionalParams +export interface GlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9544,155 +11900,184 @@ export interface GroupListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type GroupListByServiceResponse = GroupCollection; +export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface GroupGetEntityTagOptionalParams +export interface GlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders; +export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface GroupGetOptionalParams extends coreClient.OperationOptions {} +export interface GlobalSchemaGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GroupGetResponse = GroupGetHeaders & GroupContract; +export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface GroupCreateOrUpdateOptionalParams +export interface GlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type GroupCreateOrUpdateResponse = GroupCreateOrUpdateHeaders & - GroupContract; - -/** Optional parameters. */ -export interface GroupUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type GroupUpdateResponse = GroupUpdateHeaders & GroupContract; +export type GlobalSchemaCreateOrUpdateResponse = GlobalSchemaCreateOrUpdateHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface GroupDeleteOptionalParams +export interface GlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GroupListByServiceNextOptionalParams +export interface GlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type GroupListByServiceNextResponse = GroupCollection; +export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface GroupUserListOptionalParams +export interface TenantSettingsListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** Not used */ filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; } -/** Contains response data for the list operation. */ -export type GroupUserListResponse = UserCollection; +/** Contains response data for the listByService operation. */ +export type TenantSettingsListByServiceResponse = TenantSettingsCollection; /** Optional parameters. */ -export interface GroupUserCheckEntityExistsOptionalParams +export interface TenantSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type GroupUserCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the get operation. */ +export type TenantSettingsGetResponse = TenantSettingsGetHeaders & + TenantSettingsContract; /** Optional parameters. */ -export interface GroupUserCreateOptionalParams +export interface TenantSettingsListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type GroupUserCreateResponse = UserContract; +/** Contains response data for the listByServiceNext operation. */ +export type TenantSettingsListByServiceNextResponse = TenantSettingsCollection; /** Optional parameters. */ -export interface GroupUserDeleteOptionalParams +export interface ApiManagementSkusListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type ApiManagementSkusListResponse = ApiManagementSkusResult; + /** Optional parameters. */ -export interface GroupUserListNextOptionalParams +export interface ApiManagementSkusListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type GroupUserListNextResponse = UserCollection; +export type ApiManagementSkusListNextResponse = ApiManagementSkusResult; /** Optional parameters. */ -export interface IdentityProviderListByServiceOptionalParams - extends coreClient.OperationOptions {} +export interface SubscriptionListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the listByService operation. */ -export type IdentityProviderListByServiceResponse = IdentityProviderList; +/** Contains response data for the list operation. */ +export type SubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface IdentityProviderGetEntityTagOptionalParams +export interface SubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders; +export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders; /** Optional parameters. */ -export interface IdentityProviderGetOptionalParams +export interface SubscriptionGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IdentityProviderGetResponse = IdentityProviderGetHeaders & - IdentityProviderContract; +export type SubscriptionGetResponse = SubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface IdentityProviderCreateOrUpdateOptionalParams +export interface SubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; } /** Contains response data for the createOrUpdate operation. */ -export type IdentityProviderCreateOrUpdateResponse = IdentityProviderCreateOrUpdateHeaders & - IdentityProviderContract; +export type SubscriptionCreateOrUpdateResponse = SubscriptionCreateOrUpdateHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface IdentityProviderUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SubscriptionUpdateOptionalParams + extends coreClient.OperationOptions { + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; +} /** Contains response data for the update operation. */ -export type IdentityProviderUpdateResponse = IdentityProviderUpdateHeaders & - IdentityProviderContract; +export type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface IdentityProviderDeleteOptionalParams +export interface SubscriptionDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface IdentityProviderListSecretsOptionalParams +export interface SubscriptionRegeneratePrimaryKeyOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SubscriptionRegenerateSecondaryKeyOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SubscriptionListSecretsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSecrets operation. */ -export type IdentityProviderListSecretsResponse = IdentityProviderListSecretsHeaders & - ClientSecretContract; +export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & + SubscriptionKeysContract; /** Optional parameters. */ -export interface IdentityProviderListByServiceNextOptionalParams +export interface SubscriptionListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type IdentityProviderListByServiceNextResponse = IdentityProviderList; +/** Contains response data for the listNext operation. */ +export type SubscriptionListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface IssueListByServiceOptionalParams +export interface TagResourceListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| aid | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| isCurrent | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9701,25 +12086,19 @@ export interface IssueListByServiceOptionalParams } /** Contains response data for the listByService operation. */ -export type IssueListByServiceResponse = IssueCollection; - -/** Optional parameters. */ -export interface IssueGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type IssueGetResponse = IssueGetHeaders & IssueContract; +export type TagResourceListByServiceResponse = TagResourceCollection; /** Optional parameters. */ -export interface IssueListByServiceNextOptionalParams +export interface TagResourceListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type IssueListByServiceNextResponse = IssueCollection; +export type TagResourceListByServiceNextResponse = TagResourceCollection; /** Optional parameters. */ -export interface LoggerListByServiceOptionalParams +export interface TagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| loggerType | filter | eq | |
| resourceId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -9727,508 +12106,520 @@ export interface LoggerListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type LoggerListByServiceResponse = LoggerCollection; +/** Contains response data for the listByProduct operation. */ +export type TagApiLinkListByProductResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface LoggerGetEntityTagOptionalParams +export interface TagApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders; - -/** Optional parameters. */ -export interface LoggerGetOptionalParams extends coreClient.OperationOptions {} - /** Contains response data for the get operation. */ -export type LoggerGetResponse = LoggerGetHeaders & LoggerContract; - -/** Optional parameters. */ -export interface LoggerCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type LoggerCreateOrUpdateResponse = LoggerCreateOrUpdateHeaders & - LoggerContract; +export type TagApiLinkGetResponse = TagApiLinkGetHeaders & TagApiLinkContract; /** Optional parameters. */ -export interface LoggerUpdateOptionalParams +export interface TagApiLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type LoggerUpdateResponse = LoggerUpdateHeaders & LoggerContract; +/** Contains response data for the createOrUpdate operation. */ +export type TagApiLinkCreateOrUpdateResponse = TagApiLinkContract; /** Optional parameters. */ -export interface LoggerDeleteOptionalParams +export interface TagApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface LoggerListByServiceNextOptionalParams +export interface TagApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type LoggerListByServiceNextResponse = LoggerCollection; +/** Contains response data for the listByProductNext operation. */ +export type TagApiLinkListByProductNextResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface NamedValueListByServiceOptionalParams +export interface TagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| operationId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** When set to true, the response contains only named value entities which failed refresh. */ - isKeyVaultRefreshFailed?: boolean; } -/** Contains response data for the listByService operation. */ -export type NamedValueListByServiceResponse = NamedValueCollection; - -/** Optional parameters. */ -export interface NamedValueGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders; +/** Contains response data for the listByProduct operation. */ +export type TagOperationLinkListByProductResponse = TagOperationLinkCollection; /** Optional parameters. */ -export interface NamedValueGetOptionalParams +export interface TagOperationLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NamedValueGetResponse = NamedValueGetHeaders & NamedValueContract; +export type TagOperationLinkGetResponse = TagOperationLinkGetHeaders & + TagOperationLinkContract; /** Optional parameters. */ -export interface NamedValueCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface TagOperationLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type NamedValueCreateOrUpdateResponse = NamedValueCreateOrUpdateHeaders & - NamedValueContract; - -/** Optional parameters. */ -export interface NamedValueUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type NamedValueUpdateResponse = NamedValueUpdateHeaders & - NamedValueContract; +export type TagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; /** Optional parameters. */ -export interface NamedValueDeleteOptionalParams +export interface TagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface NamedValueListValueOptionalParams +export interface TagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listValue operation. */ -export type NamedValueListValueResponse = NamedValueListValueHeaders & - NamedValueSecretContract; +/** Contains response data for the listByProductNext operation. */ +export type TagOperationLinkListByProductNextResponse = TagOperationLinkCollection; /** Optional parameters. */ -export interface NamedValueRefreshSecretOptionalParams +export interface TagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the refreshSecret operation. */ -export type NamedValueRefreshSecretResponse = NamedValueRefreshSecretHeaders & - NamedValueContract; +/** Contains response data for the listByProduct operation. */ +export type TagProductLinkListByProductResponse = TagProductLinkCollection; /** Optional parameters. */ -export interface NamedValueListByServiceNextOptionalParams +export interface TagProductLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type NamedValueListByServiceNextResponse = NamedValueCollection; +/** Contains response data for the get operation. */ +export type TagProductLinkGetResponse = TagProductLinkGetHeaders & + TagProductLinkContract; /** Optional parameters. */ -export interface NetworkStatusListByServiceOptionalParams +export interface TagProductLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type NetworkStatusListByServiceResponse = NetworkStatusContractByLocation[]; +/** Contains response data for the createOrUpdate operation. */ +export type TagProductLinkCreateOrUpdateResponse = TagProductLinkContract; /** Optional parameters. */ -export interface NetworkStatusListByLocationOptionalParams +export interface TagProductLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByLocation operation. */ -export type NetworkStatusListByLocationResponse = NetworkStatusContract; +/** Optional parameters. */ +export interface TagProductLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type TagProductLinkListByProductNextResponse = TagProductLinkCollection; /** Optional parameters. */ -export interface NotificationListByServiceOptionalParams +export interface TenantAccessListByServiceOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** Not used */ + filter?: string; } -/** Contains response data for the listByService operation. */ -export type NotificationListByServiceResponse = NotificationCollection; +/** Contains response data for the listByService operation. */ +export type TenantAccessListByServiceResponse = AccessInformationCollection; + +/** Optional parameters. */ +export interface TenantAccessGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders; /** Optional parameters. */ -export interface NotificationGetOptionalParams +export interface TenantAccessGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NotificationGetResponse = NotificationContract; +export type TenantAccessGetResponse = TenantAccessGetHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface NotificationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface TenantAccessCreateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationCreateOrUpdateResponse = NotificationContract; +/** Contains response data for the create operation. */ +export type TenantAccessCreateResponse = TenantAccessCreateHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface NotificationListByServiceNextOptionalParams +export interface TenantAccessUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type NotificationListByServiceNextResponse = NotificationCollection; +/** Contains response data for the update operation. */ +export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & + AccessInformationContract; /** Optional parameters. */ -export interface NotificationRecipientUserListByNotificationOptionalParams +export interface TenantAccessRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByNotification operation. */ -export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection; +/** Optional parameters. */ +export interface TenantAccessRegenerateSecondaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface NotificationRecipientUserCheckEntityExistsOptionalParams +export interface TenantAccessListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type NotificationRecipientUserCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the listSecrets operation. */ +export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & + AccessInformationSecretsContract; /** Optional parameters. */ -export interface NotificationRecipientUserCreateOrUpdateOptionalParams +export interface TenantAccessListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; +/** Contains response data for the listByServiceNext operation. */ +export type TenantAccessListByServiceNextResponse = AccessInformationCollection; /** Optional parameters. */ -export interface NotificationRecipientUserDeleteOptionalParams +export interface TenantAccessGitRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface NotificationRecipientEmailListByNotificationOptionalParams +export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByNotification operation. */ -export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; +/** Optional parameters. */ +export interface TenantConfigurationDeployOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the deploy operation. */ +export type TenantConfigurationDeployResponse = OperationResultContract; /** Optional parameters. */ -export interface NotificationRecipientEmailCheckEntityExistsOptionalParams - extends coreClient.OperationOptions {} +export interface TenantConfigurationSaveOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the checkEntityExists operation. */ -export type NotificationRecipientEmailCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the save operation. */ +export type TenantConfigurationSaveResponse = OperationResultContract; /** Optional parameters. */ -export interface NotificationRecipientEmailCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface TenantConfigurationValidateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the createOrUpdate operation. */ -export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; +/** Contains response data for the validate operation. */ +export type TenantConfigurationValidateResponse = OperationResultContract; /** Optional parameters. */ -export interface NotificationRecipientEmailDeleteOptionalParams +export interface TenantConfigurationGetSyncStateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getSyncState operation. */ +export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; + /** Optional parameters. */ -export interface OpenIdConnectProviderListByServiceOptionalParams +export interface UserListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| groups | expand | | |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Detailed Group in response. */ + expandGroups?: boolean; } /** Contains response data for the listByService operation. */ -export type OpenIdConnectProviderListByServiceResponse = OpenIdConnectProviderCollection; +export type UserListByServiceResponse = UserCollection; /** Optional parameters. */ -export interface OpenIdConnectProviderGetEntityTagOptionalParams +export interface UserGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type OpenIdConnectProviderGetEntityTagResponse = OpenIdConnectProviderGetEntityTagHeaders; +export type UserGetEntityTagResponse = UserGetEntityTagHeaders; /** Optional parameters. */ -export interface OpenIdConnectProviderGetOptionalParams - extends coreClient.OperationOptions {} +export interface UserGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OpenIdConnectProviderGetResponse = OpenIdConnectProviderGetHeaders & - OpenidConnectProviderContract; +export type UserGetResponse = UserGetHeaders & UserContract; /** Optional parameters. */ -export interface OpenIdConnectProviderCreateOrUpdateOptionalParams +export interface UserCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Send an Email notification to the User. */ + notify?: boolean; } /** Contains response data for the createOrUpdate operation. */ -export type OpenIdConnectProviderCreateOrUpdateResponse = OpenIdConnectProviderCreateOrUpdateHeaders & - OpenidConnectProviderContract; +export type UserCreateOrUpdateResponse = UserCreateOrUpdateHeaders & + UserContract; /** Optional parameters. */ -export interface OpenIdConnectProviderUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface UserUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type OpenIdConnectProviderUpdateResponse = OpenIdConnectProviderUpdateHeaders & - OpenidConnectProviderContract; +export type UserUpdateResponse = UserUpdateHeaders & UserContract; /** Optional parameters. */ -export interface OpenIdConnectProviderDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface UserDeleteOptionalParams extends coreClient.OperationOptions { + /** Whether to delete user's subscription or not. */ + deleteSubscriptions?: boolean; + /** Send an Account Closed Email notification to the User. */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; +} /** Optional parameters. */ -export interface OpenIdConnectProviderListSecretsOptionalParams +export interface UserGenerateSsoUrlOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type OpenIdConnectProviderListSecretsResponse = OpenIdConnectProviderListSecretsHeaders & - ClientSecretContract; +/** Contains response data for the generateSsoUrl operation. */ +export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; /** Optional parameters. */ -export interface OpenIdConnectProviderListByServiceNextOptionalParams +export interface UserGetSharedAccessTokenOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection; +/** Contains response data for the getSharedAccessToken operation. */ +export type UserGetSharedAccessTokenResponse = UserTokenResult; /** Optional parameters. */ -export interface OutboundNetworkDependenciesEndpointsListByServiceOptionalParams +export interface UserListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type OutboundNetworkDependenciesEndpointsListByServiceResponse = OutboundEnvironmentEndpointList; +/** Contains response data for the listByServiceNext operation. */ +export type UserListByServiceNextResponse = UserCollection; /** Optional parameters. */ -export interface PolicyListByServiceOptionalParams - extends coreClient.OperationOptions {} +export interface UserGroupListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the listByService operation. */ -export type PolicyListByServiceResponse = PolicyCollection; +/** Contains response data for the list operation. */ +export type UserGroupListResponse = GroupCollection; /** Optional parameters. */ -export interface PolicyGetEntityTagOptionalParams +export interface UserGroupListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders; +/** Contains response data for the listNext operation. */ +export type UserGroupListNextResponse = GroupCollection; /** Optional parameters. */ -export interface PolicyGetOptionalParams extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; +export interface UserSubscriptionListOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
|name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } +/** Contains response data for the list operation. */ +export type UserSubscriptionListResponse = SubscriptionCollection; + +/** Optional parameters. */ +export interface UserSubscriptionGetOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type PolicyGetResponse = PolicyGetHeaders & PolicyContract; +export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface PolicyCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface UserSubscriptionListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type PolicyCreateOrUpdateResponse = PolicyCreateOrUpdateHeaders & - PolicyContract; +/** Contains response data for the listNext operation. */ +export type UserSubscriptionListNextResponse = SubscriptionCollection; /** Optional parameters. */ -export interface PolicyDeleteOptionalParams +export interface UserIdentitiesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type UserIdentitiesListResponse = UserIdentityCollection; + +/** Optional parameters. */ +export interface UserIdentitiesListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type UserIdentitiesListNextResponse = UserIdentityCollection; + /** Optional parameters. */ -export interface PolicyDescriptionListByServiceOptionalParams +export interface UserConfirmationPasswordSendOptionalParams extends coreClient.OperationOptions { - /** Policy scope. */ - scope?: PolicyScopeContract; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; } -/** Contains response data for the listByService operation. */ -export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection; - /** Optional parameters. */ -export interface PolicyFragmentListByServiceOptionalParams +export interface WorkspaceListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |

| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; } /** Contains response data for the listByService operation. */ -export type PolicyFragmentListByServiceResponse = PolicyFragmentCollection; +export type WorkspaceListByServiceResponse = WorkspaceCollection; /** Optional parameters. */ -export interface PolicyFragmentGetEntityTagOptionalParams +export interface WorkspaceGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PolicyFragmentGetEntityTagResponse = PolicyFragmentGetEntityTagHeaders; +export type WorkspaceGetEntityTagResponse = WorkspaceGetEntityTagHeaders; /** Optional parameters. */ -export interface PolicyFragmentGetOptionalParams - extends coreClient.OperationOptions { - /** Policy fragment content format. */ - format?: PolicyFragmentContentFormat; -} +export interface WorkspaceGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PolicyFragmentGetResponse = PolicyFragmentGetHeaders & - PolicyFragmentContract; +export type WorkspaceGetResponse = WorkspaceGetHeaders & WorkspaceContract; /** Optional parameters. */ -export interface PolicyFragmentCreateOrUpdateOptionalParams +export interface WorkspaceCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type PolicyFragmentCreateOrUpdateResponse = PolicyFragmentCreateOrUpdateHeaders & - PolicyFragmentContract; +export type WorkspaceCreateOrUpdateResponse = WorkspaceCreateOrUpdateHeaders & + WorkspaceContract; /** Optional parameters. */ -export interface PolicyFragmentDeleteOptionalParams +export interface WorkspaceUpdateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type WorkspaceUpdateResponse = WorkspaceUpdateHeaders & + WorkspaceContract; + /** Optional parameters. */ -export interface PolicyFragmentListReferencesOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; -} +export interface WorkspaceDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listReferences operation. */ -export type PolicyFragmentListReferencesResponse = ResourceCollection; +/** Optional parameters. */ +export interface WorkspaceListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceListByServiceNextResponse = WorkspaceCollection; /** Optional parameters. */ -export interface PortalConfigListByServiceOptionalParams +export interface WorkspacePolicyListByApiOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PortalConfigListByServiceResponse = PortalConfigCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspacePolicyListByApiResponse = PolicyCollection; /** Optional parameters. */ -export interface PortalConfigGetEntityTagOptionalParams +export interface WorkspacePolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PortalConfigGetEntityTagResponse = PortalConfigGetEntityTagHeaders; +export type WorkspacePolicyGetEntityTagResponse = WorkspacePolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface PortalConfigGetOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspacePolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} /** Contains response data for the get operation. */ -export type PortalConfigGetResponse = PortalConfigGetHeaders & - PortalConfigContract; +export type WorkspacePolicyGetResponse = WorkspacePolicyGetHeaders & + PolicyContract; /** Optional parameters. */ -export interface PortalConfigUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspacePolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the update operation. */ -export type PortalConfigUpdateResponse = PortalConfigContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspacePolicyCreateOrUpdateResponse = WorkspacePolicyCreateOrUpdateHeaders & + PolicyContract; /** Optional parameters. */ -export interface PortalConfigCreateOrUpdateOptionalParams +export interface WorkspacePolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type PortalConfigCreateOrUpdateResponse = PortalConfigContract; +/** Optional parameters. */ +export interface WorkspacePolicyListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type WorkspacePolicyListByApiNextResponse = PolicyCollection; /** Optional parameters. */ -export interface PortalRevisionListByServiceOptionalParams +export interface WorkspaceNamedValueListByServiceOptionalParams extends coreClient.OperationOptions { - /** - * | Field | Supported operators | Supported functions | - * |-------------|------------------------|-----------------------------------| - * - * |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| - * |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith| - * |isCurrent | eq, ne | | - * - */ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Query parameter to fetch named value entities based on refresh status. */ + isKeyVaultRefreshFailed?: KeyVaultRefreshState; } /** Contains response data for the listByService operation. */ -export type PortalRevisionListByServiceResponse = PortalRevisionCollection; +export type WorkspaceNamedValueListByServiceResponse = NamedValueCollection; /** Optional parameters. */ -export interface PortalRevisionGetEntityTagOptionalParams +export interface WorkspaceNamedValueGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type PortalRevisionGetEntityTagResponse = PortalRevisionGetEntityTagHeaders; +export type WorkspaceNamedValueGetEntityTagResponse = WorkspaceNamedValueGetEntityTagHeaders; /** Optional parameters. */ -export interface PortalRevisionGetOptionalParams +export interface WorkspaceNamedValueGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PortalRevisionGetResponse = PortalRevisionGetHeaders & - PortalRevisionContract; +export type WorkspaceNamedValueGetResponse = WorkspaceNamedValueGetHeaders & + NamedValueContract; /** Optional parameters. */ -export interface PortalRevisionCreateOrUpdateOptionalParams +export interface WorkspaceNamedValueCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -10236,11 +12627,11 @@ export interface PortalRevisionCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type PortalRevisionCreateOrUpdateResponse = PortalRevisionCreateOrUpdateHeaders & - PortalRevisionContract; +export type WorkspaceNamedValueCreateOrUpdateResponse = WorkspaceNamedValueCreateOrUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface PortalRevisionUpdateOptionalParams +export interface WorkspaceNamedValueUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10249,256 +12640,262 @@ export interface PortalRevisionUpdateOptionalParams } /** Contains response data for the update operation. */ -export type PortalRevisionUpdateResponse = PortalRevisionUpdateHeaders & - PortalRevisionContract; +export type WorkspaceNamedValueUpdateResponse = WorkspaceNamedValueUpdateHeaders & + NamedValueContract; /** Optional parameters. */ -export interface PortalRevisionListByServiceNextOptionalParams +export interface WorkspaceNamedValueDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type PortalRevisionListByServiceNextResponse = PortalRevisionCollection; - /** Optional parameters. */ -export interface PortalSettingsListByServiceOptionalParams +export interface WorkspaceNamedValueListValueOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PortalSettingsListByServiceResponse = PortalSettingsCollection; +/** Contains response data for the listValue operation. */ +export type WorkspaceNamedValueListValueResponse = WorkspaceNamedValueListValueHeaders & + NamedValueSecretContract; /** Optional parameters. */ -export interface SignInSettingsGetEntityTagOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceNamedValueRefreshSecretOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the getEntityTag operation. */ -export type SignInSettingsGetEntityTagResponse = SignInSettingsGetEntityTagHeaders; +/** Contains response data for the refreshSecret operation. */ +export type WorkspaceNamedValueRefreshSecretResponse = WorkspaceNamedValueRefreshSecretHeaders & + NamedValueContract; /** Optional parameters. */ -export interface SignInSettingsGetOptionalParams +export interface WorkspaceNamedValueListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SignInSettingsGetResponse = SignInSettingsGetHeaders & - PortalSigninSettings; - -/** Optional parameters. */ -export interface SignInSettingsUpdateOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceNamedValueListByServiceNextResponse = NamedValueCollection; /** Optional parameters. */ -export interface SignInSettingsCreateOrUpdateOptionalParams +export interface WorkspaceGlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings; +/** Contains response data for the listByService operation. */ +export type WorkspaceGlobalSchemaListByServiceResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface SignUpSettingsGetEntityTagOptionalParams +export interface WorkspaceGlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders; +export type WorkspaceGlobalSchemaGetEntityTagResponse = WorkspaceGlobalSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface SignUpSettingsGetOptionalParams +export interface WorkspaceGlobalSchemaGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SignUpSettingsGetResponse = SignUpSettingsGetHeaders & - PortalSignupSettings; - -/** Optional parameters. */ -export interface SignUpSettingsUpdateOptionalParams - extends coreClient.OperationOptions {} +export type WorkspaceGlobalSchemaGetResponse = WorkspaceGlobalSchemaGetHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface SignUpSettingsCreateOrUpdateOptionalParams +export interface WorkspaceGlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings; +export type WorkspaceGlobalSchemaCreateOrUpdateResponse = WorkspaceGlobalSchemaCreateOrUpdateHeaders & + GlobalSchemaContract; /** Optional parameters. */ -export interface DelegationSettingsGetEntityTagOptionalParams +export interface WorkspaceGlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders; - /** Optional parameters. */ -export interface DelegationSettingsGetOptionalParams +export interface WorkspaceGlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DelegationSettingsGetResponse = DelegationSettingsGetHeaders & - PortalDelegationSettings; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceGlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; /** Optional parameters. */ -export interface DelegationSettingsUpdateOptionalParams +export interface WorkspaceNotificationListByServiceOptionalParams + extends coreClient.OperationOptions { + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} + +/** Contains response data for the listByService operation. */ +export type WorkspaceNotificationListByServiceResponse = NotificationCollection; + +/** Optional parameters. */ +export interface WorkspaceNotificationGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceNotificationGetResponse = NotificationContract; + /** Optional parameters. */ -export interface DelegationSettingsCreateOrUpdateOptionalParams +export interface WorkspaceNotificationCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; } /** Contains response data for the createOrUpdate operation. */ -export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings; +export type WorkspaceNotificationCreateOrUpdateResponse = NotificationContract; /** Optional parameters. */ -export interface DelegationSettingsListSecretsOptionalParams +export interface WorkspaceNotificationListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type DelegationSettingsListSecretsResponse = PortalSettingValidationKeyContract; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceNotificationListByServiceNextResponse = NotificationCollection; /** Optional parameters. */ -export interface PrivateEndpointConnectionListByServiceOptionalParams +export interface WorkspaceNotificationRecipientUserListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type PrivateEndpointConnectionListByServiceResponse = PrivateEndpointConnectionListResult; +/** Contains response data for the listByNotification operation. */ +export type WorkspaceNotificationRecipientUserListByNotificationResponse = RecipientUserCollection; /** Optional parameters. */ -export interface PrivateEndpointConnectionGetByNameOptionalParams +export interface WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByName operation. */ -export type PrivateEndpointConnectionGetByNameResponse = PrivateEndpointConnection; +/** Contains response data for the checkEntityExists operation. */ +export type WorkspaceNotificationRecipientUserCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface PrivateEndpointConnectionCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionCreateOrUpdateResponse = PrivateEndpointConnection; +export type WorkspaceNotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract; /** Optional parameters. */ -export interface PrivateEndpointConnectionDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface WorkspaceNotificationRecipientUserDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface PrivateEndpointConnectionListPrivateLinkResourcesOptionalParams +export interface WorkspaceNotificationRecipientEmailListByNotificationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listPrivateLinkResources operation. */ -export type PrivateEndpointConnectionListPrivateLinkResourcesResponse = PrivateLinkResourceListResult; +/** Contains response data for the listByNotification operation. */ +export type WorkspaceNotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection; /** Optional parameters. */ -export interface PrivateEndpointConnectionGetPrivateLinkResourceOptionalParams +export interface WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getPrivateLinkResource operation. */ -export type PrivateEndpointConnectionGetPrivateLinkResourceResponse = PrivateLinkResource; +/** Contains response data for the checkEntityExists operation. */ +export type WorkspaceNotificationRecipientEmailCheckEntityExistsResponse = { + body: boolean; +}; /** Optional parameters. */ -export interface ProductListByServiceOptionalParams +export interface WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceNotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract; + +/** Optional parameters. */ +export interface WorkspaceNotificationRecipientEmailDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspacePolicyFragmentListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter, orderBy | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| value | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Products which are part of a specific tag. */ - tags?: string; - /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ - expandGroups?: boolean; + /** OData order by query option. */ + orderby?: string; } /** Contains response data for the listByService operation. */ -export type ProductListByServiceResponse = ProductCollection; +export type WorkspacePolicyFragmentListByServiceResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface ProductGetEntityTagOptionalParams +export interface WorkspacePolicyFragmentGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders; +export type WorkspacePolicyFragmentGetEntityTagResponse = WorkspacePolicyFragmentGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspacePolicyFragmentGetOptionalParams + extends coreClient.OperationOptions { + /** Policy fragment content format. */ + format?: PolicyFragmentContentFormat; +} /** Contains response data for the get operation. */ -export type ProductGetResponse = ProductGetHeaders & ProductContract; +export type WorkspacePolicyFragmentGetResponse = WorkspacePolicyFragmentGetHeaders & + PolicyFragmentContract; /** Optional parameters. */ -export interface ProductCreateOrUpdateOptionalParams +export interface WorkspacePolicyFragmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type ProductCreateOrUpdateResponse = ProductCreateOrUpdateHeaders & - ProductContract; - -/** Optional parameters. */ -export interface ProductUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type ProductUpdateResponse = ProductUpdateHeaders & ProductContract; - -/** Optional parameters. */ -export interface ProductDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delete existing subscriptions associated with the product or not. */ - deleteSubscriptions?: boolean; -} +export type WorkspacePolicyFragmentCreateOrUpdateResponse = WorkspacePolicyFragmentCreateOrUpdateHeaders & + PolicyFragmentContract; /** Optional parameters. */ -export interface ProductListByTagsOptionalParams +export interface WorkspacePolicyFragmentDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspacePolicyFragmentListReferencesOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | substringof, contains, startswith, endswith |
*/ - filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Include not tagged Products. */ - includeNotTaggedProducts?: boolean; } -/** Contains response data for the listByTags operation. */ -export type ProductListByTagsResponse = TagResourceCollection; +/** Contains response data for the listReferences operation. */ +export type WorkspacePolicyFragmentListReferencesResponse = ResourceCollection; /** Optional parameters. */ -export interface ProductListByServiceNextOptionalParams +export interface WorkspacePolicyFragmentListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type ProductListByServiceNextResponse = ProductCollection; - -/** Optional parameters. */ -export interface ProductListByTagsNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByTagsNext operation. */ -export type ProductListByTagsNextResponse = TagResourceCollection; +export type WorkspacePolicyFragmentListByServiceNextResponse = PolicyFragmentCollection; /** Optional parameters. */ -export interface ProductApiListByProductOptionalParams +export interface WorkspaceGroupListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| externalId | filter | eq | |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10506,40 +12903,58 @@ export interface ProductApiListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type ProductApiListByProductResponse = ApiCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceGroupListByServiceResponse = GroupCollection; /** Optional parameters. */ -export interface ProductApiCheckEntityExistsOptionalParams +export interface WorkspaceGroupGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the checkEntityExists operation. */ -export type ProductApiCheckEntityExistsResponse = { - body: boolean; -}; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceGroupGetEntityTagResponse = WorkspaceGroupGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductApiCreateOrUpdateOptionalParams +export interface WorkspaceGroupGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type WorkspaceGroupGetResponse = WorkspaceGroupGetHeaders & + GroupContract; + +/** Optional parameters. */ +export interface WorkspaceGroupCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + /** Contains response data for the createOrUpdate operation. */ -export type ProductApiCreateOrUpdateResponse = ApiContract; +export type WorkspaceGroupCreateOrUpdateResponse = WorkspaceGroupCreateOrUpdateHeaders & + GroupContract; /** Optional parameters. */ -export interface ProductApiDeleteOptionalParams +export interface WorkspaceGroupUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type WorkspaceGroupUpdateResponse = WorkspaceGroupUpdateHeaders & + GroupContract; + +/** Optional parameters. */ +export interface WorkspaceGroupDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductApiListByProductNextOptionalParams +export interface WorkspaceGroupListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type ProductApiListByProductNextResponse = ApiCollection; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceGroupListByServiceNextResponse = GroupCollection; /** Optional parameters. */ -export interface ProductGroupListByProductOptionalParams +export interface WorkspaceGroupUserListOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | |
| displayName | filter | eq, ne | |
| description | filter | eq, ne | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10547,38 +12962,38 @@ export interface ProductGroupListByProductOptionalParams skip?: number; } -/** Contains response data for the listByProduct operation. */ -export type ProductGroupListByProductResponse = GroupCollection; +/** Contains response data for the list operation. */ +export type WorkspaceGroupUserListResponse = UserCollection; /** Optional parameters. */ -export interface ProductGroupCheckEntityExistsOptionalParams +export interface WorkspaceGroupUserCheckEntityExistsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkEntityExists operation. */ -export type ProductGroupCheckEntityExistsResponse = { +export type WorkspaceGroupUserCheckEntityExistsResponse = { body: boolean; }; /** Optional parameters. */ -export interface ProductGroupCreateOrUpdateOptionalParams +export interface WorkspaceGroupUserCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ProductGroupCreateOrUpdateResponse = GroupContract; +/** Contains response data for the create operation. */ +export type WorkspaceGroupUserCreateResponse = UserContract; /** Optional parameters. */ -export interface ProductGroupDeleteOptionalParams +export interface WorkspaceGroupUserDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductGroupListByProductNextOptionalParams +export interface WorkspaceGroupUserListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type ProductGroupListByProductNextResponse = GroupCollection; +/** Contains response data for the listNext operation. */ +export type WorkspaceGroupUserListNextResponse = UserCollection; /** Optional parameters. */ -export interface ProductSubscriptionsListOptionalParams +export interface WorkspaceSubscriptionListOptionalParams extends coreClient.OperationOptions { /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ filter?: string; @@ -10589,94 +13004,90 @@ export interface ProductSubscriptionsListOptionalParams } /** Contains response data for the list operation. */ -export type ProductSubscriptionsListResponse = SubscriptionCollection; - -/** Optional parameters. */ -export interface ProductSubscriptionsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ProductSubscriptionsListNextResponse = SubscriptionCollection; - -/** Optional parameters. */ -export interface ProductPolicyListByProductOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByProduct operation. */ -export type ProductPolicyListByProductResponse = PolicyCollection; +export type WorkspaceSubscriptionListResponse = SubscriptionCollection; /** Optional parameters. */ -export interface ProductPolicyGetEntityTagOptionalParams +export interface WorkspaceSubscriptionGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders; +export type WorkspaceSubscriptionGetEntityTagResponse = WorkspaceSubscriptionGetEntityTagHeaders; /** Optional parameters. */ -export interface ProductPolicyGetOptionalParams - extends coreClient.OperationOptions { - /** Policy Export Format. */ - format?: PolicyExportFormat; -} +export interface WorkspaceSubscriptionGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ProductPolicyGetResponse = ProductPolicyGetHeaders & PolicyContract; +export type WorkspaceSubscriptionGetResponse = WorkspaceSubscriptionGetHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyCreateOrUpdateOptionalParams +export interface WorkspaceSubscriptionCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; } /** Contains response data for the createOrUpdate operation. */ -export type ProductPolicyCreateOrUpdateResponse = ProductPolicyCreateOrUpdateHeaders & - PolicyContract; +export type WorkspaceSubscriptionCreateOrUpdateResponse = WorkspaceSubscriptionCreateOrUpdateHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface ProductPolicyDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSubscriptionUpdateOptionalParams + extends coreClient.OperationOptions { + /** + * Notify change in Subscription State. + * - If false, do not send any email notification for change of state of subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; + /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ + appType?: AppType; +} + +/** Contains response data for the update operation. */ +export type WorkspaceSubscriptionUpdateResponse = WorkspaceSubscriptionUpdateHeaders & + SubscriptionContract; /** Optional parameters. */ -export interface ProductWikiGetEntityTagOptionalParams +export interface WorkspaceSubscriptionDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type ProductWikiGetEntityTagResponse = ProductWikiGetEntityTagHeaders; - /** Optional parameters. */ -export interface ProductWikiGetOptionalParams +export interface WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ProductWikiGetResponse = ProductWikiGetHeaders & WikiContract; - /** Optional parameters. */ -export interface ProductWikiCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ProductWikiCreateOrUpdateResponse = ProductWikiCreateOrUpdateHeaders & - WikiContract; +export interface WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ProductWikiUpdateOptionalParams +export interface WorkspaceSubscriptionListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type ProductWikiUpdateResponse = ProductWikiUpdateHeaders & WikiContract; +/** Contains response data for the listSecrets operation. */ +export type WorkspaceSubscriptionListSecretsResponse = WorkspaceSubscriptionListSecretsHeaders & + SubscriptionKeysContract; /** Optional parameters. */ -export interface ProductWikiDeleteOptionalParams +export interface WorkspaceSubscriptionListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type WorkspaceSubscriptionListNextResponse = SubscriptionCollection; + /** Optional parameters. */ -export interface ProductWikisListOptionalParams +export interface WorkspaceApiVersionSetListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -10684,406 +13095,486 @@ export interface ProductWikisListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type ProductWikisListResponse = ProductWikisListHeaders & WikiCollection; - -/** Optional parameters. */ -export interface ProductWikisListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ProductWikisListNextResponse = ProductWikisListNextHeaders & - WikiCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiVersionSetListByServiceResponse = ApiVersionSetCollection; /** Optional parameters. */ -export interface QuotaByCounterKeysListByServiceOptionalParams +export interface WorkspaceApiVersionSetGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiVersionSetGetEntityTagResponse = WorkspaceApiVersionSetGetEntityTagHeaders; /** Optional parameters. */ -export interface QuotaByCounterKeysUpdateOptionalParams +export interface WorkspaceApiVersionSetGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type QuotaByCounterKeysUpdateResponse = QuotaCounterCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiVersionSetGetResponse = WorkspaceApiVersionSetGetHeaders & + ApiVersionSetContract; /** Optional parameters. */ -export interface QuotaByPeriodKeysGetOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceApiVersionSetCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the get operation. */ -export type QuotaByPeriodKeysGetResponse = QuotaCounterContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiVersionSetCreateOrUpdateResponse = WorkspaceApiVersionSetCreateOrUpdateHeaders & + ApiVersionSetContract; /** Optional parameters. */ -export interface QuotaByPeriodKeysUpdateOptionalParams +export interface WorkspaceApiVersionSetUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type QuotaByPeriodKeysUpdateResponse = QuotaCounterContract; +export type WorkspaceApiVersionSetUpdateResponse = WorkspaceApiVersionSetUpdateHeaders & + ApiVersionSetContract; /** Optional parameters. */ -export interface RegionListByServiceOptionalParams +export interface WorkspaceApiVersionSetDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type RegionListByServiceResponse = RegionListResult; - /** Optional parameters. */ -export interface RegionListByServiceNextOptionalParams +export interface WorkspaceApiVersionSetListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type RegionListByServiceNextResponse = RegionListResult; +export type WorkspaceApiVersionSetListByServiceNextResponse = ApiVersionSetCollection; /** Optional parameters. */ -export interface ReportsListByApiOptionalParams +export interface WorkspaceApiListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| isCurrent | filter | eq, ne | |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; + /** Include tags in the response. */ + tags?: string; + /** Include full ApiVersionSet resource in response */ + expandApiVersionSet?: boolean; } -/** Contains response data for the listByApi operation. */ -export type ReportsListByApiResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiListByServiceResponse = ApiCollection; /** Optional parameters. */ -export interface ReportsListByUserOptionalParams - extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; -} +export interface WorkspaceApiGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByUser operation. */ -export type ReportsListByUserResponse = ReportCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiGetEntityTagResponse = WorkspaceApiGetEntityTagHeaders; /** Optional parameters. */ -export interface ReportsListByOperationOptionalParams +export interface WorkspaceApiGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspaceApiGetResponse = WorkspaceApiGetHeaders & ApiContract; + +/** Optional parameters. */ +export interface WorkspaceApiCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** Contains response data for the listByOperation operation. */ -export type ReportsListByOperationResponse = ReportCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiCreateOrUpdateResponse = WorkspaceApiCreateOrUpdateHeaders & + ApiContract; /** Optional parameters. */ -export interface ReportsListByProductOptionalParams +export interface WorkspaceApiUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type WorkspaceApiUpdateResponse = WorkspaceApiUpdateHeaders & + ApiContract; + +/** Optional parameters. */ +export interface WorkspaceApiDeleteOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; + /** Delete all revisions of the Api. */ + deleteRevisions?: boolean; } -/** Contains response data for the listByProduct operation. */ -export type ReportsListByProductResponse = ReportCollection; +/** Optional parameters. */ +export interface WorkspaceApiListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiListByServiceNextResponse = ApiCollection; /** Optional parameters. */ -export interface ReportsListByGeoOptionalParams +export interface WorkspaceApiRevisionListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; } -/** Contains response data for the listByGeo operation. */ -export type ReportsListByGeoResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiRevisionListByServiceResponse = ApiRevisionCollection; /** Optional parameters. */ -export interface ReportsListBySubscriptionOptionalParams +export interface WorkspaceApiRevisionListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiRevisionListByServiceNextResponse = ApiRevisionCollection; + +/** Optional parameters. */ +export interface WorkspaceApiReleaseListByServiceOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** OData order by query option. */ - orderby?: string; } -/** Contains response data for the listBySubscription operation. */ -export type ReportsListBySubscriptionResponse = ReportCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceApiReleaseListByServiceResponse = ApiReleaseCollection; /** Optional parameters. */ -export interface ReportsListByTimeOptionalParams +export interface WorkspaceApiReleaseGetEntityTagOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiReleaseGetEntityTagResponse = WorkspaceApiReleaseGetEntityTagHeaders; + +/** Optional parameters. */ +export interface WorkspaceApiReleaseGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspaceApiReleaseGetResponse = WorkspaceApiReleaseGetHeaders & + ApiReleaseContract; + +/** Optional parameters. */ +export interface WorkspaceApiReleaseCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; - /** OData order by query option. */ - orderby?: string; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the listByTime operation. */ -export type ReportsListByTimeResponse = ReportCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiReleaseCreateOrUpdateResponse = WorkspaceApiReleaseCreateOrUpdateHeaders & + ApiReleaseContract; /** Optional parameters. */ -export interface ReportsListByRequestOptionalParams +export interface WorkspaceApiReleaseUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type WorkspaceApiReleaseUpdateResponse = WorkspaceApiReleaseUpdateHeaders & + ApiReleaseContract; + +/** Optional parameters. */ +export interface WorkspaceApiReleaseDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceApiReleaseListByServiceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceApiReleaseListByServiceNextResponse = ApiReleaseCollection; + +/** Optional parameters. */ +export interface WorkspaceApiOperationListByApiOptionalParams extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Include tags in the response. */ + tags?: string; } -/** Contains response data for the listByRequest operation. */ -export type ReportsListByRequestResponse = RequestReportCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspaceApiOperationListByApiResponse = OperationCollection; /** Optional parameters. */ -export interface ReportsListByApiNextOptionalParams +export interface WorkspaceApiOperationGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByApiNext operation. */ -export type ReportsListByApiNextResponse = ReportCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiOperationGetEntityTagResponse = WorkspaceApiOperationGetEntityTagHeaders; /** Optional parameters. */ -export interface ReportsListByUserNextOptionalParams +export interface WorkspaceApiOperationGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByUserNext operation. */ -export type ReportsListByUserNextResponse = ReportCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiOperationGetResponse = WorkspaceApiOperationGetHeaders & + OperationContract; /** Optional parameters. */ -export interface ReportsListByOperationNextOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceApiOperationCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} -/** Contains response data for the listByOperationNext operation. */ -export type ReportsListByOperationNextResponse = ReportCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiOperationCreateOrUpdateResponse = WorkspaceApiOperationCreateOrUpdateHeaders & + OperationContract; /** Optional parameters. */ -export interface ReportsListByProductNextOptionalParams +export interface WorkspaceApiOperationUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByProductNext operation. */ -export type ReportsListByProductNextResponse = ReportCollection; +/** Contains response data for the update operation. */ +export type WorkspaceApiOperationUpdateResponse = WorkspaceApiOperationUpdateHeaders & + OperationContract; /** Optional parameters. */ -export interface ReportsListByGeoNextOptionalParams +export interface WorkspaceApiOperationDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByGeoNext operation. */ -export type ReportsListByGeoNextResponse = ReportCollection; +/** Optional parameters. */ +export interface WorkspaceApiOperationListByApiNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApiNext operation. */ +export type WorkspaceApiOperationListByApiNextResponse = OperationCollection; /** Optional parameters. */ -export interface ReportsListBySubscriptionNextOptionalParams +export interface WorkspaceApiOperationPolicyListByOperationOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type ReportsListBySubscriptionNextResponse = ReportCollection; +/** Contains response data for the listByOperation operation. */ +export type WorkspaceApiOperationPolicyListByOperationResponse = PolicyCollection; /** Optional parameters. */ -export interface ReportsListByTimeNextOptionalParams +export interface WorkspaceApiOperationPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByTimeNext operation. */ -export type ReportsListByTimeNextResponse = ReportCollection; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiOperationPolicyGetEntityTagResponse = WorkspaceApiOperationPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface GlobalSchemaListByServiceOptionalParams +export interface WorkspaceApiOperationPolicyGetOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ - filter?: string; - /** Number of records to return. */ - top?: number; - /** Number of records to skip. */ - skip?: number; + /** Policy Export Format. */ + format?: PolicyExportFormat; } -/** Contains response data for the listByService operation. */ -export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiOperationPolicyGetResponse = WorkspaceApiOperationPolicyGetHeaders & + PolicyContract; /** Optional parameters. */ -export interface GlobalSchemaGetEntityTagOptionalParams +export interface WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiOperationPolicyCreateOrUpdateResponse = WorkspaceApiOperationPolicyCreateOrUpdateHeaders & + PolicyContract; + +/** Optional parameters. */ +export interface WorkspaceApiOperationPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders; +/** Optional parameters. */ +export interface WorkspaceApiOperationPolicyListByOperationNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByOperationNext operation. */ +export type WorkspaceApiOperationPolicyListByOperationNextResponse = PolicyCollection; /** Optional parameters. */ -export interface GlobalSchemaGetOptionalParams +export interface WorkspaceApiPolicyListByApiOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByApi operation. */ +export type WorkspaceApiPolicyListByApiResponse = PolicyCollection; + +/** Optional parameters. */ +export interface WorkspaceApiPolicyGetEntityTagOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiPolicyGetEntityTagResponse = WorkspaceApiPolicyGetEntityTagHeaders; + +/** Optional parameters. */ +export interface WorkspaceApiPolicyGetOptionalParams + extends coreClient.OperationOptions { + /** Policy Export Format. */ + format?: PolicyExportFormat; +} + /** Contains response data for the get operation. */ -export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & - GlobalSchemaContract; +export type WorkspaceApiPolicyGetResponse = WorkspaceApiPolicyGetHeaders & + PolicyContract; /** Optional parameters. */ -export interface GlobalSchemaCreateOrUpdateOptionalParams +export interface WorkspaceApiPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; } /** Contains response data for the createOrUpdate operation. */ -export type GlobalSchemaCreateOrUpdateResponse = GlobalSchemaCreateOrUpdateHeaders & - GlobalSchemaContract; +export type WorkspaceApiPolicyCreateOrUpdateResponse = WorkspaceApiPolicyCreateOrUpdateHeaders & + PolicyContract; /** Optional parameters. */ -export interface GlobalSchemaDeleteOptionalParams +export interface WorkspaceApiPolicyDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GlobalSchemaListByServiceNextOptionalParams +export interface WorkspaceApiPolicyListByApiNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection; +/** Contains response data for the listByApiNext operation. */ +export type WorkspaceApiPolicyListByApiNextResponse = PolicyCollection; /** Optional parameters. */ -export interface TenantSettingsListByServiceOptionalParams +export interface WorkspaceApiSchemaListByApiOptionalParams extends coreClient.OperationOptions { - /** Not used */ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; } -/** Contains response data for the listByService operation. */ -export type TenantSettingsListByServiceResponse = TenantSettingsCollection; +/** Contains response data for the listByApi operation. */ +export type WorkspaceApiSchemaListByApiResponse = SchemaCollection; /** Optional parameters. */ -export interface TenantSettingsGetOptionalParams +export interface WorkspaceApiSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TenantSettingsGetResponse = TenantSettingsGetHeaders & - TenantSettingsContract; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceApiSchemaGetEntityTagResponse = WorkspaceApiSchemaGetEntityTagHeaders; /** Optional parameters. */ -export interface TenantSettingsListByServiceNextOptionalParams +export interface WorkspaceApiSchemaGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type TenantSettingsListByServiceNextResponse = TenantSettingsCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiSchemaGetResponse = WorkspaceApiSchemaGetHeaders & + SchemaContract; /** Optional parameters. */ -export interface ApiManagementSkusListOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceApiSchemaCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the list operation. */ -export type ApiManagementSkusListResponse = ApiManagementSkusResult; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceApiSchemaCreateOrUpdateResponse = WorkspaceApiSchemaCreateOrUpdateHeaders & + SchemaContract; /** Optional parameters. */ -export interface ApiManagementSkusListNextOptionalParams +export interface WorkspaceApiSchemaDeleteOptionalParams + extends coreClient.OperationOptions { + /** If true removes all references to the schema before deleting it. */ + force?: boolean; +} + +/** Optional parameters. */ +export interface WorkspaceApiSchemaListByApiNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApiManagementSkusListNextResponse = ApiManagementSkusResult; +/** Contains response data for the listByApiNext operation. */ +export type WorkspaceApiSchemaListByApiNextResponse = SchemaCollection; /** Optional parameters. */ -export interface SubscriptionListOptionalParams +export interface WorkspaceProductListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| user | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| groups | expand | | |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; + /** Products which are part of a specific tag. */ + tags?: string; + /** When set to true, the response contains an array of groups that have visibility to the product. The default is false. */ + expandGroups?: boolean; } -/** Contains response data for the list operation. */ -export type SubscriptionListResponse = SubscriptionCollection; +/** Contains response data for the listByService operation. */ +export type WorkspaceProductListByServiceResponse = ProductCollection; /** Optional parameters. */ -export interface SubscriptionGetEntityTagOptionalParams +export interface WorkspaceProductGetEntityTagOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getEntityTag operation. */ -export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders; +export type WorkspaceProductGetEntityTagResponse = WorkspaceProductGetEntityTagHeaders; /** Optional parameters. */ -export interface SubscriptionGetOptionalParams +export interface WorkspaceProductGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SubscriptionGetResponse = SubscriptionGetHeaders & - SubscriptionContract; +export type WorkspaceProductGetResponse = WorkspaceProductGetHeaders & + ProductContract; /** Optional parameters. */ -export interface SubscriptionCreateOrUpdateOptionalParams +export interface WorkspaceProductCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** - * Notify change in Subscription State. - * - If false, do not send any email notification for change of state of subscription - * - If true, send email notification of change of state of subscription - */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; -} - -/** Contains response data for the createOrUpdate operation. */ -export type SubscriptionCreateOrUpdateResponse = SubscriptionCreateOrUpdateHeaders & - SubscriptionContract; - -/** Optional parameters. */ -export interface SubscriptionUpdateOptionalParams - extends coreClient.OperationOptions { - /** - * Notify change in Subscription State. - * - If false, do not send any email notification for change of state of subscription - * - If true, send email notification of change of state of subscription - */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; } -/** Contains response data for the update operation. */ -export type SubscriptionUpdateResponse = SubscriptionUpdateHeaders & - SubscriptionContract; - -/** Optional parameters. */ -export interface SubscriptionDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductCreateOrUpdateResponse = WorkspaceProductCreateOrUpdateHeaders & + ProductContract; /** Optional parameters. */ -export interface SubscriptionRegeneratePrimaryKeyOptionalParams +export interface WorkspaceProductUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SubscriptionRegenerateSecondaryKeyOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type WorkspaceProductUpdateResponse = WorkspaceProductUpdateHeaders & + ProductContract; /** Optional parameters. */ -export interface SubscriptionListSecretsOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listSecrets operation. */ -export type SubscriptionListSecretsResponse = SubscriptionListSecretsHeaders & - SubscriptionKeysContract; +export interface WorkspaceProductDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delete existing subscriptions associated with the product or not. */ + deleteSubscriptions?: boolean; +} /** Optional parameters. */ -export interface SubscriptionListNextOptionalParams +export interface WorkspaceProductListByServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SubscriptionListNextResponse = SubscriptionCollection; +/** Contains response data for the listByServiceNext operation. */ +export type WorkspaceProductListByServiceNextResponse = ProductCollection; /** Optional parameters. */ -export interface TagResourceListByServiceOptionalParams +export interface WorkspaceProductApiLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| aid | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| path | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| method | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| isCurrent | filter | eq | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11091,214 +13582,179 @@ export interface TagResourceListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type TagResourceListByServiceResponse = TagResourceCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductApiLinkListByProductResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface TagResourceListByServiceNextOptionalParams +export interface WorkspaceProductApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type TagResourceListByServiceNextResponse = TagResourceCollection; +/** Contains response data for the get operation. */ +export type WorkspaceProductApiLinkGetResponse = WorkspaceProductApiLinkGetHeaders & + ProductApiLinkContract; /** Optional parameters. */ -export interface TenantAccessListByServiceOptionalParams - extends coreClient.OperationOptions { - /** Not used */ - filter?: string; -} +export interface WorkspaceProductApiLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByService operation. */ -export type TenantAccessListByServiceResponse = AccessInformationCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductApiLinkCreateOrUpdateResponse = ProductApiLinkContract; /** Optional parameters. */ -export interface TenantAccessGetEntityTagOptionalParams +export interface WorkspaceProductApiLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders; - /** Optional parameters. */ -export interface TenantAccessGetOptionalParams +export interface WorkspaceProductApiLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TenantAccessGetResponse = TenantAccessGetHeaders & - AccessInformationContract; +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceProductApiLinkListByProductNextResponse = ProductApiLinkCollection; /** Optional parameters. */ -export interface TenantAccessCreateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceProductGroupLinkListByProductOptionalParams + extends coreClient.OperationOptions { + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| groupId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + filter?: string; + /** Number of records to return. */ + top?: number; + /** Number of records to skip. */ + skip?: number; +} -/** Contains response data for the create operation. */ -export type TenantAccessCreateResponse = TenantAccessCreateHeaders & - AccessInformationContract; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductGroupLinkListByProductResponse = ProductGroupLinkCollection; /** Optional parameters. */ -export interface TenantAccessUpdateOptionalParams +export interface WorkspaceProductGroupLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type TenantAccessUpdateResponse = TenantAccessUpdateHeaders & - AccessInformationContract; +/** Contains response data for the get operation. */ +export type WorkspaceProductGroupLinkGetResponse = WorkspaceProductGroupLinkGetHeaders & + ProductGroupLinkContract; /** Optional parameters. */ -export interface TenantAccessRegeneratePrimaryKeyOptionalParams +export interface WorkspaceProductGroupLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface TenantAccessRegenerateSecondaryKeyOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductGroupLinkCreateOrUpdateResponse = ProductGroupLinkContract; /** Optional parameters. */ -export interface TenantAccessListSecretsOptionalParams +export interface WorkspaceProductGroupLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type TenantAccessListSecretsResponse = TenantAccessListSecretsHeaders & - AccessInformationSecretsContract; - /** Optional parameters. */ -export interface TenantAccessListByServiceNextOptionalParams +export interface WorkspaceProductGroupLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type TenantAccessListByServiceNextResponse = AccessInformationCollection; +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceProductGroupLinkListByProductNextResponse = ProductGroupLinkCollection; /** Optional parameters. */ -export interface TenantAccessGitRegeneratePrimaryKeyOptionalParams +export interface WorkspaceProductPolicyListByProductOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface TenantAccessGitRegenerateSecondaryKeyOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByProduct operation. */ +export type WorkspaceProductPolicyListByProductResponse = PolicyCollection; /** Optional parameters. */ -export interface TenantConfigurationDeployOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface WorkspaceProductPolicyGetEntityTagOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the deploy operation. */ -export type TenantConfigurationDeployResponse = OperationResultContract; +/** Contains response data for the getEntityTag operation. */ +export type WorkspaceProductPolicyGetEntityTagResponse = WorkspaceProductPolicyGetEntityTagHeaders; /** Optional parameters. */ -export interface TenantConfigurationSaveOptionalParams +export interface WorkspaceProductPolicyGetOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Policy Export Format. */ + format?: PolicyExportFormat; } -/** Contains response data for the save operation. */ -export type TenantConfigurationSaveResponse = OperationResultContract; +/** Contains response data for the get operation. */ +export type WorkspaceProductPolicyGetResponse = WorkspaceProductPolicyGetHeaders & + PolicyContract; /** Optional parameters. */ -export interface TenantConfigurationValidateOptionalParams +export interface WorkspaceProductPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ + ifMatch?: string; } -/** Contains response data for the validate operation. */ -export type TenantConfigurationValidateResponse = OperationResultContract; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceProductPolicyCreateOrUpdateResponse = WorkspaceProductPolicyCreateOrUpdateHeaders & + PolicyContract; /** Optional parameters. */ -export interface TenantConfigurationGetSyncStateOptionalParams +export interface WorkspaceProductPolicyDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSyncState operation. */ -export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract; - /** Optional parameters. */ -export interface UserListByServiceOptionalParams +export interface WorkspaceTagListByServiceOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| lastName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
| registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| groups | expand | | |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; /** Number of records to skip. */ skip?: number; - /** Detailed Group in response. */ - expandGroups?: boolean; + /** Scope like 'apis', 'products' or 'apis/{apiId} */ + scope?: string; } /** Contains response data for the listByService operation. */ -export type UserListByServiceResponse = UserCollection; +export type WorkspaceTagListByServiceResponse = TagCollection; /** Optional parameters. */ -export interface UserGetEntityTagOptionalParams +export interface WorkspaceTagGetEntityStateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getEntityTag operation. */ -export type UserGetEntityTagResponse = UserGetEntityTagHeaders; +/** Contains response data for the getEntityState operation. */ +export type WorkspaceTagGetEntityStateResponse = WorkspaceTagGetEntityStateHeaders; /** Optional parameters. */ -export interface UserGetOptionalParams extends coreClient.OperationOptions {} +export interface WorkspaceTagGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type UserGetResponse = UserGetHeaders & UserContract; +export type WorkspaceTagGetResponse = WorkspaceTagGetHeaders & TagContract; /** Optional parameters. */ -export interface UserCreateOrUpdateOptionalParams +export interface WorkspaceTagCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ ifMatch?: string; - /** Send an Email notification to the User. */ - notify?: boolean; } /** Contains response data for the createOrUpdate operation. */ -export type UserCreateOrUpdateResponse = UserCreateOrUpdateHeaders & - UserContract; - -/** Optional parameters. */ -export interface UserUpdateOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type UserUpdateResponse = UserUpdateHeaders & UserContract; - -/** Optional parameters. */ -export interface UserDeleteOptionalParams extends coreClient.OperationOptions { - /** Whether to delete user's subscription or not. */ - deleteSubscriptions?: boolean; - /** Send an Account Closed Email notification to the User. */ - notify?: boolean; - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; -} +export type WorkspaceTagCreateOrUpdateResponse = WorkspaceTagCreateOrUpdateHeaders & + TagContract; /** Optional parameters. */ -export interface UserGenerateSsoUrlOptionalParams +export interface WorkspaceTagUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the generateSsoUrl operation. */ -export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult; +/** Contains response data for the update operation. */ +export type WorkspaceTagUpdateResponse = WorkspaceTagUpdateHeaders & + TagContract; /** Optional parameters. */ -export interface UserGetSharedAccessTokenOptionalParams +export interface WorkspaceTagDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSharedAccessToken operation. */ -export type UserGetSharedAccessTokenResponse = UserTokenResult; - /** Optional parameters. */ -export interface UserListByServiceNextOptionalParams +export interface WorkspaceTagListByServiceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByServiceNext operation. */ -export type UserListByServiceNextResponse = UserCollection; +export type WorkspaceTagListByServiceNextResponse = TagCollection; /** Optional parameters. */ -export interface UserGroupListOptionalParams +export interface WorkspaceTagApiLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11306,20 +13762,39 @@ export interface UserGroupListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type UserGroupListResponse = GroupCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagApiLinkListByProductResponse = TagApiLinkCollection; /** Optional parameters. */ -export interface UserGroupListNextOptionalParams +export interface WorkspaceTagApiLinkGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserGroupListNextResponse = GroupCollection; +/** Contains response data for the get operation. */ +export type WorkspaceTagApiLinkGetResponse = WorkspaceTagApiLinkGetHeaders & + TagApiLinkContract; /** Optional parameters. */ -export interface UserSubscriptionListOptionalParams +export interface WorkspaceTagApiLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagApiLinkCreateOrUpdateResponse = TagApiLinkContract; + +/** Optional parameters. */ +export interface WorkspaceTagApiLinkDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceTagApiLinkListByProductNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagApiLinkListByProductNextResponse = TagApiLinkCollection; + +/** Optional parameters. */ +export interface WorkspaceTagOperationLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|------------------------|-----------------------------------|
|name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|stateComment | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|scope | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
|productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| operationId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11327,49 +13802,39 @@ export interface UserSubscriptionListOptionalParams skip?: number; } -/** Contains response data for the list operation. */ -export type UserSubscriptionListResponse = SubscriptionCollection; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagOperationLinkListByProductResponse = TagOperationLinkCollection; /** Optional parameters. */ -export interface UserSubscriptionGetOptionalParams +export interface WorkspaceTagOperationLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type UserSubscriptionGetResponse = UserSubscriptionGetHeaders & - SubscriptionContract; +export type WorkspaceTagOperationLinkGetResponse = WorkspaceTagOperationLinkGetHeaders & + TagOperationLinkContract; /** Optional parameters. */ -export interface UserSubscriptionListNextOptionalParams +export interface WorkspaceTagOperationLinkCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserSubscriptionListNextResponse = SubscriptionCollection; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceTagOperationLinkCreateOrUpdateResponse = TagOperationLinkContract; /** Optional parameters. */ -export interface UserIdentitiesListOptionalParams +export interface WorkspaceTagOperationLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type UserIdentitiesListResponse = UserIdentityCollection; - /** Optional parameters. */ -export interface UserIdentitiesListNextOptionalParams +export interface WorkspaceTagOperationLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type UserIdentitiesListNextResponse = UserIdentityCollection; - -/** Optional parameters. */ -export interface UserConfirmationPasswordSendOptionalParams - extends coreClient.OperationOptions { - /** Determines the type of application which send the create user request. Default is legacy publisher portal. */ - appType?: AppType; -} +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagOperationLinkListByProductNextResponse = TagOperationLinkCollection; /** Optional parameters. */ -export interface DocumentationListByServiceOptionalParams +export interface WorkspaceTagProductLinkListByProductOptionalParams extends coreClient.OperationOptions { - /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | eq | contains |
*/ + /** | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** Number of records to return. */ top?: number; @@ -11377,53 +13842,41 @@ export interface DocumentationListByServiceOptionalParams skip?: number; } -/** Contains response data for the listByService operation. */ -export type DocumentationListByServiceResponse = DocumentationCollection; - -/** Optional parameters. */ -export interface DocumentationGetEntityTagOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getEntityTag operation. */ -export type DocumentationGetEntityTagResponse = DocumentationGetEntityTagHeaders; +/** Contains response data for the listByProduct operation. */ +export type WorkspaceTagProductLinkListByProductResponse = TagProductLinkCollection; /** Optional parameters. */ -export interface DocumentationGetOptionalParams +export interface WorkspaceTagProductLinkGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DocumentationGetResponse = DocumentationGetHeaders & - DocumentationContract; +export type WorkspaceTagProductLinkGetResponse = WorkspaceTagProductLinkGetHeaders & + TagProductLinkContract; /** Optional parameters. */ -export interface DocumentationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ - ifMatch?: string; -} +export interface WorkspaceTagProductLinkCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DocumentationCreateOrUpdateResponse = DocumentationCreateOrUpdateHeaders & - DocumentationContract; +export type WorkspaceTagProductLinkCreateOrUpdateResponse = TagProductLinkContract; /** Optional parameters. */ -export interface DocumentationUpdateOptionalParams +export interface WorkspaceTagProductLinkDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DocumentationUpdateResponse = DocumentationUpdateHeaders & - DocumentationContract; - /** Optional parameters. */ -export interface DocumentationDeleteOptionalParams +export interface WorkspaceTagProductLinkListByProductNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByProductNext operation. */ +export type WorkspaceTagProductLinkListByProductNextResponse = TagProductLinkCollection; + /** Optional parameters. */ -export interface DocumentationListByServiceNextOptionalParams +export interface WorkspaceApiExportGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByServiceNext operation. */ -export type DocumentationListByServiceNextResponse = DocumentationCollection; +/** Contains response data for the get operation. */ +export type WorkspaceApiExportGetResponse = ApiExportResult; /** Optional parameters. */ export interface ApiManagementClientOptionalParams diff --git a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts index 8234e98b768a..51fce9744150 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts @@ -2889,216 +2889,6 @@ export const ApiVersionSetUpdateParameters: coreClient.CompositeMapper = { } }; -export const AuthorizationServerCollection: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerCollection", - type: { - name: "Composite", - className: "AuthorizationServerCollection", - modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "AuthorizationServerContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AuthorizationServerContract" - } - } - } - }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } - }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerContractBaseProperties: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerContractBaseProperties", - type: { - name: "Composite", - className: "AuthorizationServerContractBaseProperties", - modelProperties: { - description: { - serializedName: "description", - xmlName: "description", - type: { - name: "String" - } - }, - authorizationMethods: { - serializedName: "authorizationMethods", - xmlName: "authorizationMethods", - xmlElementName: "AuthorizationMethod", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } - } - }, - clientAuthenticationMethod: { - serializedName: "clientAuthenticationMethod", - xmlName: "clientAuthenticationMethod", - xmlElementName: "ClientAuthenticationMethod", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - tokenBodyParameters: { - serializedName: "tokenBodyParameters", - xmlName: "tokenBodyParameters", - xmlElementName: "TokenBodyParameterContract", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } - } - }, - tokenEndpoint: { - serializedName: "tokenEndpoint", - xmlName: "tokenEndpoint", - type: { - name: "String" - } - }, - supportState: { - serializedName: "supportState", - xmlName: "supportState", - type: { - name: "Boolean" - } - }, - defaultScope: { - serializedName: "defaultScope", - xmlName: "defaultScope", - type: { - name: "String" - } - }, - bearerTokenSendingMethods: { - serializedName: "bearerTokenSendingMethods", - xmlName: "bearerTokenSendingMethods", - xmlElementName: "BearerTokenSendingMethod", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - resourceOwnerUsername: { - serializedName: "resourceOwnerUsername", - xmlName: "resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "resourceOwnerPassword", - xmlName: "resourceOwnerPassword", - type: { - name: "String" - } - } - } - } -}; - -export const TokenBodyParameterContract: coreClient.CompositeMapper = { - serializedName: "TokenBodyParameterContract", - type: { - name: "Composite", - className: "TokenBodyParameterContract", - modelProperties: { - name: { - serializedName: "name", - required: true, - xmlName: "name", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - required: true, - xmlName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationServerSecretsContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationServerSecretsContract", - type: { - name: "Composite", - className: "AuthorizationServerSecretsContract", - modelProperties: { - clientSecret: { - serializedName: "clientSecret", - xmlName: "clientSecret", - type: { - name: "String" - } - }, - resourceOwnerUsername: { - serializedName: "resourceOwnerUsername", - xmlName: "resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "resourceOwnerPassword", - xmlName: "resourceOwnerPassword", - type: { - name: "String" - } - } - } - } -}; - export const AuthorizationProviderCollection: coreClient.CompositeMapper = { serializedName: "AuthorizationProviderCollection", type: { @@ -3332,22 +3122,22 @@ export const AuthorizationAccessPolicyCollection: coreClient.CompositeMapper = { } }; -export const BackendCollection: coreClient.CompositeMapper = { - serializedName: "BackendCollection", +export const AuthorizationServerCollection: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerCollection", type: { name: "Composite", - className: "BackendCollection", + className: "AuthorizationServerCollection", modelProperties: { value: { serializedName: "value", xmlName: "value", - xmlElementName: "BackendContract", + xmlElementName: "AuthorizationServerContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "BackendContract" + className: "AuthorizationServerContract" } } } @@ -3370,46 +3160,256 @@ export const BackendCollection: coreClient.CompositeMapper = { } }; -export const BackendBaseParameters: coreClient.CompositeMapper = { - serializedName: "BackendBaseParameters", +export const AuthorizationServerContractBaseProperties: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerContractBaseProperties", type: { name: "Composite", - className: "BackendBaseParameters", + className: "AuthorizationServerContractBaseProperties", modelProperties: { - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "title", - xmlName: "title", - type: { - name: "String" - } - }, description: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, serializedName: "description", xmlName: "description", type: { name: "String" } }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "resourceId", - xmlName: "resourceId", + authorizationMethods: { + serializedName: "authorizationMethods", + xmlName: "authorizationMethods", + xmlElementName: "AuthorizationMethod", type: { - name: "String" - } - }, - properties: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } + } + }, + clientAuthenticationMethod: { + serializedName: "clientAuthenticationMethod", + xmlName: "clientAuthenticationMethod", + xmlElementName: "ClientAuthenticationMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + tokenBodyParameters: { + serializedName: "tokenBodyParameters", + xmlName: "tokenBodyParameters", + xmlElementName: "TokenBodyParameterContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract" + } + } + } + }, + tokenEndpoint: { + serializedName: "tokenEndpoint", + xmlName: "tokenEndpoint", + type: { + name: "String" + } + }, + supportState: { + serializedName: "supportState", + xmlName: "supportState", + type: { + name: "Boolean" + } + }, + defaultScope: { + serializedName: "defaultScope", + xmlName: "defaultScope", + type: { + name: "String" + } + }, + bearerTokenSendingMethods: { + serializedName: "bearerTokenSendingMethods", + xmlName: "bearerTokenSendingMethods", + xmlElementName: "BearerTokenSendingMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + resourceOwnerUsername: { + serializedName: "resourceOwnerUsername", + xmlName: "resourceOwnerUsername", + type: { + name: "String" + } + }, + resourceOwnerPassword: { + serializedName: "resourceOwnerPassword", + xmlName: "resourceOwnerPassword", + type: { + name: "String" + } + } + } + } +}; + +export const TokenBodyParameterContract: coreClient.CompositeMapper = { + serializedName: "TokenBodyParameterContract", + type: { + name: "Composite", + className: "TokenBodyParameterContract", + modelProperties: { + name: { + serializedName: "name", + required: true, + xmlName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + required: true, + xmlName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerSecretsContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationServerSecretsContract", + type: { + name: "Composite", + className: "AuthorizationServerSecretsContract", + modelProperties: { + clientSecret: { + serializedName: "clientSecret", + xmlName: "clientSecret", + type: { + name: "String" + } + }, + resourceOwnerUsername: { + serializedName: "resourceOwnerUsername", + xmlName: "resourceOwnerUsername", + type: { + name: "String" + } + }, + resourceOwnerPassword: { + serializedName: "resourceOwnerPassword", + xmlName: "resourceOwnerPassword", + type: { + name: "String" + } + } + } + } +}; + +export const BackendCollection: coreClient.CompositeMapper = { + serializedName: "BackendCollection", + type: { + name: "Composite", + className: "BackendCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "BackendContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const BackendBaseParameters: coreClient.CompositeMapper = { + serializedName: "BackendBaseParameters", + type: { + name: "Composite", + className: "BackendBaseParameters", + modelProperties: { + title: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "title", + xmlName: "title", + type: { + name: "String" + } + }, + description: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "description", + xmlName: "description", + type: { + name: "String" + } + }, + resourceId: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "resourceId", + xmlName: "resourceId", + type: { + name: "String" + } + }, + properties: { serializedName: "properties", xmlName: "properties", type: { @@ -3440,6 +3440,14 @@ export const BackendBaseParameters: coreClient.CompositeMapper = { name: "Composite", className: "BackendTlsProperties" } + }, + circuitBreaker: { + serializedName: "circuitBreaker", + xmlName: "circuitBreaker", + type: { + name: "Composite", + className: "BackendCircuitBreaker" + } } } } @@ -3727,27 +3735,185 @@ export const BackendTlsProperties: coreClient.CompositeMapper = { } }; -export const BackendUpdateParameters: coreClient.CompositeMapper = { - serializedName: "BackendUpdateParameters", +export const BackendCircuitBreaker: coreClient.CompositeMapper = { + serializedName: "BackendCircuitBreaker", type: { name: "Composite", - className: "BackendUpdateParameters", + className: "BackendCircuitBreaker", modelProperties: { - title: { + rules: { constraints: { - MaxLength: 300, - MinLength: 1 + MaxItems: 15 }, - serializedName: "properties.title", - xmlName: "properties.title", + serializedName: "rules", + xmlName: "rules", + xmlElementName: "CircuitBreakerRule", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CircuitBreakerRule" + } + } } - }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 + } + } + } +}; + +export const CircuitBreakerRule: coreClient.CompositeMapper = { + serializedName: "CircuitBreakerRule", + type: { + name: "Composite", + className: "CircuitBreakerRule", + modelProperties: { + name: { + serializedName: "name", + xmlName: "name", + type: { + name: "String" + } + }, + failureCondition: { + serializedName: "failureCondition", + xmlName: "failureCondition", + type: { + name: "Composite", + className: "CircuitBreakerFailureCondition" + } + }, + tripDuration: { + serializedName: "tripDuration", + xmlName: "tripDuration", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const CircuitBreakerFailureCondition: coreClient.CompositeMapper = { + serializedName: "CircuitBreakerFailureCondition", + type: { + name: "Composite", + className: "CircuitBreakerFailureCondition", + modelProperties: { + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + percentage: { + serializedName: "percentage", + xmlName: "percentage", + type: { + name: "Number" + } + }, + interval: { + serializedName: "interval", + xmlName: "interval", + type: { + name: "TimeSpan" + } + }, + statusCodeRanges: { + constraints: { + MaxItems: 10 + }, + serializedName: "statusCodeRanges", + xmlName: "statusCodeRanges", + xmlElementName: "FailureStatusCodeRange", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FailureStatusCodeRange" + } + } + } + }, + errorReasons: { + constraints: { + MaxItems: 10 + }, + serializedName: "errorReasons", + xmlName: "errorReasons", + xmlElementName: "CircuitBreakerFailureConditionErrorReasonsItem", + type: { + name: "Sequence", + element: { + constraints: { + MaxLength: 200 + }, + type: { + name: "String" + } + } + } + } + } + } +}; + +export const FailureStatusCodeRange: coreClient.CompositeMapper = { + serializedName: "FailureStatusCodeRange", + type: { + name: "Composite", + className: "FailureStatusCodeRange", + modelProperties: { + min: { + constraints: { + InclusiveMaximum: 599, + InclusiveMinimum: 200 + }, + serializedName: "min", + xmlName: "min", + type: { + name: "Number" + } + }, + max: { + constraints: { + InclusiveMaximum: 599, + InclusiveMinimum: 200 + }, + serializedName: "max", + xmlName: "max", + type: { + name: "Number" + } + } + } + } +}; + +export const BackendUpdateParameters: coreClient.CompositeMapper = { + serializedName: "BackendUpdateParameters", + type: { + name: "Composite", + className: "BackendUpdateParameters", + modelProperties: { + title: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + description: { + constraints: { + MaxLength: 2000, + MinLength: 1 }, serializedName: "properties.description", xmlName: "properties.description", @@ -3798,6 +3964,14 @@ export const BackendUpdateParameters: coreClient.CompositeMapper = { className: "BackendTlsProperties" } }, + circuitBreaker: { + serializedName: "properties.circuitBreaker", + xmlName: "properties.circuitBreaker", + type: { + name: "Composite", + className: "BackendCircuitBreaker" + } + }, url: { constraints: { MaxLength: 2000, @@ -4950,6 +5124,14 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { name: "String" } }, + configurationApi: { + serializedName: "configurationApi", + xmlName: "configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi" + } + }, virtualNetworkConfiguration: { serializedName: "virtualNetworkConfiguration", xmlName: "virtualNetworkConfiguration", @@ -5077,6 +5259,22 @@ export const ApiManagementServiceBaseProperties: coreClient.CompositeMapper = { type: { name: "String" } + }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "legacyPortalStatus", + xmlName: "legacyPortalStatus", + type: { + name: "String" + } + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "developerPortalStatus", + xmlName: "developerPortalStatus", + type: { + name: "String" + } } } } @@ -5208,6 +5406,24 @@ export const CertificateInformation: coreClient.CompositeMapper = { } }; +export const ConfigurationApi: coreClient.CompositeMapper = { + serializedName: "ConfigurationApi", + type: { + name: "Composite", + className: "ConfigurationApi", + modelProperties: { + legacyApi: { + defaultValue: "Enabled", + serializedName: "legacyApi", + xmlName: "legacyApi", + type: { + name: "String" + } + } + } + } +}; + export const VirtualNetworkConfiguration: coreClient.CompositeMapper = { serializedName: "VirtualNetworkConfiguration", type: { @@ -5737,6 +5953,23 @@ export const ApimResource: coreClient.CompositeMapper = { } }; +export const MigrateToStv2Contract: coreClient.CompositeMapper = { + serializedName: "MigrateToStv2Contract", + type: { + name: "Composite", + className: "MigrateToStv2Contract", + modelProperties: { + mode: { + serializedName: "mode", + xmlName: "mode", + type: { + name: "String" + } + } + } + } +}; + export const ApiManagementServiceListResult: coreClient.CompositeMapper = { serializedName: "ApiManagementServiceListResult", type: { @@ -5873,6 +6106,63 @@ export const ApiManagementServiceApplyNetworkConfigurationParameters: coreClient } }; +export const DocumentationCollection: coreClient.CompositeMapper = { + serializedName: "DocumentationCollection", + type: { + name: "Composite", + className: "DocumentationCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + xmlName: "value", + xmlElementName: "DocumentationContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DocumentationContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DocumentationUpdateContract: coreClient.CompositeMapper = { + serializedName: "DocumentationUpdateContract", + type: { + name: "Composite", + className: "DocumentationUpdateContract", + modelProperties: { + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", + type: { + name: "String" + } + } + } + } +}; + export const EmailTemplateCollection: coreClient.CompositeMapper = { serializedName: "EmailTemplateCollection", type: { @@ -6259,36 +6549,37 @@ export const GatewayCertificateAuthorityCollection: coreClient.CompositeMapper = } }; -export const GroupCollection: coreClient.CompositeMapper = { - serializedName: "GroupCollection", +export const GatewayListDebugCredentialsContract: coreClient.CompositeMapper = { + serializedName: "GatewayListDebugCredentialsContract", type: { name: "Composite", - className: "GroupCollection", + className: "GatewayListDebugCredentialsContract", modelProperties: { - value: { - serializedName: "value", - xmlName: "value", - xmlElementName: "GroupContract", + credentialsExpireAfter: { + serializedName: "credentialsExpireAfter", + xmlName: "credentialsExpireAfter", + type: { + name: "TimeSpan" + } + }, + purposes: { + serializedName: "purposes", + required: true, + xmlName: "purposes", + xmlElementName: "GatewayListDebugCredentialsContractPurpose", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "GroupContract" + name: "String" } } } }, - count: { - serializedName: "count", - xmlName: "count", - type: { - name: "Number" - } - }, - nextLink: { - serializedName: "nextLink", - xmlName: "nextLink", + apiId: { + serializedName: "apiId", + required: true, + xmlName: "apiId", type: { name: "String" } @@ -6297,24 +6588,96 @@ export const GroupCollection: coreClient.CompositeMapper = { } }; -export const GroupContractProperties: coreClient.CompositeMapper = { - serializedName: "GroupContractProperties", +export const GatewayDebugCredentialsContract: coreClient.CompositeMapper = { + serializedName: "GatewayDebugCredentialsContract", type: { name: "Composite", - className: "GroupContractProperties", + className: "GatewayDebugCredentialsContract", modelProperties: { - displayName: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "displayName", - required: true, - xmlName: "displayName", + token: { + serializedName: "token", + xmlName: "token", type: { name: "String" } - }, + } + } + } +}; + +export const GatewayListTraceContract: coreClient.CompositeMapper = { + serializedName: "GatewayListTraceContract", + type: { + name: "Composite", + className: "GatewayListTraceContract", + modelProperties: { + traceId: { + serializedName: "traceId", + xmlName: "traceId", + type: { + name: "String" + } + } + } + } +}; + +export const GroupCollection: coreClient.CompositeMapper = { + serializedName: "GroupCollection", + type: { + name: "Composite", + className: "GroupCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "GroupContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const GroupContractProperties: coreClient.CompositeMapper = { + serializedName: "GroupContractProperties", + type: { + name: "Composite", + className: "GroupContractProperties", + modelProperties: { + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "displayName", + required: true, + xmlName: "displayName", + type: { + name: "String" + } + }, description: { constraints: { MaxLength: 1000 @@ -8208,6 +8571,82 @@ export const SubscriptionCollection: coreClient.CompositeMapper = { } }; +export const ProductApiLinkCollection: coreClient.CompositeMapper = { + serializedName: "ProductApiLinkCollection", + type: { + name: "Composite", + className: "ProductApiLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ProductApiLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProductApiLinkContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ProductGroupLinkCollection: coreClient.CompositeMapper = { + serializedName: "ProductGroupLinkCollection", + type: { + name: "Composite", + className: "ProductGroupLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "ProductGroupLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProductGroupLinkContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const QuotaCounterCollection: coreClient.CompositeMapper = { serializedName: "QuotaCounterCollection", type: { @@ -9579,6 +10018,120 @@ export const TagCreateUpdateParameters: coreClient.CompositeMapper = { } }; +export const TagApiLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagApiLinkCollection", + type: { + name: "Composite", + className: "TagApiLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagApiLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagApiLinkContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TagOperationLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagOperationLinkCollection", + type: { + name: "Composite", + className: "TagOperationLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagOperationLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagOperationLinkContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TagProductLinkCollection: coreClient.CompositeMapper = { + serializedName: "TagProductLinkCollection", + type: { + name: "Composite", + className: "TagProductLinkCollection", + modelProperties: { + value: { + serializedName: "value", + xmlName: "value", + xmlElementName: "TagProductLinkContract", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagProductLinkContract" + } + } + } + }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + xmlName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const AccessInformationCollection: coreClient.CompositeMapper = { serializedName: "AccessInformationCollection", type: { @@ -10067,30 +10620,35 @@ export const UserTokenResult: coreClient.CompositeMapper = { } }; -export const DocumentationCollection: coreClient.CompositeMapper = { - serializedName: "DocumentationCollection", +export const WorkspaceCollection: coreClient.CompositeMapper = { + serializedName: "WorkspaceCollection", type: { name: "Composite", - className: "DocumentationCollection", + className: "WorkspaceCollection", modelProperties: { value: { serializedName: "value", - readOnly: true, xmlName: "value", - xmlElementName: "DocumentationContract", + xmlElementName: "WorkspaceContract", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DocumentationContract" + className: "WorkspaceContract" } } } }, + count: { + serializedName: "count", + xmlName: "count", + type: { + name: "Number" + } + }, nextLink: { serializedName: "nextLink", - readOnly: true, xmlName: "nextLink", type: { name: "String" @@ -10100,32 +10658,8 @@ export const DocumentationCollection: coreClient.CompositeMapper = { } }; -export const DocumentationUpdateContract: coreClient.CompositeMapper = { - serializedName: "DocumentationUpdateContract", - type: { - name: "Composite", - className: "DocumentationUpdateContract", - modelProperties: { - title: { - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } - }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", - type: { - name: "String" - } - } - } - } -}; - -export const ApiRevisionInfoContract: coreClient.CompositeMapper = { - serializedName: "ApiRevisionInfoContract", +export const ApiRevisionInfoContract: coreClient.CompositeMapper = { + serializedName: "ApiRevisionInfoContract", type: { name: "Composite", className: "ApiRevisionInfoContract", @@ -11322,6 +11856,14 @@ export const ApiManagementServiceResource: coreClient.CompositeMapper = { name: "String" } }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi" + } + }, virtualNetworkConfiguration: { serializedName: "properties.virtualNetworkConfiguration", xmlName: "properties.virtualNetworkConfiguration", @@ -11450,6 +11992,22 @@ export const ApiManagementServiceResource: coreClient.CompositeMapper = { name: "String" } }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.legacyPortalStatus", + xmlName: "properties.legacyPortalStatus", + type: { + name: "String" + } + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.developerPortalStatus", + xmlName: "properties.developerPortalStatus", + type: { + name: "String" + } + }, publisherEmail: { constraints: { MaxLength: 100 @@ -11660,6 +12218,14 @@ export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = name: "String" } }, + configurationApi: { + serializedName: "properties.configurationApi", + xmlName: "properties.configurationApi", + type: { + name: "Composite", + className: "ConfigurationApi" + } + }, virtualNetworkConfiguration: { serializedName: "properties.virtualNetworkConfiguration", xmlName: "properties.virtualNetworkConfiguration", @@ -11788,6 +12354,22 @@ export const ApiManagementServiceUpdateParameters: coreClient.CompositeMapper = name: "String" } }, + legacyPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.legacyPortalStatus", + xmlName: "properties.legacyPortalStatus", + type: { + name: "String" + } + }, + developerPortalStatus: { + defaultValue: "Enabled", + serializedName: "properties.developerPortalStatus", + xmlName: "properties.developerPortalStatus", + type: { + name: "String" + } + }, publisherEmail: { constraints: { MaxLength: 100 @@ -13118,6 +13700,116 @@ export const ApiVersionSetContract: coreClient.CompositeMapper = { } }; +export const AuthorizationProviderContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationProviderContract", + type: { + name: "Composite", + className: "AuthorizationProviderContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + constraints: { + MaxLength: 300, + MinLength: 1 + }, + serializedName: "properties.displayName", + xmlName: "properties.displayName", + type: { + name: "String" + } + }, + identityProvider: { + serializedName: "properties.identityProvider", + xmlName: "properties.identityProvider", + type: { + name: "String" + } + }, + oauth2: { + serializedName: "properties.oauth2", + xmlName: "properties.oauth2", + type: { + name: "Composite", + className: "AuthorizationProviderOAuth2Settings" + } + } + } + } +}; + +export const AuthorizationContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationContract", + type: { + name: "Composite", + className: "AuthorizationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + authorizationType: { + serializedName: "properties.authorizationType", + xmlName: "properties.authorizationType", + type: { + name: "String" + } + }, + oAuth2GrantType: { + serializedName: "properties.oauth2grantType", + xmlName: "properties.oauth2grantType", + type: { + name: "String" + } + }, + parameters: { + serializedName: "properties.parameters", + xmlName: "properties.parameters", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + error: { + serializedName: "properties.error", + xmlName: "properties.error", + type: { + name: "Composite", + className: "AuthorizationError" + } + }, + status: { + serializedName: "properties.status", + xmlName: "properties.status", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicyContract", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + tenantId: { + serializedName: "properties.tenantId", + xmlName: "properties.tenantId", + type: { + name: "String" + } + }, + objectId: { + serializedName: "properties.objectId", + xmlName: "properties.objectId", + type: { + name: "String" + } + } + } + } +}; + export const AuthorizationServerContract: coreClient.CompositeMapper = { serializedName: "AuthorizationServerContract", type: { @@ -13482,195 +14174,93 @@ export const AuthorizationServerUpdateContract: coreClient.CompositeMapper = { } }; -export const AuthorizationProviderContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationProviderContract", +export const BackendContract: coreClient.CompositeMapper = { + serializedName: "BackendContract", type: { name: "Composite", - className: "AuthorizationProviderContract", + className: "BackendContract", modelProperties: { ...ProxyResource.type.modelProperties, - displayName: { + title: { constraints: { MaxLength: 300, MinLength: 1 }, - serializedName: "properties.displayName", - xmlName: "properties.displayName", + serializedName: "properties.title", + xmlName: "properties.title", type: { name: "String" } }, - identityProvider: { - serializedName: "properties.identityProvider", - xmlName: "properties.identityProvider", + description: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } }, - oauth2: { - serializedName: "properties.oauth2", - xmlName: "properties.oauth2", + resourceId: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.resourceId", + xmlName: "properties.resourceId", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties.properties", + xmlName: "properties.properties", type: { name: "Composite", - className: "AuthorizationProviderOAuth2Settings" + className: "BackendProperties" } - } - } - } -}; - -export const AuthorizationContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationContract", - type: { - name: "Composite", - className: "AuthorizationContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - authorizationType: { - serializedName: "properties.authorizationType", - xmlName: "properties.authorizationType", + }, + credentials: { + serializedName: "properties.credentials", + xmlName: "properties.credentials", type: { - name: "String" + name: "Composite", + className: "BackendCredentialsContract" } }, - oAuth2GrantType: { - serializedName: "properties.oauth2grantType", - xmlName: "properties.oauth2grantType", + proxy: { + serializedName: "properties.proxy", + xmlName: "properties.proxy", type: { - name: "String" + name: "Composite", + className: "BackendProxyContract" } }, - parameters: { - serializedName: "properties.parameters", - xmlName: "properties.parameters", + tls: { + serializedName: "properties.tls", + xmlName: "properties.tls", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "BackendTlsProperties" } }, - error: { - serializedName: "properties.error", - xmlName: "properties.error", + circuitBreaker: { + serializedName: "properties.circuitBreaker", + xmlName: "properties.circuitBreaker", type: { name: "Composite", - className: "AuthorizationError" + className: "BackendCircuitBreaker" } }, - status: { - serializedName: "properties.status", - xmlName: "properties.status", - type: { - name: "String" - } - } - } - } -}; - -export const AuthorizationAccessPolicyContract: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicyContract", - type: { - name: "Composite", - className: "AuthorizationAccessPolicyContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - tenantId: { - serializedName: "properties.tenantId", - xmlName: "properties.tenantId", - type: { - name: "String" - } - }, - objectId: { - serializedName: "properties.objectId", - xmlName: "properties.objectId", - type: { - name: "String" - } - } - } - } -}; - -export const BackendContract: coreClient.CompositeMapper = { - serializedName: "BackendContract", - type: { - name: "Composite", - className: "BackendContract", - modelProperties: { - ...ProxyResource.type.modelProperties, - title: { - constraints: { - MaxLength: 300, - MinLength: 1 - }, - serializedName: "properties.title", - xmlName: "properties.title", - type: { - name: "String" - } - }, - description: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.description", - xmlName: "properties.description", - type: { - name: "String" - } - }, - resourceId: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.resourceId", - xmlName: "properties.resourceId", - type: { - name: "String" - } - }, - properties: { - serializedName: "properties.properties", - xmlName: "properties.properties", - type: { - name: "Composite", - className: "BackendProperties" - } - }, - credentials: { - serializedName: "properties.credentials", - xmlName: "properties.credentials", - type: { - name: "Composite", - className: "BackendCredentialsContract" - } - }, - proxy: { - serializedName: "properties.proxy", - xmlName: "properties.proxy", - type: { - name: "Composite", - className: "BackendProxyContract" - } - }, - tls: { - serializedName: "properties.tls", - xmlName: "properties.tls", - type: { - name: "Composite", - className: "BackendTlsProperties" - } - }, - url: { - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - serializedName: "properties.url", - xmlName: "properties.url", + url: { + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + serializedName: "properties.url", + xmlName: "properties.url", type: { name: "String" } @@ -13901,6 +14491,31 @@ export const DeletedServiceContract: coreClient.CompositeMapper = { } }; +export const DocumentationContract: coreClient.CompositeMapper = { + serializedName: "DocumentationContract", + type: { + name: "Composite", + className: "DocumentationContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + title: { + serializedName: "properties.title", + xmlName: "properties.title", + type: { + name: "String" + } + }, + content: { + serializedName: "properties.content", + xmlName: "properties.content", + type: { + name: "String" + } + } + } + } +}; + export const EmailTemplateContract: coreClient.CompositeMapper = { serializedName: "EmailTemplateContract", type: { @@ -15234,6 +15849,42 @@ export const SubscriptionContract: coreClient.CompositeMapper = { } }; +export const ProductApiLinkContract: coreClient.CompositeMapper = { + serializedName: "ProductApiLinkContract", + type: { + name: "Composite", + className: "ProductApiLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", + type: { + name: "String" + } + } + } + } +}; + +export const ProductGroupLinkContract: coreClient.CompositeMapper = { + serializedName: "ProductGroupLinkContract", + type: { + name: "Composite", + className: "ProductGroupLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + groupId: { + serializedName: "properties.groupId", + xmlName: "properties.groupId", + type: { + name: "String" + } + } + } + } +}; + export const GlobalSchemaContract: coreClient.CompositeMapper = { serializedName: "GlobalSchemaContract", type: { @@ -15293,6 +15944,60 @@ export const TenantSettingsContract: coreClient.CompositeMapper = { } }; +export const TagApiLinkContract: coreClient.CompositeMapper = { + serializedName: "TagApiLinkContract", + type: { + name: "Composite", + className: "TagApiLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + xmlName: "properties.apiId", + type: { + name: "String" + } + } + } + } +}; + +export const TagOperationLinkContract: coreClient.CompositeMapper = { + serializedName: "TagOperationLinkContract", + type: { + name: "Composite", + className: "TagOperationLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + operationId: { + serializedName: "properties.operationId", + xmlName: "properties.operationId", + type: { + name: "String" + } + } + } + } +}; + +export const TagProductLinkContract: coreClient.CompositeMapper = { + serializedName: "TagProductLinkContract", + type: { + name: "Composite", + className: "TagProductLinkContract", + modelProperties: { + ...ProxyResource.type.modelProperties, + productId: { + serializedName: "properties.productId", + xmlName: "properties.productId", + type: { + name: "String" + } + } + } + } +}; + export const AccessInformationContract: coreClient.CompositeMapper = { serializedName: "AccessInformationContract", type: { @@ -15462,23 +16167,23 @@ export const TenantConfigurationSyncStateContract: coreClient.CompositeMapper = } }; -export const DocumentationContract: coreClient.CompositeMapper = { - serializedName: "DocumentationContract", +export const WorkspaceContract: coreClient.CompositeMapper = { + serializedName: "WorkspaceContract", type: { name: "Composite", - className: "DocumentationContract", + className: "WorkspaceContract", modelProperties: { ...ProxyResource.type.modelProperties, - title: { - serializedName: "properties.title", - xmlName: "properties.title", + displayName: { + serializedName: "properties.displayName", + xmlName: "properties.displayName", type: { name: "String" } }, - content: { - serializedName: "properties.content", - xmlName: "properties.content", + description: { + serializedName: "properties.description", + xmlName: "properties.description", type: { name: "String" } @@ -15612,7 +16317,1401 @@ export const ApiUpdateHeaders: coreClient.CompositeMapper = { serializedName: "Api_updateHeaders", type: { name: "Composite", - className: "ApiUpdateHeaders", + className: "ApiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiReleaseGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_getHeaders", + type: { + name: "Composite", + className: "ApiReleaseGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiReleaseCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiRelease_updateHeaders", + type: { + name: "Composite", + className: "ApiReleaseUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiOperationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_getHeaders", + type: { + name: "Composite", + className: "ApiOperationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiOperationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperation_updateHeaders", + type: { + name: "Composite", + className: "ApiOperationUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperationPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperationPolicy_getHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiOperationPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiOperationPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByOperationHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetByOperationHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByOperationHeaders", + type: { + name: "Composite", + className: "TagGetByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByApiHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetByApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByApiHeaders", + type: { + name: "Composite", + className: "TagGetByApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagAssignToApiHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_assignToApiHeaders", + type: { + name: "Composite", + className: "TagAssignToApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateByProductHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateByProductHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetByProductHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getByProductHeaders", + type: { + name: "Composite", + className: "TagGetByProductHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getEntityStateHeaders", + type: { + name: "Composite", + className: "TagGetEntityStateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_getHeaders", + type: { + name: "Composite", + className: "TagGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_createOrUpdateHeaders", + type: { + name: "Composite", + className: "TagCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Tag_updateHeaders", + type: { + name: "Composite", + className: "TagUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolver_updateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_getHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_getHeaders", + type: { + name: "Composite", + className: "ApiPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_getHeaders", + type: { + name: "Composite", + className: "ApiSchemaGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiSchema_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiDiagnosticGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_getHeaders", + type: { + name: "Composite", + className: "ApiDiagnosticGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiDiagnosticCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiDiagnostic_updateHeaders", + type: { + name: "Composite", + className: "ApiDiagnosticUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiIssueGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_getHeaders", + type: { + name: "Composite", + className: "ApiIssueGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiIssueCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssue_updateHeaders", + type: { + name: "Composite", + className: "ApiIssueUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiIssueCommentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_getHeaders", + type: { + name: "Composite", + className: "ApiIssueCommentGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueComment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiIssueCommentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueAttachment_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiIssueAttachmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueAttachment_getHeaders", + type: { + name: "Composite", + className: "ApiIssueAttachmentGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiIssueAttachment_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiIssueAttachmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiTagDescription_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiTagDescriptionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiTagDescription_getHeaders", + type: { + name: "Composite", + className: "ApiTagDescriptionGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiTagDescription_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiTagDescriptionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiWikiGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_getHeaders", + type: { + name: "Composite", + className: "ApiWikiGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiWikiCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiWiki_updateHeaders", + type: { + name: "Composite", + className: "ApiWikiUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_getEntityTagHeaders", + type: { + name: "Composite", + className: "ApiVersionSetGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_getHeaders", + type: { + name: "Composite", + className: "ApiVersionSetGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_createOrUpdateHeaders", + type: { + name: "Composite", + className: "ApiVersionSetCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiVersionSet_updateHeaders", + type: { + name: "Composite", + className: "ApiVersionSetUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationProvider_getHeaders", + type: { + name: "Composite", + className: "AuthorizationProviderGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationProvider_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_getHeaders", + type: { + name: "Composite", + className: "AuthorizationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper = { + serializedName: "Authorization_confirmConsentCodeHeaders", + type: { + name: "Composite", + className: "AuthorizationConfirmConsentCodeHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationLoginLinks_postHeaders", + type: { + name: "Composite", + className: "AuthorizationLoginLinksPostHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_getHeaders", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_getEntityTagHeaders", + type: { + name: "Composite", + className: "AuthorizationServerGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_getHeaders", + type: { + name: "Composite", + className: "AuthorizationServerGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_createOrUpdateHeaders", + type: { + name: "Composite", + className: "AuthorizationServerCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_updateHeaders", + type: { + name: "Composite", + className: "AuthorizationServerUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "AuthorizationServer_listSecretsHeaders", + type: { + name: "Composite", + className: "AuthorizationServerListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_getEntityTagHeaders", + type: { + name: "Composite", + className: "BackendGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendGetHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_getHeaders", + type: { + name: "Composite", + className: "BackendGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_createOrUpdateHeaders", + type: { + name: "Composite", + className: "BackendCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Backend_updateHeaders", + type: { + name: "Composite", + className: "BackendUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_getEntityTagHeaders", + type: { + name: "Composite", + className: "CacheGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheGetHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_getHeaders", + type: { + name: "Composite", + className: "CacheGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_createOrUpdateHeaders", + type: { + name: "Composite", + className: "CacheCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Cache_updateHeaders", + type: { + name: "Composite", + className: "CacheUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + xmlName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_getEntityTagHeaders", + type: { + name: "Composite", + className: "CertificateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15625,11 +17724,11 @@ export const ApiUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_getEntityTagHeaders", +export const CertificateGetHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_getHeaders", type: { name: "Composite", - className: "ApiReleaseGetEntityTagHeaders", + className: "CertificateGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15642,11 +17741,11 @@ export const ApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_getHeaders", +export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiReleaseGetHeaders", + className: "CertificateCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15659,11 +17758,11 @@ export const ApiReleaseGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_createOrUpdateHeaders", +export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "Certificate_refreshSecretHeaders", type: { name: "Composite", - className: "ApiReleaseCreateOrUpdateHeaders", + className: "CertificateRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15676,15 +17775,15 @@ export const ApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiRelease_updateHeaders", +export const ApiManagementClientPerformConnectivityCheckAsyncHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementClient_performConnectivityCheckAsyncHeaders", type: { name: "Composite", - className: "ApiReleaseUpdateHeaders", + className: "ApiManagementClientPerformConnectivityCheckAsyncHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15693,11 +17792,11 @@ export const ApiReleaseUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_getEntityTagHeaders", +export const ContentTypeGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_getHeaders", type: { name: "Composite", - className: "ApiOperationGetEntityTagHeaders", + className: "ContentTypeGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15710,11 +17809,11 @@ export const ApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_getHeaders", +export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentType_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiOperationGetHeaders", + className: "ContentTypeCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15727,11 +17826,11 @@ export const ApiOperationGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_createOrUpdateHeaders", +export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getEntityTagHeaders", type: { name: "Composite", - className: "ApiOperationCreateOrUpdateHeaders", + className: "ContentItemGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15744,11 +17843,11 @@ export const ApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperation_updateHeaders", +export const ContentItemGetHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_getHeaders", type: { name: "Composite", - className: "ApiOperationUpdateHeaders", + className: "ContentItemGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15761,11 +17860,11 @@ export const ApiOperationUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_getEntityTagHeaders", +export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ContentItem_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiOperationPolicyGetEntityTagHeaders", + className: "ContentItemCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15778,15 +17877,15 @@ export const ApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = } }; -export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_getHeaders", +export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { + serializedName: "DeletedServices_purgeHeaders", type: { name: "Composite", - className: "ApiOperationPolicyGetHeaders", + className: "DeletedServicesPurgeHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15795,15 +17894,15 @@ export const ApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiOperationPolicy_createOrUpdateHeaders", +export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_restoreHeaders", type: { name: "Composite", - className: "ApiOperationPolicyCreateOrUpdateHeaders", + className: "ApiManagementServiceRestoreHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15812,15 +17911,15 @@ export const ApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper } }; -export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByOperationHeaders", +export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_backupHeaders", type: { name: "Composite", - className: "TagGetEntityStateByOperationHeaders", + className: "ApiManagementServiceBackupHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15829,15 +17928,15 @@ export const TagGetEntityStateByOperationHeaders: coreClient.CompositeMapper = { } }; -export const TagGetByOperationHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByOperationHeaders", +export const ApiManagementServiceUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_updateHeaders", type: { name: "Composite", - className: "TagGetByOperationHeaders", + className: "ApiManagementServiceUpdateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15846,15 +17945,15 @@ export const TagGetByOperationHeaders: coreClient.CompositeMapper = { } }; -export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByApiHeaders", +export const ApiManagementServiceDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_deleteHeaders", type: { name: "Composite", - className: "TagGetEntityStateByApiHeaders", + className: "ApiManagementServiceDeleteHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15863,15 +17962,15 @@ export const TagGetEntityStateByApiHeaders: coreClient.CompositeMapper = { } }; -export const TagGetByApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByApiHeaders", +export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = { + serializedName: "ApiManagementService_migrateToStv2Headers", type: { name: "Composite", - className: "TagGetByApiHeaders", + className: "ApiManagementServiceMigrateToStv2Headers", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15880,15 +17979,16 @@ export const TagGetByApiHeaders: coreClient.CompositeMapper = { } }; -export const TagAssignToApiHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_assignToApiHeaders", +export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = { + serializedName: + "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", type: { name: "Composite", - className: "TagAssignToApiHeaders", + className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -15897,11 +17997,11 @@ export const TagAssignToApiHeaders: coreClient.CompositeMapper = { } }; -export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateByProductHeaders", +export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_getEntityTagHeaders", type: { name: "Composite", - className: "TagGetEntityStateByProductHeaders", + className: "DiagnosticGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15914,11 +18014,11 @@ export const TagGetEntityStateByProductHeaders: coreClient.CompositeMapper = { } }; -export const TagGetByProductHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getByProductHeaders", +export const DiagnosticGetHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_getHeaders", type: { name: "Composite", - className: "TagGetByProductHeaders", + className: "DiagnosticGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15931,11 +18031,11 @@ export const TagGetByProductHeaders: coreClient.CompositeMapper = { } }; -export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getEntityStateHeaders", +export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_createOrUpdateHeaders", type: { name: "Composite", - className: "TagGetEntityStateHeaders", + className: "DiagnosticCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15948,11 +18048,11 @@ export const TagGetEntityStateHeaders: coreClient.CompositeMapper = { } }; -export const TagGetHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_getHeaders", +export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Diagnostic_updateHeaders", type: { name: "Composite", - className: "TagGetHeaders", + className: "DiagnosticUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15965,11 +18065,11 @@ export const TagGetHeaders: coreClient.CompositeMapper = { } }; -export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_createOrUpdateHeaders", +export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getEntityTagHeaders", type: { name: "Composite", - className: "TagCreateOrUpdateHeaders", + className: "DocumentationGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15982,11 +18082,11 @@ export const TagCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const TagUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Tag_updateHeaders", +export const DocumentationGetHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_getHeaders", type: { name: "Composite", - className: "TagUpdateHeaders", + className: "DocumentationGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -15999,11 +18099,11 @@ export const TagUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_getEntityTagHeaders", +export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_createOrUpdateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverGetEntityTagHeaders", + className: "DocumentationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16016,11 +18116,11 @@ export const GraphQLApiResolverGetEntityTagHeaders: coreClient.CompositeMapper = } }; -export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_getHeaders", +export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Documentation_updateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverGetHeaders", + className: "DocumentationUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16033,11 +18133,11 @@ export const GraphQLApiResolverGetHeaders: coreClient.CompositeMapper = { } }; -export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_createOrUpdateHeaders", +export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_getEntityTagHeaders", type: { name: "Composite", - className: "GraphQLApiResolverCreateOrUpdateHeaders", + className: "EmailTemplateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16050,11 +18150,11 @@ export const GraphQLApiResolverCreateOrUpdateHeaders: coreClient.CompositeMapper } }; -export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolver_updateHeaders", +export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_getHeaders", type: { name: "Composite", - className: "GraphQLApiResolverUpdateHeaders", + className: "EmailTemplateGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16067,11 +18167,11 @@ export const GraphQLApiResolverUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_getEntityTagHeaders", +export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "EmailTemplate_updateHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyGetEntityTagHeaders", + className: "EmailTemplateUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16084,11 +18184,11 @@ export const GraphQLApiResolverPolicyGetEntityTagHeaders: coreClient.CompositeMa } }; -export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_getHeaders", +export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_getEntityTagHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyGetHeaders", + className: "GatewayGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16101,11 +18201,11 @@ export const GraphQLApiResolverPolicyGetHeaders: coreClient.CompositeMapper = { } }; -export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GraphQLApiResolverPolicy_createOrUpdateHeaders", +export const GatewayGetHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_getHeaders", type: { name: "Composite", - className: "GraphQLApiResolverPolicyCreateOrUpdateHeaders", + className: "GatewayGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16118,11 +18218,11 @@ export const GraphQLApiResolverPolicyCreateOrUpdateHeaders: coreClient.Composite } }; -export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_getEntityTagHeaders", +export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiPolicyGetEntityTagHeaders", + className: "GatewayCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16135,11 +18235,11 @@ export const ApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_getHeaders", +export const GatewayUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_updateHeaders", type: { name: "Composite", - className: "ApiPolicyGetHeaders", + className: "GatewayUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16152,11 +18252,11 @@ export const ApiPolicyGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiPolicy_createOrUpdateHeaders", +export const GatewayListKeysHeaders: coreClient.CompositeMapper = { + serializedName: "Gateway_listKeysHeaders", type: { name: "Composite", - className: "ApiPolicyCreateOrUpdateHeaders", + className: "GatewayListKeysHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16169,11 +18269,11 @@ export const ApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_getEntityTagHeaders", +export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayHostnameConfiguration_getEntityTagHeaders", type: { name: "Composite", - className: "ApiSchemaGetEntityTagHeaders", + className: "GatewayHostnameConfigurationGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16186,11 +18286,11 @@ export const ApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_getHeaders", +export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayHostnameConfiguration_getHeaders", type: { name: "Composite", - className: "ApiSchemaGetHeaders", + className: "GatewayHostnameConfigurationGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16203,11 +18303,11 @@ export const ApiSchemaGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiSchema_createOrUpdateHeaders", +export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayHostnameConfiguration_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiSchemaCreateOrUpdateHeaders", + className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16220,11 +18320,11 @@ export const ApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_getEntityTagHeaders", +export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayApi_getEntityTagHeaders", type: { name: "Composite", - className: "ApiDiagnosticGetEntityTagHeaders", + className: "GatewayApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16237,11 +18337,11 @@ export const ApiDiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_getHeaders", +export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthority_getEntityTagHeaders", type: { name: "Composite", - className: "ApiDiagnosticGetHeaders", + className: "GatewayCertificateAuthorityGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16254,11 +18354,11 @@ export const ApiDiagnosticGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_createOrUpdateHeaders", +export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthority_getHeaders", type: { name: "Composite", - className: "ApiDiagnosticCreateOrUpdateHeaders", + className: "GatewayCertificateAuthorityGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16271,11 +18371,11 @@ export const ApiDiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiDiagnostic_updateHeaders", +export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GatewayCertificateAuthority_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiDiagnosticUpdateHeaders", + className: "GatewayCertificateAuthorityCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16288,11 +18388,11 @@ export const ApiDiagnosticUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_getEntityTagHeaders", +export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Group_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueGetEntityTagHeaders", + className: "GroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16305,11 +18405,11 @@ export const ApiIssueGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_getHeaders", +export const GroupGetHeaders: coreClient.CompositeMapper = { + serializedName: "Group_getHeaders", type: { name: "Composite", - className: "ApiIssueGetHeaders", + className: "GroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16322,11 +18422,11 @@ export const ApiIssueGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_createOrUpdateHeaders", +export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Group_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueCreateOrUpdateHeaders", + className: "GroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16339,11 +18439,11 @@ export const ApiIssueCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssue_updateHeaders", +export const GroupUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Group_updateHeaders", type: { name: "Composite", - className: "ApiIssueUpdateHeaders", + className: "GroupUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16356,11 +18456,11 @@ export const ApiIssueUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_getEntityTagHeaders", +export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_getEntityTagHeaders", type: { name: "Composite", - className: "ApiIssueCommentGetEntityTagHeaders", + className: "IdentityProviderGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16373,11 +18473,11 @@ export const ApiIssueCommentGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_getHeaders", +export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_getHeaders", type: { name: "Composite", - className: "ApiIssueCommentGetHeaders", + className: "IdentityProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16390,11 +18490,11 @@ export const ApiIssueCommentGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueComment_createOrUpdateHeaders", +export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiIssueCommentCreateOrUpdateHeaders", + className: "IdentityProviderCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16407,11 +18507,11 @@ export const ApiIssueCommentCreateOrUpdateHeaders: coreClient.CompositeMapper = } }; -export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_getEntityTagHeaders", +export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_updateHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentGetEntityTagHeaders", + className: "IdentityProviderUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16424,11 +18524,11 @@ export const ApiIssueAttachmentGetEntityTagHeaders: coreClient.CompositeMapper = } }; -export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_getHeaders", +export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "IdentityProvider_listSecretsHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentGetHeaders", + className: "IdentityProviderListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16441,11 +18541,11 @@ export const ApiIssueAttachmentGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiIssueAttachment_createOrUpdateHeaders", +export const IssueGetHeaders: coreClient.CompositeMapper = { + serializedName: "Issue_getHeaders", type: { name: "Composite", - className: "ApiIssueAttachmentCreateOrUpdateHeaders", + className: "IssueGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16458,11 +18558,11 @@ export const ApiIssueAttachmentCreateOrUpdateHeaders: coreClient.CompositeMapper } }; -export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_getEntityTagHeaders", +export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_getEntityTagHeaders", type: { name: "Composite", - className: "ApiTagDescriptionGetEntityTagHeaders", + className: "LoggerGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16475,11 +18575,11 @@ export const ApiTagDescriptionGetEntityTagHeaders: coreClient.CompositeMapper = } }; -export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_getHeaders", +export const LoggerGetHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_getHeaders", type: { name: "Composite", - className: "ApiTagDescriptionGetHeaders", + className: "LoggerGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16492,11 +18592,11 @@ export const ApiTagDescriptionGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiTagDescription_createOrUpdateHeaders", +export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiTagDescriptionCreateOrUpdateHeaders", + className: "LoggerCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16509,11 +18609,11 @@ export const ApiTagDescriptionCreateOrUpdateHeaders: coreClient.CompositeMapper } }; -export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_getEntityTagHeaders", +export const LoggerUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Logger_updateHeaders", type: { name: "Composite", - className: "ApiWikiGetEntityTagHeaders", + className: "LoggerUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16526,11 +18626,11 @@ export const ApiWikiGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiWikiGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_getHeaders", +export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_getEntityTagHeaders", type: { name: "Composite", - className: "ApiWikiGetHeaders", + className: "NamedValueGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16543,11 +18643,11 @@ export const ApiWikiGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_createOrUpdateHeaders", +export const NamedValueGetHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_getHeaders", type: { name: "Composite", - className: "ApiWikiCreateOrUpdateHeaders", + className: "NamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16560,11 +18660,11 @@ export const ApiWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiWiki_updateHeaders", +export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiWikiUpdateHeaders", + className: "NamedValueCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16577,11 +18677,11 @@ export const ApiWikiUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_getEntityTagHeaders", +export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_updateHeaders", type: { name: "Composite", - className: "ApiVersionSetGetEntityTagHeaders", + className: "NamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16594,11 +18694,11 @@ export const ApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_getHeaders", +export const NamedValueListValueHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_listValueHeaders", type: { name: "Composite", - className: "ApiVersionSetGetHeaders", + className: "NamedValueListValueHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16611,11 +18711,11 @@ export const ApiVersionSetGetHeaders: coreClient.CompositeMapper = { } }; -export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_createOrUpdateHeaders", +export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "NamedValue_refreshSecretHeaders", type: { name: "Composite", - className: "ApiVersionSetCreateOrUpdateHeaders", + className: "NamedValueRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16628,11 +18728,11 @@ export const ApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ApiVersionSet_updateHeaders", +export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_getEntityTagHeaders", type: { name: "Composite", - className: "ApiVersionSetUpdateHeaders", + className: "OpenIdConnectProviderGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16645,11 +18745,11 @@ export const ApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_getEntityTagHeaders", +export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_getHeaders", type: { name: "Composite", - className: "AuthorizationServerGetEntityTagHeaders", + className: "OpenIdConnectProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16662,11 +18762,11 @@ export const AuthorizationServerGetEntityTagHeaders: coreClient.CompositeMapper } }; -export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_getHeaders", +export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationServerGetHeaders", + className: "OpenIdConnectProviderCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16679,11 +18779,11 @@ export const AuthorizationServerGetHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_createOrUpdateHeaders", +export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_updateHeaders", type: { name: "Composite", - className: "AuthorizationServerCreateOrUpdateHeaders", + className: "OpenIdConnectProviderUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16696,11 +18796,11 @@ export const AuthorizationServerCreateOrUpdateHeaders: coreClient.CompositeMappe } }; -export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_updateHeaders", +export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "OpenIdConnectProvider_listSecretsHeaders", type: { name: "Composite", - className: "AuthorizationServerUpdateHeaders", + className: "OpenIdConnectProviderListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16713,11 +18813,11 @@ export const AuthorizationServerUpdateHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationServer_listSecretsHeaders", +export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationServerListSecretsHeaders", + className: "PolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16730,11 +18830,11 @@ export const AuthorizationServerListSecretsHeaders: coreClient.CompositeMapper = } }; -export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationProvider_getHeaders", +export const PolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_getHeaders", type: { name: "Composite", - className: "AuthorizationProviderGetHeaders", + className: "PolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16747,11 +18847,11 @@ export const AuthorizationProviderGetHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationProvider_createOrUpdateHeaders", +export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Policy_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationProviderCreateOrUpdateHeaders", + className: "PolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16764,11 +18864,11 @@ export const AuthorizationProviderCreateOrUpdateHeaders: coreClient.CompositeMap } }; -export const AuthorizationGetHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_getHeaders", +export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationGetHeaders", + className: "PolicyFragmentGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16781,11 +18881,11 @@ export const AuthorizationGetHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_createOrUpdateHeaders", +export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_getHeaders", type: { name: "Composite", - className: "AuthorizationCreateOrUpdateHeaders", + className: "PolicyFragmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16798,11 +18898,11 @@ export const AuthorizationCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper = { - serializedName: "Authorization_confirmConsentCodeHeaders", +export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PolicyFragment_createOrUpdateHeaders", type: { name: "Composite", - className: "AuthorizationConfirmConsentCodeHeaders", + className: "PolicyFragmentCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16815,11 +18915,11 @@ export const AuthorizationConfirmConsentCodeHeaders: coreClient.CompositeMapper } }; -export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationLoginLinks_postHeaders", +export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationLoginLinksPostHeaders", + className: "PortalConfigGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16832,11 +18932,11 @@ export const AuthorizationLoginLinksPostHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicy_getHeaders", +export const PortalConfigGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalConfig_getHeaders", type: { name: "Composite", - className: "AuthorizationAccessPolicyGetHeaders", + className: "PortalConfigGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16849,11 +18949,11 @@ export const AuthorizationAccessPolicyGetHeaders: coreClient.CompositeMapper = { } }; -export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "AuthorizationAccessPolicy_createOrUpdateHeaders", +export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_getEntityTagHeaders", type: { name: "Composite", - className: "AuthorizationAccessPolicyCreateOrUpdateHeaders", + className: "PortalRevisionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16866,11 +18966,11 @@ export const AuthorizationAccessPolicyCreateOrUpdateHeaders: coreClient.Composit } }; -export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_getEntityTagHeaders", +export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_getHeaders", type: { name: "Composite", - className: "BackendGetEntityTagHeaders", + className: "PortalRevisionGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16883,11 +18983,11 @@ export const BackendGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const BackendGetHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_getHeaders", +export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_createOrUpdateHeaders", type: { name: "Composite", - className: "BackendGetHeaders", + className: "PortalRevisionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16900,11 +19000,11 @@ export const BackendGetHeaders: coreClient.CompositeMapper = { } }; -export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_createOrUpdateHeaders", +export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PortalRevision_updateHeaders", type: { name: "Composite", - className: "BackendCreateOrUpdateHeaders", + className: "PortalRevisionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16917,11 +19017,11 @@ export const BackendCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const BackendUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Backend_updateHeaders", +export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "SignInSettings_getEntityTagHeaders", type: { name: "Composite", - className: "BackendUpdateHeaders", + className: "SignInSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16934,11 +19034,11 @@ export const BackendUpdateHeaders: coreClient.CompositeMapper = { } }; -export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_getEntityTagHeaders", +export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "SignInSettings_getHeaders", type: { name: "Composite", - className: "CacheGetEntityTagHeaders", + className: "SignInSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16951,11 +19051,11 @@ export const CacheGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const CacheGetHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_getHeaders", +export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "SignUpSettings_getEntityTagHeaders", type: { name: "Composite", - className: "CacheGetHeaders", + className: "SignUpSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16968,11 +19068,11 @@ export const CacheGetHeaders: coreClient.CompositeMapper = { } }; -export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_createOrUpdateHeaders", +export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "SignUpSettings_getHeaders", type: { name: "Composite", - className: "CacheCreateOrUpdateHeaders", + className: "SignUpSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -16985,11 +19085,11 @@ export const CacheCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const CacheUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Cache_updateHeaders", +export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "DelegationSettings_getEntityTagHeaders", type: { name: "Composite", - className: "CacheUpdateHeaders", + className: "DelegationSettingsGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17002,11 +19102,11 @@ export const CacheUpdateHeaders: coreClient.CompositeMapper = { } }; -export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_getEntityTagHeaders", +export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "DelegationSettings_getHeaders", type: { name: "Composite", - className: "CertificateGetEntityTagHeaders", + className: "DelegationSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17019,15 +19119,15 @@ export const CertificateGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const CertificateGetHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_getHeaders", +export const PrivateEndpointConnectionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnection_createOrUpdateHeaders", type: { name: "Composite", - className: "CertificateGetHeaders", + className: "PrivateEndpointConnectionCreateOrUpdateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -17036,15 +19136,15 @@ export const CertificateGetHeaders: coreClient.CompositeMapper = { } }; -export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_createOrUpdateHeaders", +export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = { + serializedName: "PrivateEndpointConnection_deleteHeaders", type: { name: "Composite", - className: "CertificateCreateOrUpdateHeaders", + className: "PrivateEndpointConnectionDeleteHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -17053,11 +19153,11 @@ export const CertificateCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { - serializedName: "Certificate_refreshSecretHeaders", +export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Product_getEntityTagHeaders", type: { name: "Composite", - className: "CertificateRefreshSecretHeaders", + className: "ProductGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17070,11 +19170,11 @@ export const CertificateRefreshSecretHeaders: coreClient.CompositeMapper = { } }; -export const ContentTypeGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_getHeaders", +export const ProductGetHeaders: coreClient.CompositeMapper = { + serializedName: "Product_getHeaders", type: { name: "Composite", - className: "ContentTypeGetHeaders", + className: "ProductGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17087,11 +19187,11 @@ export const ContentTypeGetHeaders: coreClient.CompositeMapper = { } }; -export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentType_createOrUpdateHeaders", +export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Product_createOrUpdateHeaders", type: { name: "Composite", - className: "ContentTypeCreateOrUpdateHeaders", + className: "ProductCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17104,11 +19204,11 @@ export const ContentTypeCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getEntityTagHeaders", +export const ProductUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Product_updateHeaders", type: { name: "Composite", - className: "ContentItemGetEntityTagHeaders", + className: "ProductUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17121,11 +19221,11 @@ export const ContentItemGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemGetHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_getHeaders", +export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "ContentItemGetHeaders", + className: "ProductPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17138,11 +19238,11 @@ export const ContentItemGetHeaders: coreClient.CompositeMapper = { } }; -export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ContentItem_createOrUpdateHeaders", +export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_getHeaders", type: { name: "Composite", - className: "ContentItemCreateOrUpdateHeaders", + className: "ProductPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17155,15 +19255,15 @@ export const ContentItemCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { - serializedName: "DeletedServices_purgeHeaders", +export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "DeletedServicesPurgeHeaders", + className: "ProductPolicyCreateOrUpdateHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -17172,15 +19272,15 @@ export const DeletedServicesPurgeHeaders: coreClient.CompositeMapper = { } }; -export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_restoreHeaders", +export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getEntityTagHeaders", type: { name: "Composite", - className: "ApiManagementServiceRestoreHeaders", + className: "ProductWikiGetEntityTagHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -17189,15 +19289,15 @@ export const ApiManagementServiceRestoreHeaders: coreClient.CompositeMapper = { } }; -export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_backupHeaders", +export const ProductWikiGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_getHeaders", type: { name: "Composite", - className: "ApiManagementServiceBackupHeaders", + className: "ProductWikiGetHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -17206,15 +19306,15 @@ export const ApiManagementServiceBackupHeaders: coreClient.CompositeMapper = { } }; -export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMapper = { - serializedName: "ApiManagementService_migrateToStv2Headers", +export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_createOrUpdateHeaders", type: { name: "Composite", - className: "ApiManagementServiceMigrateToStv2Headers", + className: "ProductWikiCreateOrUpdateHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -17223,16 +19323,15 @@ export const ApiManagementServiceMigrateToStv2Headers: coreClient.CompositeMappe } }; -export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreClient.CompositeMapper = { - serializedName: - "ApiManagementService_applyNetworkConfigurationUpdatesHeaders", +export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWiki_updateHeaders", type: { name: "Composite", - className: "ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders", + className: "ProductWikiUpdateHeaders", modelProperties: { - location: { - serializedName: "location", - xmlName: "location", + eTag: { + serializedName: "etag", + xmlName: "etag", type: { name: "String" } @@ -17241,11 +19340,11 @@ export const ApiManagementServiceApplyNetworkConfigurationUpdatesHeaders: coreCl } }; -export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_getEntityTagHeaders", +export const ProductWikisListHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listHeaders", type: { name: "Composite", - className: "DiagnosticGetEntityTagHeaders", + className: "ProductWikisListHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17258,11 +19357,11 @@ export const DiagnosticGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const DiagnosticGetHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_getHeaders", +export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { + serializedName: "ProductWikis_listNextHeaders", type: { name: "Composite", - className: "DiagnosticGetHeaders", + className: "ProductWikisListNextHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17275,11 +19374,11 @@ export const DiagnosticGetHeaders: coreClient.CompositeMapper = { } }; -export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_createOrUpdateHeaders", +export const ProductApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductApiLink_getHeaders", type: { name: "Composite", - className: "DiagnosticCreateOrUpdateHeaders", + className: "ProductApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17292,11 +19391,11 @@ export const DiagnosticCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Diagnostic_updateHeaders", +export const ProductGroupLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "ProductGroupLink_getHeaders", type: { name: "Composite", - className: "DiagnosticUpdateHeaders", + className: "ProductGroupLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17309,11 +19408,11 @@ export const DiagnosticUpdateHeaders: coreClient.CompositeMapper = { } }; -export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_getEntityTagHeaders", +export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getEntityTagHeaders", type: { name: "Composite", - className: "EmailTemplateGetEntityTagHeaders", + className: "GlobalSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17326,11 +19425,11 @@ export const EmailTemplateGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_getHeaders", +export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_getHeaders", type: { name: "Composite", - className: "EmailTemplateGetHeaders", + className: "GlobalSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17343,11 +19442,11 @@ export const EmailTemplateGetHeaders: coreClient.CompositeMapper = { } }; -export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "EmailTemplate_updateHeaders", +export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "GlobalSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "EmailTemplateUpdateHeaders", + className: "GlobalSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17360,11 +19459,11 @@ export const EmailTemplateUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_getEntityTagHeaders", +export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { + serializedName: "TenantSettings_getHeaders", type: { name: "Composite", - className: "GatewayGetEntityTagHeaders", + className: "TenantSettingsGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17377,11 +19476,11 @@ export const GatewayGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const GatewayGetHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_getHeaders", +export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayGetHeaders", + className: "SubscriptionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17394,11 +19493,11 @@ export const GatewayGetHeaders: coreClient.CompositeMapper = { } }; -export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_createOrUpdateHeaders", +export const SubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_getHeaders", type: { name: "Composite", - className: "GatewayCreateOrUpdateHeaders", + className: "SubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17411,11 +19510,11 @@ export const GatewayCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GatewayUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_updateHeaders", +export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_createOrUpdateHeaders", type: { name: "Composite", - className: "GatewayUpdateHeaders", + className: "SubscriptionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17428,11 +19527,11 @@ export const GatewayUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GatewayListKeysHeaders: coreClient.CompositeMapper = { - serializedName: "Gateway_listKeysHeaders", +export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_updateHeaders", type: { name: "Composite", - className: "GatewayListKeysHeaders", + className: "SubscriptionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17445,11 +19544,11 @@ export const GatewayListKeysHeaders: coreClient.CompositeMapper = { } }; -export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_getEntityTagHeaders", +export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "Subscription_listSecretsHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationGetEntityTagHeaders", + className: "SubscriptionListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17462,11 +19561,11 @@ export const GatewayHostnameConfigurationGetEntityTagHeaders: coreClient.Composi } }; -export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_getHeaders", +export const TagApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagApiLink_getHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationGetHeaders", + className: "TagApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17479,11 +19578,11 @@ export const GatewayHostnameConfigurationGetHeaders: coreClient.CompositeMapper } }; -export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayHostnameConfiguration_createOrUpdateHeaders", +export const TagOperationLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagOperationLink_getHeaders", type: { name: "Composite", - className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", + className: "TagOperationLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17496,11 +19595,11 @@ export const GatewayHostnameConfigurationCreateOrUpdateHeaders: coreClient.Compo } }; -export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayApi_getEntityTagHeaders", +export const TagProductLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "TagProductLink_getHeaders", type: { name: "Composite", - className: "GatewayApiGetEntityTagHeaders", + className: "TagProductLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17513,11 +19612,11 @@ export const GatewayApiGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_getEntityTagHeaders", +export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_getEntityTagHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityGetEntityTagHeaders", + className: "TenantAccessGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17530,11 +19629,11 @@ export const GatewayCertificateAuthorityGetEntityTagHeaders: coreClient.Composit } }; -export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_getHeaders", +export const TenantAccessGetHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_getHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityGetHeaders", + className: "TenantAccessGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17547,11 +19646,11 @@ export const GatewayCertificateAuthorityGetHeaders: coreClient.CompositeMapper = } }; -export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GatewayCertificateAuthority_createOrUpdateHeaders", +export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_createHeaders", type: { name: "Composite", - className: "GatewayCertificateAuthorityCreateOrUpdateHeaders", + className: "TenantAccessCreateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17564,11 +19663,11 @@ export const GatewayCertificateAuthorityCreateOrUpdateHeaders: coreClient.Compos } }; -export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Group_getEntityTagHeaders", +export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_updateHeaders", type: { name: "Composite", - className: "GroupGetEntityTagHeaders", + className: "TenantAccessUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17581,11 +19680,11 @@ export const GroupGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const GroupGetHeaders: coreClient.CompositeMapper = { - serializedName: "Group_getHeaders", +export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "TenantAccess_listSecretsHeaders", type: { name: "Composite", - className: "GroupGetHeaders", + className: "TenantAccessListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17598,15 +19697,15 @@ export const GroupGetHeaders: coreClient.CompositeMapper = { } }; -export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Group_createOrUpdateHeaders", +export const TenantConfigurationDeployHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_deployHeaders", type: { name: "Composite", - className: "GroupCreateOrUpdateHeaders", + className: "TenantConfigurationDeployHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -17615,15 +19714,15 @@ export const GroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const GroupUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Group_updateHeaders", +export const TenantConfigurationSaveHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_saveHeaders", type: { name: "Composite", - className: "GroupUpdateHeaders", + className: "TenantConfigurationSaveHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -17632,15 +19731,15 @@ export const GroupUpdateHeaders: coreClient.CompositeMapper = { } }; -export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_getEntityTagHeaders", +export const TenantConfigurationValidateHeaders: coreClient.CompositeMapper = { + serializedName: "TenantConfiguration_validateHeaders", type: { name: "Composite", - className: "IdentityProviderGetEntityTagHeaders", + className: "TenantConfigurationValidateHeaders", modelProperties: { - eTag: { - serializedName: "etag", - xmlName: "etag", + location: { + serializedName: "location", + xmlName: "location", type: { name: "String" } @@ -17649,11 +19748,11 @@ export const IdentityProviderGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_getHeaders", +export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "User_getEntityTagHeaders", type: { name: "Composite", - className: "IdentityProviderGetHeaders", + className: "UserGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17666,11 +19765,11 @@ export const IdentityProviderGetHeaders: coreClient.CompositeMapper = { } }; -export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_createOrUpdateHeaders", +export const UserGetHeaders: coreClient.CompositeMapper = { + serializedName: "User_getHeaders", type: { name: "Composite", - className: "IdentityProviderCreateOrUpdateHeaders", + className: "UserGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17683,11 +19782,11 @@ export const IdentityProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = } }; -export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_updateHeaders", +export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "User_createOrUpdateHeaders", type: { name: "Composite", - className: "IdentityProviderUpdateHeaders", + className: "UserCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17700,11 +19799,11 @@ export const IdentityProviderUpdateHeaders: coreClient.CompositeMapper = { } }; -export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "IdentityProvider_listSecretsHeaders", +export const UserUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "User_updateHeaders", type: { name: "Composite", - className: "IdentityProviderListSecretsHeaders", + className: "UserUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17717,11 +19816,11 @@ export const IdentityProviderListSecretsHeaders: coreClient.CompositeMapper = { } }; -export const IssueGetHeaders: coreClient.CompositeMapper = { - serializedName: "Issue_getHeaders", +export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "UserSubscription_getHeaders", type: { name: "Composite", - className: "IssueGetHeaders", + className: "UserSubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17734,11 +19833,11 @@ export const IssueGetHeaders: coreClient.CompositeMapper = { } }; -export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_getEntityTagHeaders", +export const WorkspaceGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_getEntityTagHeaders", type: { name: "Composite", - className: "LoggerGetEntityTagHeaders", + className: "WorkspaceGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17751,11 +19850,11 @@ export const LoggerGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const LoggerGetHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_getHeaders", +export const WorkspaceGetHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_getHeaders", type: { name: "Composite", - className: "LoggerGetHeaders", + className: "WorkspaceGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17768,11 +19867,11 @@ export const LoggerGetHeaders: coreClient.CompositeMapper = { } }; -export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_createOrUpdateHeaders", +export const WorkspaceCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_createOrUpdateHeaders", type: { name: "Composite", - className: "LoggerCreateOrUpdateHeaders", + className: "WorkspaceCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17785,11 +19884,11 @@ export const LoggerCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const LoggerUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Logger_updateHeaders", +export const WorkspaceUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "Workspace_updateHeaders", type: { name: "Composite", - className: "LoggerUpdateHeaders", + className: "WorkspaceUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17802,11 +19901,11 @@ export const LoggerUpdateHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_getEntityTagHeaders", +export const WorkspacePolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_getEntityTagHeaders", type: { name: "Composite", - className: "NamedValueGetEntityTagHeaders", + className: "WorkspacePolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17819,11 +19918,11 @@ export const NamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueGetHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_getHeaders", +export const WorkspacePolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_getHeaders", type: { name: "Composite", - className: "NamedValueGetHeaders", + className: "WorkspacePolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17836,11 +19935,11 @@ export const NamedValueGetHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_createOrUpdateHeaders", +export const WorkspacePolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "NamedValueCreateOrUpdateHeaders", + className: "WorkspacePolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17853,11 +19952,11 @@ export const NamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_updateHeaders", +export const WorkspaceNamedValueGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_getEntityTagHeaders", type: { name: "Composite", - className: "NamedValueUpdateHeaders", + className: "WorkspaceNamedValueGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17870,11 +19969,11 @@ export const NamedValueUpdateHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueListValueHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_listValueHeaders", +export const WorkspaceNamedValueGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_getHeaders", type: { name: "Composite", - className: "NamedValueListValueHeaders", + className: "WorkspaceNamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17887,11 +19986,11 @@ export const NamedValueListValueHeaders: coreClient.CompositeMapper = { } }; -export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { - serializedName: "NamedValue_refreshSecretHeaders", +export const WorkspaceNamedValueCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_createOrUpdateHeaders", type: { name: "Composite", - className: "NamedValueRefreshSecretHeaders", + className: "WorkspaceNamedValueCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17904,11 +20003,11 @@ export const NamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { } }; -export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_getEntityTagHeaders", +export const WorkspaceNamedValueUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_updateHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderGetEntityTagHeaders", + className: "WorkspaceNamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17921,11 +20020,11 @@ export const OpenIdConnectProviderGetEntityTagHeaders: coreClient.CompositeMappe } }; -export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_getHeaders", +export const WorkspaceNamedValueListValueHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_listValueHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderGetHeaders", + className: "WorkspaceNamedValueListValueHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17938,11 +20037,11 @@ export const OpenIdConnectProviderGetHeaders: coreClient.CompositeMapper = { } }; -export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_createOrUpdateHeaders", +export const WorkspaceNamedValueRefreshSecretHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceNamedValue_refreshSecretHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderCreateOrUpdateHeaders", + className: "WorkspaceNamedValueRefreshSecretHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17955,11 +20054,11 @@ export const OpenIdConnectProviderCreateOrUpdateHeaders: coreClient.CompositeMap } }; -export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_updateHeaders", +export const WorkspaceGlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGlobalSchema_getEntityTagHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderUpdateHeaders", + className: "WorkspaceGlobalSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17972,11 +20071,11 @@ export const OpenIdConnectProviderUpdateHeaders: coreClient.CompositeMapper = { } }; -export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "OpenIdConnectProvider_listSecretsHeaders", +export const WorkspaceGlobalSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGlobalSchema_getHeaders", type: { name: "Composite", - className: "OpenIdConnectProviderListSecretsHeaders", + className: "WorkspaceGlobalSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -17989,11 +20088,11 @@ export const OpenIdConnectProviderListSecretsHeaders: coreClient.CompositeMapper } }; -export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_getEntityTagHeaders", +export const WorkspaceGlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGlobalSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "PolicyGetEntityTagHeaders", + className: "WorkspaceGlobalSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18006,11 +20105,11 @@ export const PolicyGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const PolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_getHeaders", +export const WorkspacePolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicyFragment_getEntityTagHeaders", type: { name: "Composite", - className: "PolicyGetHeaders", + className: "WorkspacePolicyFragmentGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18023,11 +20122,11 @@ export const PolicyGetHeaders: coreClient.CompositeMapper = { } }; -export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Policy_createOrUpdateHeaders", +export const WorkspacePolicyFragmentGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicyFragment_getHeaders", type: { name: "Composite", - className: "PolicyCreateOrUpdateHeaders", + className: "WorkspacePolicyFragmentGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18040,11 +20139,11 @@ export const PolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_getEntityTagHeaders", +export const WorkspacePolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspacePolicyFragment_createOrUpdateHeaders", type: { name: "Composite", - className: "PolicyFragmentGetEntityTagHeaders", + className: "WorkspacePolicyFragmentCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18057,11 +20156,11 @@ export const PolicyFragmentGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_getHeaders", +export const WorkspaceGroupGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_getEntityTagHeaders", type: { name: "Composite", - className: "PolicyFragmentGetHeaders", + className: "WorkspaceGroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18074,11 +20173,11 @@ export const PolicyFragmentGetHeaders: coreClient.CompositeMapper = { } }; -export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PolicyFragment_createOrUpdateHeaders", +export const WorkspaceGroupGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_getHeaders", type: { name: "Composite", - className: "PolicyFragmentCreateOrUpdateHeaders", + className: "WorkspaceGroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18091,11 +20190,11 @@ export const PolicyFragmentCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PortalConfig_getEntityTagHeaders", +export const WorkspaceGroupCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_createOrUpdateHeaders", type: { name: "Composite", - className: "PortalConfigGetEntityTagHeaders", + className: "WorkspaceGroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18108,11 +20207,11 @@ export const PortalConfigGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const PortalConfigGetHeaders: coreClient.CompositeMapper = { - serializedName: "PortalConfig_getHeaders", +export const WorkspaceGroupUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceGroup_updateHeaders", type: { name: "Composite", - className: "PortalConfigGetHeaders", + className: "WorkspaceGroupUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18125,11 +20224,11 @@ export const PortalConfigGetHeaders: coreClient.CompositeMapper = { } }; -export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_getEntityTagHeaders", +export const WorkspaceSubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_getEntityTagHeaders", type: { name: "Composite", - className: "PortalRevisionGetEntityTagHeaders", + className: "WorkspaceSubscriptionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18142,11 +20241,11 @@ export const PortalRevisionGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_getHeaders", +export const WorkspaceSubscriptionGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_getHeaders", type: { name: "Composite", - className: "PortalRevisionGetHeaders", + className: "WorkspaceSubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18159,11 +20258,11 @@ export const PortalRevisionGetHeaders: coreClient.CompositeMapper = { } }; -export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_createOrUpdateHeaders", +export const WorkspaceSubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_createOrUpdateHeaders", type: { name: "Composite", - className: "PortalRevisionCreateOrUpdateHeaders", + className: "WorkspaceSubscriptionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18176,11 +20275,11 @@ export const PortalRevisionCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "PortalRevision_updateHeaders", +export const WorkspaceSubscriptionUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_updateHeaders", type: { name: "Composite", - className: "PortalRevisionUpdateHeaders", + className: "WorkspaceSubscriptionUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18193,11 +20292,11 @@ export const PortalRevisionUpdateHeaders: coreClient.CompositeMapper = { } }; -export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "SignInSettings_getEntityTagHeaders", +export const WorkspaceSubscriptionListSecretsHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceSubscription_listSecretsHeaders", type: { name: "Composite", - className: "SignInSettingsGetEntityTagHeaders", + className: "WorkspaceSubscriptionListSecretsHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18210,11 +20309,11 @@ export const SignInSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "SignInSettings_getHeaders", +export const WorkspaceApiVersionSetGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_getEntityTagHeaders", type: { name: "Composite", - className: "SignInSettingsGetHeaders", + className: "WorkspaceApiVersionSetGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18227,11 +20326,11 @@ export const SignInSettingsGetHeaders: coreClient.CompositeMapper = { } }; -export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "SignUpSettings_getEntityTagHeaders", +export const WorkspaceApiVersionSetGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_getHeaders", type: { name: "Composite", - className: "SignUpSettingsGetEntityTagHeaders", + className: "WorkspaceApiVersionSetGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18244,11 +20343,11 @@ export const SignUpSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "SignUpSettings_getHeaders", +export const WorkspaceApiVersionSetCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_createOrUpdateHeaders", type: { name: "Composite", - className: "SignUpSettingsGetHeaders", + className: "WorkspaceApiVersionSetCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18261,11 +20360,11 @@ export const SignUpSettingsGetHeaders: coreClient.CompositeMapper = { } }; -export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "DelegationSettings_getEntityTagHeaders", +export const WorkspaceApiVersionSetUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiVersionSet_updateHeaders", type: { name: "Composite", - className: "DelegationSettingsGetEntityTagHeaders", + className: "WorkspaceApiVersionSetUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18278,11 +20377,11 @@ export const DelegationSettingsGetEntityTagHeaders: coreClient.CompositeMapper = } }; -export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "DelegationSettings_getHeaders", +export const WorkspaceApiGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_getEntityTagHeaders", type: { name: "Composite", - className: "DelegationSettingsGetHeaders", + className: "WorkspaceApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18295,11 +20394,11 @@ export const DelegationSettingsGetHeaders: coreClient.CompositeMapper = { } }; -export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Product_getEntityTagHeaders", +export const WorkspaceApiGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_getHeaders", type: { name: "Composite", - className: "ProductGetEntityTagHeaders", + className: "WorkspaceApiGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18312,11 +20411,11 @@ export const ProductGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ProductGetHeaders: coreClient.CompositeMapper = { - serializedName: "Product_getHeaders", +export const WorkspaceApiCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_createOrUpdateHeaders", type: { name: "Composite", - className: "ProductGetHeaders", + className: "WorkspaceApiCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18329,11 +20428,11 @@ export const ProductGetHeaders: coreClient.CompositeMapper = { } }; -export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Product_createOrUpdateHeaders", +export const WorkspaceApiUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApi_updateHeaders", type: { name: "Composite", - className: "ProductCreateOrUpdateHeaders", + className: "WorkspaceApiUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18346,11 +20445,11 @@ export const ProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ProductUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Product_updateHeaders", +export const WorkspaceApiReleaseGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_getEntityTagHeaders", type: { name: "Composite", - className: "ProductUpdateHeaders", + className: "WorkspaceApiReleaseGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18363,11 +20462,11 @@ export const ProductUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_getEntityTagHeaders", +export const WorkspaceApiReleaseGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_getHeaders", type: { name: "Composite", - className: "ProductPolicyGetEntityTagHeaders", + className: "WorkspaceApiReleaseGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18380,11 +20479,11 @@ export const ProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_getHeaders", +export const WorkspaceApiReleaseCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_createOrUpdateHeaders", type: { name: "Composite", - className: "ProductPolicyGetHeaders", + className: "WorkspaceApiReleaseCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18397,11 +20496,11 @@ export const ProductPolicyGetHeaders: coreClient.CompositeMapper = { } }; -export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductPolicy_createOrUpdateHeaders", +export const WorkspaceApiReleaseUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiRelease_updateHeaders", type: { name: "Composite", - className: "ProductPolicyCreateOrUpdateHeaders", + className: "WorkspaceApiReleaseUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18414,11 +20513,11 @@ export const ProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_getEntityTagHeaders", +export const WorkspaceApiOperationGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_getEntityTagHeaders", type: { name: "Composite", - className: "ProductWikiGetEntityTagHeaders", + className: "WorkspaceApiOperationGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18431,11 +20530,11 @@ export const ProductWikiGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const ProductWikiGetHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_getHeaders", +export const WorkspaceApiOperationGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_getHeaders", type: { name: "Composite", - className: "ProductWikiGetHeaders", + className: "WorkspaceApiOperationGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18448,11 +20547,11 @@ export const ProductWikiGetHeaders: coreClient.CompositeMapper = { } }; -export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_createOrUpdateHeaders", +export const WorkspaceApiOperationCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_createOrUpdateHeaders", type: { name: "Composite", - className: "ProductWikiCreateOrUpdateHeaders", + className: "WorkspaceApiOperationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18465,11 +20564,11 @@ export const ProductWikiCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWiki_updateHeaders", +export const WorkspaceApiOperationUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperation_updateHeaders", type: { name: "Composite", - className: "ProductWikiUpdateHeaders", + className: "WorkspaceApiOperationUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18482,11 +20581,11 @@ export const ProductWikiUpdateHeaders: coreClient.CompositeMapper = { } }; -export const ProductWikisListHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWikis_listHeaders", +export const WorkspaceApiOperationPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperationPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "ProductWikisListHeaders", + className: "WorkspaceApiOperationPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18499,11 +20598,11 @@ export const ProductWikisListHeaders: coreClient.CompositeMapper = { } }; -export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { - serializedName: "ProductWikis_listNextHeaders", +export const WorkspaceApiOperationPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperationPolicy_getHeaders", type: { name: "Composite", - className: "ProductWikisListNextHeaders", + className: "WorkspaceApiOperationPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18516,11 +20615,11 @@ export const ProductWikisListNextHeaders: coreClient.CompositeMapper = { } }; -export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_getEntityTagHeaders", +export const WorkspaceApiOperationPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiOperationPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "GlobalSchemaGetEntityTagHeaders", + className: "WorkspaceApiOperationPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18533,11 +20632,11 @@ export const GlobalSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_getHeaders", +export const WorkspaceApiPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "GlobalSchemaGetHeaders", + className: "WorkspaceApiPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18550,11 +20649,11 @@ export const GlobalSchemaGetHeaders: coreClient.CompositeMapper = { } }; -export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "GlobalSchema_createOrUpdateHeaders", +export const WorkspaceApiPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiPolicy_getHeaders", type: { name: "Composite", - className: "GlobalSchemaCreateOrUpdateHeaders", + className: "WorkspaceApiPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18567,11 +20666,11 @@ export const GlobalSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { - serializedName: "TenantSettings_getHeaders", +export const WorkspaceApiPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "TenantSettingsGetHeaders", + className: "WorkspaceApiPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18584,11 +20683,11 @@ export const TenantSettingsGetHeaders: coreClient.CompositeMapper = { } }; -export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_getEntityTagHeaders", +export const WorkspaceApiSchemaGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiSchema_getEntityTagHeaders", type: { name: "Composite", - className: "SubscriptionGetEntityTagHeaders", + className: "WorkspaceApiSchemaGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18601,11 +20700,11 @@ export const SubscriptionGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const SubscriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_getHeaders", +export const WorkspaceApiSchemaGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiSchema_getHeaders", type: { name: "Composite", - className: "SubscriptionGetHeaders", + className: "WorkspaceApiSchemaGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18618,11 +20717,11 @@ export const SubscriptionGetHeaders: coreClient.CompositeMapper = { } }; -export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_createOrUpdateHeaders", +export const WorkspaceApiSchemaCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceApiSchema_createOrUpdateHeaders", type: { name: "Composite", - className: "SubscriptionCreateOrUpdateHeaders", + className: "WorkspaceApiSchemaCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18635,11 +20734,11 @@ export const SubscriptionCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_updateHeaders", +export const WorkspaceProductGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_getEntityTagHeaders", type: { name: "Composite", - className: "SubscriptionUpdateHeaders", + className: "WorkspaceProductGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18652,11 +20751,11 @@ export const SubscriptionUpdateHeaders: coreClient.CompositeMapper = { } }; -export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "Subscription_listSecretsHeaders", +export const WorkspaceProductGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_getHeaders", type: { name: "Composite", - className: "SubscriptionListSecretsHeaders", + className: "WorkspaceProductGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18669,11 +20768,11 @@ export const SubscriptionListSecretsHeaders: coreClient.CompositeMapper = { } }; -export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_getEntityTagHeaders", +export const WorkspaceProductCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_createOrUpdateHeaders", type: { name: "Composite", - className: "TenantAccessGetEntityTagHeaders", + className: "WorkspaceProductCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18686,11 +20785,11 @@ export const TenantAccessGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const TenantAccessGetHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_getHeaders", +export const WorkspaceProductUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProduct_updateHeaders", type: { name: "Composite", - className: "TenantAccessGetHeaders", + className: "WorkspaceProductUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18703,11 +20802,11 @@ export const TenantAccessGetHeaders: coreClient.CompositeMapper = { } }; -export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_createHeaders", +export const WorkspaceProductApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductApiLink_getHeaders", type: { name: "Composite", - className: "TenantAccessCreateHeaders", + className: "WorkspaceProductApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18720,11 +20819,11 @@ export const TenantAccessCreateHeaders: coreClient.CompositeMapper = { } }; -export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_updateHeaders", +export const WorkspaceProductGroupLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductGroupLink_getHeaders", type: { name: "Composite", - className: "TenantAccessUpdateHeaders", + className: "WorkspaceProductGroupLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18737,11 +20836,11 @@ export const TenantAccessUpdateHeaders: coreClient.CompositeMapper = { } }; -export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { - serializedName: "TenantAccess_listSecretsHeaders", +export const WorkspaceProductPolicyGetEntityTagHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductPolicy_getEntityTagHeaders", type: { name: "Composite", - className: "TenantAccessListSecretsHeaders", + className: "WorkspaceProductPolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18754,11 +20853,11 @@ export const TenantAccessListSecretsHeaders: coreClient.CompositeMapper = { } }; -export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "User_getEntityTagHeaders", +export const WorkspaceProductPolicyGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductPolicy_getHeaders", type: { name: "Composite", - className: "UserGetEntityTagHeaders", + className: "WorkspaceProductPolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18771,11 +20870,11 @@ export const UserGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const UserGetHeaders: coreClient.CompositeMapper = { - serializedName: "User_getHeaders", +export const WorkspaceProductPolicyCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceProductPolicy_createOrUpdateHeaders", type: { name: "Composite", - className: "UserGetHeaders", + className: "WorkspaceProductPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18788,11 +20887,11 @@ export const UserGetHeaders: coreClient.CompositeMapper = { } }; -export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "User_createOrUpdateHeaders", +export const WorkspaceTagGetEntityStateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_getEntityStateHeaders", type: { name: "Composite", - className: "UserCreateOrUpdateHeaders", + className: "WorkspaceTagGetEntityStateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18805,11 +20904,11 @@ export const UserCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const UserUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "User_updateHeaders", +export const WorkspaceTagGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_getHeaders", type: { name: "Composite", - className: "UserUpdateHeaders", + className: "WorkspaceTagGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18822,11 +20921,11 @@ export const UserUpdateHeaders: coreClient.CompositeMapper = { } }; -export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { - serializedName: "UserSubscription_getHeaders", +export const WorkspaceTagCreateOrUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_createOrUpdateHeaders", type: { name: "Composite", - className: "UserSubscriptionGetHeaders", + className: "WorkspaceTagCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18839,11 +20938,11 @@ export const UserSubscriptionGetHeaders: coreClient.CompositeMapper = { } }; -export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_getEntityTagHeaders", +export const WorkspaceTagUpdateHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTag_updateHeaders", type: { name: "Composite", - className: "DocumentationGetEntityTagHeaders", + className: "WorkspaceTagUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18856,11 +20955,11 @@ export const DocumentationGetEntityTagHeaders: coreClient.CompositeMapper = { } }; -export const DocumentationGetHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_getHeaders", +export const WorkspaceTagApiLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagApiLink_getHeaders", type: { name: "Composite", - className: "DocumentationGetHeaders", + className: "WorkspaceTagApiLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18873,11 +20972,11 @@ export const DocumentationGetHeaders: coreClient.CompositeMapper = { } }; -export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_createOrUpdateHeaders", +export const WorkspaceTagOperationLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagOperationLink_getHeaders", type: { name: "Composite", - className: "DocumentationCreateOrUpdateHeaders", + className: "WorkspaceTagOperationLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -18890,11 +20989,11 @@ export const DocumentationCreateOrUpdateHeaders: coreClient.CompositeMapper = { } }; -export const DocumentationUpdateHeaders: coreClient.CompositeMapper = { - serializedName: "Documentation_updateHeaders", +export const WorkspaceTagProductLinkGetHeaders: coreClient.CompositeMapper = { + serializedName: "WorkspaceTagProductLink_getHeaders", type: { name: "Composite", - className: "DocumentationUpdateHeaders", + className: "WorkspaceTagProductLinkGetHeaders", modelProperties: { eTag: { serializedName: "etag", diff --git a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts index 5fbad6e2b16b..51f594e2fb3e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts @@ -32,13 +32,13 @@ import { WikiUpdateContract as WikiUpdateContractMapper, ApiVersionSetContract as ApiVersionSetContractMapper, ApiVersionSetUpdateParameters as ApiVersionSetUpdateParametersMapper, - AuthorizationServerContract as AuthorizationServerContractMapper, - AuthorizationServerUpdateContract as AuthorizationServerUpdateContractMapper, AuthorizationProviderContract as AuthorizationProviderContractMapper, AuthorizationContract as AuthorizationContractMapper, AuthorizationConfirmConsentCodeRequestContract as AuthorizationConfirmConsentCodeRequestContractMapper, AuthorizationLoginRequestContract as AuthorizationLoginRequestContractMapper, AuthorizationAccessPolicyContract as AuthorizationAccessPolicyContractMapper, + AuthorizationServerContract as AuthorizationServerContractMapper, + AuthorizationServerUpdateContract as AuthorizationServerUpdateContractMapper, BackendContract as BackendContractMapper, BackendUpdateParameters as BackendUpdateParametersMapper, BackendReconnectContract as BackendReconnectContractMapper, @@ -51,12 +51,17 @@ import { ApiManagementServiceBackupRestoreParameters as ApiManagementServiceBackupRestoreParametersMapper, ApiManagementServiceResource as ApiManagementServiceResourceMapper, ApiManagementServiceUpdateParameters as ApiManagementServiceUpdateParametersMapper, + MigrateToStv2Contract as MigrateToStv2ContractMapper, ApiManagementServiceCheckNameAvailabilityParameters as ApiManagementServiceCheckNameAvailabilityParametersMapper, ApiManagementServiceApplyNetworkConfigurationParameters as ApiManagementServiceApplyNetworkConfigurationParametersMapper, + DocumentationContract as DocumentationContractMapper, + DocumentationUpdateContract as DocumentationUpdateContractMapper, EmailTemplateUpdateParameters as EmailTemplateUpdateParametersMapper, GatewayContract as GatewayContractMapper, GatewayKeyRegenerationRequestContract as GatewayKeyRegenerationRequestContractMapper, GatewayTokenRequestContract as GatewayTokenRequestContractMapper, + GatewayListDebugCredentialsContract as GatewayListDebugCredentialsContractMapper, + GatewayListTraceContract as GatewayListTraceContractMapper, GatewayHostnameConfigurationContract as GatewayHostnameConfigurationContractMapper, AssociationContract as AssociationContractMapper, GatewayCertificateAuthorityContract as GatewayCertificateAuthorityContractMapper, @@ -79,10 +84,15 @@ import { PrivateEndpointConnectionRequest as PrivateEndpointConnectionRequestMapper, ProductContract as ProductContractMapper, ProductUpdateParameters as ProductUpdateParametersMapper, + ProductApiLinkContract as ProductApiLinkContractMapper, + ProductGroupLinkContract as ProductGroupLinkContractMapper, QuotaCounterValueUpdateContract as QuotaCounterValueUpdateContractMapper, GlobalSchemaContract as GlobalSchemaContractMapper, SubscriptionCreateParameters as SubscriptionCreateParametersMapper, SubscriptionUpdateParameters as SubscriptionUpdateParametersMapper, + TagApiLinkContract as TagApiLinkContractMapper, + TagOperationLinkContract as TagOperationLinkContractMapper, + TagProductLinkContract as TagProductLinkContractMapper, AccessInformationCreateParameters as AccessInformationCreateParametersMapper, AccessInformationUpdateParameters as AccessInformationUpdateParametersMapper, DeployConfigurationParameters as DeployConfigurationParametersMapper, @@ -90,8 +100,7 @@ import { UserCreateParameters as UserCreateParametersMapper, UserUpdateParameters as UserUpdateParametersMapper, UserTokenParameters as UserTokenParametersMapper, - DocumentationContract as DocumentationContractMapper, - DocumentationUpdateContract as DocumentationUpdateContractMapper + WorkspaceContract as WorkspaceContractMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -216,7 +225,7 @@ export const expandApiVersionSet: OperationQueryParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-08-01", + defaultValue: "2023-03-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -228,14 +237,11 @@ export const apiVersion: OperationQueryParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { - constraints: { - MinLength: 1 - }, serializedName: "subscriptionId", required: true, xmlName: "subscriptionId", type: { - name: "String" + name: "Uuid" } } }; @@ -748,33 +754,6 @@ export const parameters19: OperationParameter = { mapper: ApiVersionSetUpdateParametersMapper }; -export const authsid: OperationURLParameter = { - parameterPath: "authsid", - mapper: { - constraints: { - Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 80, - MinLength: 1 - }, - serializedName: "authsid", - required: true, - xmlName: "authsid", - type: { - name: "String" - } - } -}; - -export const parameters20: OperationParameter = { - parameterPath: "parameters", - mapper: AuthorizationServerContractMapper -}; - -export const parameters21: OperationParameter = { - parameterPath: "parameters", - mapper: AuthorizationServerUpdateContractMapper -}; - export const authorizationProviderId: OperationURLParameter = { parameterPath: "authorizationProviderId", mapper: { @@ -792,7 +771,7 @@ export const authorizationProviderId: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationProviderContractMapper }; @@ -814,17 +793,17 @@ export const authorizationId: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationContractMapper }; -export const parameters24: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationConfirmConsentCodeRequestContractMapper }; -export const parameters25: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationLoginRequestContractMapper }; @@ -846,11 +825,38 @@ export const authorizationAccessPolicyId: OperationURLParameter = { } }; -export const parameters26: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", mapper: AuthorizationAccessPolicyContractMapper }; +export const authsid: OperationURLParameter = { + parameterPath: "authsid", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1 + }, + serializedName: "authsid", + required: true, + xmlName: "authsid", + type: { + name: "String" + } + } +}; + +export const parameters25: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationServerContractMapper +}; + +export const parameters26: OperationParameter = { + parameterPath: "parameters", + mapper: AuthorizationServerUpdateContractMapper +}; + export const backendId: OperationURLParameter = { parameterPath: "backendId", mapper: { @@ -1017,15 +1023,47 @@ export const parameters37: OperationParameter = { }; export const parameters38: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: MigrateToStv2ContractMapper +}; + +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: ApiManagementServiceCheckNameAvailabilityParametersMapper }; -export const parameters39: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: ["options", "parameters"], mapper: ApiManagementServiceApplyNetworkConfigurationParametersMapper }; +export const documentationId: OperationURLParameter = { + parameterPath: "documentationId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 256, + MinLength: 1 + }, + serializedName: "documentationId", + required: true, + xmlName: "documentationId", + type: { + name: "String" + } + } +}; + +export const parameters41: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationContractMapper +}; + +export const parameters42: OperationParameter = { + parameterPath: "parameters", + mapper: DocumentationUpdateContractMapper +}; + export const templateName: OperationURLParameter = { parameterPath: "templateName", mapper: { @@ -1038,7 +1076,7 @@ export const templateName: OperationURLParameter = { } }; -export const parameters40: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: EmailTemplateUpdateParametersMapper }; @@ -1059,21 +1097,31 @@ export const gatewayId: OperationURLParameter = { } }; -export const parameters41: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: GatewayContractMapper }; -export const parameters42: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: GatewayKeyRegenerationRequestContractMapper }; -export const parameters43: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: GatewayTokenRequestContractMapper }; +export const parameters47: OperationParameter = { + parameterPath: "parameters", + mapper: GatewayListDebugCredentialsContractMapper +}; + +export const parameters48: OperationParameter = { + parameterPath: "parameters", + mapper: GatewayListTraceContractMapper +}; + export const hcId: OperationURLParameter = { parameterPath: "hcId", mapper: { @@ -1090,17 +1138,17 @@ export const hcId: OperationURLParameter = { } }; -export const parameters44: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: GatewayHostnameConfigurationContractMapper }; -export const parameters45: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: ["options", "parameters"], mapper: AssociationContractMapper }; -export const parameters46: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: GatewayCertificateAuthorityContractMapper }; @@ -1121,12 +1169,12 @@ export const groupId: OperationURLParameter = { } }; -export const parameters47: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: GroupCreateParametersMapper }; -export const parameters48: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: GroupUpdateParametersMapper }; @@ -1159,12 +1207,12 @@ export const identityProviderName: OperationURLParameter = { } }; -export const parameters49: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: IdentityProviderCreateContractMapper }; -export const parameters50: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: IdentityProviderUpdateParametersMapper }; @@ -1185,12 +1233,12 @@ export const loggerId: OperationURLParameter = { } }; -export const parameters51: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: LoggerContractMapper }; -export const parameters52: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: LoggerUpdateContractMapper }; @@ -1211,12 +1259,12 @@ export const namedValueId: OperationURLParameter = { } }; -export const parameters53: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: NamedValueCreateContractMapper }; -export const parameters54: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: NamedValueUpdateParametersMapper }; @@ -1276,12 +1324,12 @@ export const opid: OperationURLParameter = { } }; -export const parameters55: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: OpenidConnectProviderContractMapper }; -export const parameters56: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: OpenidConnectProviderUpdateContractMapper }; @@ -1337,7 +1385,7 @@ export const format2: OperationQueryParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: PolicyFragmentContractMapper }; @@ -1358,7 +1406,7 @@ export const portalConfigId: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: PortalConfigContractMapper }; @@ -1379,22 +1427,22 @@ export const portalRevisionId: OperationURLParameter = { } }; -export const parameters59: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: PortalRevisionContractMapper }; -export const parameters60: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: PortalSigninSettingsMapper }; -export const parameters61: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: PortalSignupSettingsMapper }; -export const parameters62: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: PortalDelegationSettingsMapper }; @@ -1439,12 +1487,12 @@ export const expandGroups: OperationQueryParameter = { } }; -export const parameters63: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: ProductContractMapper }; -export const parameters64: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: ProductUpdateParametersMapper }; @@ -1471,6 +1519,50 @@ export const includeNotTaggedProducts: OperationQueryParameter = { } }; +export const apiLinkId: OperationURLParameter = { + parameterPath: "apiLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1 + }, + serializedName: "apiLinkId", + required: true, + xmlName: "apiLinkId", + type: { + name: "String" + } + } +}; + +export const parameters70: OperationParameter = { + parameterPath: "parameters", + mapper: ProductApiLinkContractMapper +}; + +export const groupLinkId: OperationURLParameter = { + parameterPath: "groupLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1 + }, + serializedName: "groupLinkId", + required: true, + xmlName: "groupLinkId", + type: { + name: "String" + } + } +}; + +export const parameters71: OperationParameter = { + parameterPath: "parameters", + mapper: ProductGroupLinkContractMapper +}; + export const quotaCounterKey: OperationURLParameter = { parameterPath: "quotaCounterKey", mapper: { @@ -1483,7 +1575,7 @@ export const quotaCounterKey: OperationURLParameter = { } }; -export const parameters65: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", mapper: QuotaCounterValueUpdateContractMapper }; @@ -1524,7 +1616,7 @@ export const interval: OperationQueryParameter = { } }; -export const parameters66: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", mapper: GlobalSchemaContractMapper }; @@ -1557,7 +1649,7 @@ export const sid: OperationURLParameter = { } }; -export const parameters67: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", mapper: SubscriptionCreateParametersMapper }; @@ -1584,11 +1676,60 @@ export const appType: OperationQueryParameter = { } }; -export const parameters68: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: SubscriptionUpdateParametersMapper }; +export const parameters76: OperationParameter = { + parameterPath: "parameters", + mapper: TagApiLinkContractMapper +}; + +export const operationLinkId: OperationURLParameter = { + parameterPath: "operationLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1 + }, + serializedName: "operationLinkId", + required: true, + xmlName: "operationLinkId", + type: { + name: "String" + } + } +}; + +export const parameters77: OperationParameter = { + parameterPath: "parameters", + mapper: TagOperationLinkContractMapper +}; + +export const productLinkId: OperationURLParameter = { + parameterPath: "productLinkId", + mapper: { + constraints: { + Pattern: new RegExp("^[^*#&+:<>?]+$"), + MaxLength: 80, + MinLength: 1 + }, + serializedName: "productLinkId", + required: true, + xmlName: "productLinkId", + type: { + name: "String" + } + } +}; + +export const parameters78: OperationParameter = { + parameterPath: "parameters", + mapper: TagProductLinkContractMapper +}; + export const accessName: OperationURLParameter = { parameterPath: "accessName", mapper: { @@ -1601,17 +1742,17 @@ export const accessName: OperationURLParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", mapper: AccessInformationCreateParametersMapper }; -export const parameters70: OperationParameter = { +export const parameters80: OperationParameter = { parameterPath: "parameters", mapper: AccessInformationUpdateParametersMapper }; -export const parameters71: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: "parameters", mapper: DeployConfigurationParametersMapper }; @@ -1628,49 +1769,55 @@ export const configurationName: OperationURLParameter = { } }; -export const parameters72: OperationParameter = { +export const parameters82: OperationParameter = { parameterPath: "parameters", mapper: SaveConfigurationParameterMapper }; -export const parameters73: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: "parameters", mapper: UserCreateParametersMapper }; -export const parameters74: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: "parameters", mapper: UserUpdateParametersMapper }; -export const parameters75: OperationParameter = { +export const parameters85: OperationParameter = { parameterPath: "parameters", mapper: UserTokenParametersMapper }; -export const documentationId: OperationURLParameter = { - parameterPath: "documentationId", +export const workspaceId: OperationURLParameter = { + parameterPath: "workspaceId", mapper: { constraints: { Pattern: new RegExp("^[^*#&+:<>?]+$"), - MaxLength: 256, + MaxLength: 80, MinLength: 1 }, - serializedName: "documentationId", + serializedName: "workspaceId", required: true, - xmlName: "documentationId", + xmlName: "workspaceId", type: { name: "String" } } }; -export const parameters76: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", - mapper: DocumentationContractMapper + mapper: WorkspaceContractMapper }; -export const parameters77: OperationParameter = { - parameterPath: "parameters", - mapper: DocumentationUpdateContractMapper +export const isKeyVaultRefreshFailed1: OperationQueryParameter = { + parameterPath: ["options", "isKeyVaultRefreshFailed"], + mapper: { + serializedName: "isKeyVaultRefreshFailed", + xmlName: "isKeyVaultRefreshFailed", + type: { + name: "String" + } + } }; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts index c87591913545..1286c6f1bb04 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts @@ -38,7 +38,7 @@ export class ApiExportImpl implements ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 - * minutes. + * minutes. New formats can be added in the future. * @param exportParam Query parameter required to export the API details. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts index 874d5245fd79..25df7483351d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts @@ -1175,6 +1175,7 @@ const migrateToStv2OperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1182,7 +1183,8 @@ const migrateToStv2OperationSpec: coreClient.OperationSpec = { Parameters.serviceName, Parameters.subscriptionId ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { @@ -1257,7 +1259,7 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], @@ -1302,7 +1304,7 @@ const applyNetworkConfigurationUpdatesOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters39, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts index c347d55c595e..0edaee3936d4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorization.ts @@ -373,7 +373,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -426,7 +426,7 @@ const confirmConsentCodeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts index 021fe8debd36..cfd70d5c5e91 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationAccessPolicy.ts @@ -371,7 +371,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts index 7a86c6edba4f..520ea2bb23f4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationLoginLinks.ts @@ -75,7 +75,7 @@ const postOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts index 603eae55b5fa..f1327c745e52 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationProvider.ts @@ -304,7 +304,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts index 99abc294e940..784dfdfa4332 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts @@ -384,7 +384,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -414,7 +414,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts index d4a14c240964..129f36e899a9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts @@ -186,7 +186,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -214,7 +214,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts index 7550ac83335b..aba315eef233 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/documentation.ts @@ -375,7 +375,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -405,7 +405,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters77, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts index f718843e6496..c5bdd4140f87 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/emailTemplate.ts @@ -369,7 +369,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -399,7 +399,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts index 490287bf253f..6b6d8445f18e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts @@ -34,6 +34,13 @@ import { GatewayTokenRequestContract, GatewayGenerateTokenOptionalParams, GatewayGenerateTokenResponse, + GatewayInvalidateDebugCredentialsOptionalParams, + GatewayListDebugCredentialsContract, + GatewayListDebugCredentialsOptionalParams, + GatewayListDebugCredentialsResponse, + GatewayListTraceContract, + GatewayListTraceOptionalParams, + GatewayListTraceResponse, GatewayListByServiceNextResponse } from "../models"; @@ -332,6 +339,70 @@ export class GatewayImpl implements Gateway { ); } + /** + * Action is invalidating all debug credentials issued for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The options parameters. + */ + invalidateDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + options?: GatewayInvalidateDebugCredentialsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, options }, + invalidateDebugCredentialsOperationSpec + ); + } + + /** + * Create new debug credentials for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List debug credentials properties. + * @param options The options parameters. + */ + listDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListDebugCredentialsContract, + options?: GatewayListDebugCredentialsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, parameters, options }, + listDebugCredentialsOperationSpec + ); + } + + /** + * Fetches trace collected by gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List trace properties. + * @param options The options parameters. + */ + listTrace( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListTraceContract, + options?: GatewayListTraceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, gatewayId, parameters, options }, + listTraceOperationSpec + ); + } + /** * ListByServiceNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -445,7 +516,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -475,7 +546,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -548,7 +619,7 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -573,7 +644,80 @@ const generateTokenOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters46, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const invalidateDebugCredentialsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/invalidateDebugCredentials", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listDebugCredentialsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listDebugCredentials", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GatewayDebugCredentialsContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters47, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.gatewayId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listTraceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listTrace", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts index b355825a6bfe..c3929cba63ab 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts @@ -311,7 +311,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts index bac861289331..9ac7c0a85d5a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayCertificateAuthority.ts @@ -386,7 +386,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts index c65ce1a26b6b..6ef8d7ddc5ef 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts @@ -373,7 +373,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts index 9081ec027225..8ab0a3f37f11 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/globalSchema.ts @@ -430,7 +430,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters66, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts index d2e53a84fd5e..46cc1372fb2f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/group.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/group.ts @@ -364,7 +364,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -394,7 +394,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts index 7718b64cc6b3..4fd078452290 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -430,7 +430,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts index 83434e88bcd2..8dd3f606af8b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts @@ -27,11 +27,11 @@ export * from "./apiWiki"; export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; -export * from "./authorizationServer"; export * from "./authorizationProvider"; export * from "./authorization"; export * from "./authorizationLoginLinks"; export * from "./authorizationAccessPolicy"; +export * from "./authorizationServer"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -42,6 +42,7 @@ export * from "./apiManagementOperations"; export * from "./apiManagementServiceSkus"; export * from "./apiManagementService"; export * from "./diagnostic"; +export * from "./documentation"; export * from "./emailTemplate"; export * from "./gateway"; export * from "./gatewayHostnameConfiguration"; @@ -76,6 +77,8 @@ export * from "./productSubscriptions"; export * from "./productPolicy"; export * from "./productWiki"; export * from "./productWikis"; +export * from "./productApiLink"; +export * from "./productGroupLink"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -85,6 +88,9 @@ export * from "./tenantSettings"; export * from "./apiManagementSkus"; export * from "./subscription"; export * from "./tagResource"; +export * from "./tagApiLink"; +export * from "./tagOperationLink"; +export * from "./tagProductLink"; export * from "./tenantAccess"; export * from "./tenantAccessGit"; export * from "./tenantConfiguration"; @@ -93,4 +99,31 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; -export * from "./documentation"; +export * from "./workspace"; +export * from "./workspacePolicy"; +export * from "./workspaceNamedValue"; +export * from "./workspaceGlobalSchema"; +export * from "./workspaceNotification"; +export * from "./workspaceNotificationRecipientUser"; +export * from "./workspaceNotificationRecipientEmail"; +export * from "./workspacePolicyFragment"; +export * from "./workspaceGroup"; +export * from "./workspaceGroupUser"; +export * from "./workspaceSubscription"; +export * from "./workspaceApiVersionSet"; +export * from "./workspaceApi"; +export * from "./workspaceApiRevision"; +export * from "./workspaceApiRelease"; +export * from "./workspaceApiOperation"; +export * from "./workspaceApiOperationPolicy"; +export * from "./workspaceApiPolicy"; +export * from "./workspaceApiSchema"; +export * from "./workspaceProduct"; +export * from "./workspaceProductApiLink"; +export * from "./workspaceProductGroupLink"; +export * from "./workspaceProductPolicy"; +export * from "./workspaceTag"; +export * from "./workspaceTagApiLink"; +export * from "./workspaceTagOperationLink"; +export * from "./workspaceTagProductLink"; +export * from "./workspaceApiExport"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts index 626d49673b05..497561d93822 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/logger.ts @@ -370,7 +370,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -400,7 +400,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts index c15754457817..e761afba4fb3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts @@ -675,7 +675,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -717,7 +717,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts index 6f214aac252c..f669985b5cfa 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts @@ -384,7 +384,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -414,7 +414,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts index d278cdfc55fc..57a2235e070c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policy.ts @@ -6,12 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { Policy } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PolicyContract, + PolicyListByServiceNextOptionalParams, PolicyListByServiceOptionalParams, PolicyListByServiceResponse, PolicyIdName, @@ -19,12 +23,13 @@ import { PolicyGetEntityTagResponse, PolicyGetOptionalParams, PolicyGetResponse, - PolicyContract, PolicyCreateOrUpdateOptionalParams, PolicyCreateOrUpdateResponse, - PolicyDeleteOptionalParams + PolicyDeleteOptionalParams, + PolicyListByServiceNextResponse } from "../models"; +/// /** Class containing Policy operations. */ export class PolicyImpl implements Policy { private readonly client: ApiManagementClient; @@ -43,7 +48,91 @@ export class PolicyImpl implements Policy { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: PolicyListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PolicyListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Lists all the Global Policy definitions of the Api Management service. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams @@ -134,6 +223,25 @@ export class PolicyImpl implements Policy { deleteOperationSpec ); } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -263,3 +371,24 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept, Parameters.ifMatch1], serializer }; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts index b6d25f5fb6b7..4b0904405614 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyFragment.ts @@ -6,6 +6,8 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { PolicyFragment } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -18,20 +20,23 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { + PolicyFragmentContract, + PolicyFragmentListByServiceNextOptionalParams, PolicyFragmentListByServiceOptionalParams, PolicyFragmentListByServiceResponse, PolicyFragmentGetEntityTagOptionalParams, PolicyFragmentGetEntityTagResponse, PolicyFragmentGetOptionalParams, PolicyFragmentGetResponse, - PolicyFragmentContract, PolicyFragmentCreateOrUpdateOptionalParams, PolicyFragmentCreateOrUpdateResponse, PolicyFragmentDeleteOptionalParams, PolicyFragmentListReferencesOptionalParams, - PolicyFragmentListReferencesResponse + PolicyFragmentListReferencesResponse, + PolicyFragmentListByServiceNextResponse } from "../models"; +/// /** Class containing PolicyFragment operations. */ export class PolicyFragmentImpl implements PolicyFragment { private readonly client: ApiManagementClient; @@ -50,7 +55,91 @@ export class PolicyFragmentImpl implements PolicyFragment { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: PolicyFragmentListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PolicyFragmentListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Gets all policy fragments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams @@ -240,6 +329,25 @@ export class PolicyFragmentImpl implements PolicyFragment { listReferencesOperationSpec ); } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PolicyFragmentListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -344,7 +452,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -406,3 +514,24 @@ const listReferencesOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts index 4c13b4be9ea9..f8bcd6e49a1d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalConfig.ts @@ -6,25 +6,30 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { PortalConfig } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PortalConfigContract, + PortalConfigListByServiceNextOptionalParams, PortalConfigListByServiceOptionalParams, PortalConfigListByServiceResponse, PortalConfigGetEntityTagOptionalParams, PortalConfigGetEntityTagResponse, PortalConfigGetOptionalParams, PortalConfigGetResponse, - PortalConfigContract, PortalConfigUpdateOptionalParams, PortalConfigUpdateResponse, PortalConfigCreateOrUpdateOptionalParams, - PortalConfigCreateOrUpdateResponse + PortalConfigCreateOrUpdateResponse, + PortalConfigListByServiceNextResponse } from "../models"; +/// /** Class containing PortalConfig operations. */ export class PortalConfigImpl implements PortalConfig { private readonly client: ApiManagementClient; @@ -43,7 +48,91 @@ export class PortalConfigImpl implements PortalConfig { * @param serviceName The name of the API Management service. * @param options The options parameters. */ - listByService( + public listByService( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: PortalConfigListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: PortalConfigListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Lists the developer portal configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams @@ -153,6 +242,25 @@ export class PortalConfigImpl implements PortalConfig { createOrUpdateOperationSpec ); } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: PortalConfigListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -238,7 +346,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -267,7 +375,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -284,3 +392,24 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PortalConfigCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts index 06c82783efdc..143c775a037d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/portalRevision.ts @@ -538,7 +538,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -576,7 +576,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts index cd7bdd87c103..847a7e0d0f64 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/product.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/product.ts @@ -493,7 +493,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -523,7 +523,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts new file mode 100644 index 000000000000..cb945df3004b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productApiLink.ts @@ -0,0 +1,379 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ProductApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductApiLinkContract, + ProductApiLinkListByProductNextOptionalParams, + ProductApiLinkListByProductOptionalParams, + ProductApiLinkListByProductResponse, + ProductApiLinkGetOptionalParams, + ProductApiLinkGetResponse, + ProductApiLinkCreateOrUpdateOptionalParams, + ProductApiLinkCreateOrUpdateResponse, + ProductApiLinkDeleteOptionalParams, + ProductApiLinkListByProductNextResponse +} from "../models"; + +/// +/** Class containing ProductApiLink operations. */ +export class ProductApiLinkImpl implements ProductApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ProductApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listByProductOperationSpec + ); + } + + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, apiLinkId, options }, + getOperationSpec + ); + } + + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: ProductApiLinkCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + apiLinkId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, apiLinkId, options }, + deleteOperationSpec + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductApiLinkListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + headersMapper: Mappers.ProductApiLinkGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract + }, + 201: { + bodyMapper: Mappers.ProductApiLinkContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters70, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts new file mode 100644 index 000000000000..52d9a807b82e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productGroupLink.ts @@ -0,0 +1,379 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ProductGroupLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductGroupLinkContract, + ProductGroupLinkListByProductNextOptionalParams, + ProductGroupLinkListByProductOptionalParams, + ProductGroupLinkListByProductResponse, + ProductGroupLinkGetOptionalParams, + ProductGroupLinkGetResponse, + ProductGroupLinkCreateOrUpdateOptionalParams, + ProductGroupLinkCreateOrUpdateResponse, + ProductGroupLinkDeleteOptionalParams, + ProductGroupLinkListByProductNextResponse +} from "../models"; + +/// +/** Class containing ProductGroupLink operations. */ +export class ProductGroupLinkImpl implements ProductGroupLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class ProductGroupLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ProductGroupLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, options }, + listByProductOperationSpec + ); + } + + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, groupLinkId, options }, + getOperationSpec + ); + } + + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: ProductGroupLinkCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + groupLinkId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, groupLinkId, options }, + deleteOperationSpec + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductGroupLinkListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + headersMapper: Mappers.ProductGroupLinkGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract + }, + 201: { + bodyMapper: Mappers.ProductGroupLinkContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters71, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts index 265d5f5708b5..3d385b8d5e5b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/productPolicy.ts @@ -6,12 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { ProductPolicy } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClient } from "../apiManagementClient"; import { + PolicyContract, + ProductPolicyListByProductNextOptionalParams, ProductPolicyListByProductOptionalParams, ProductPolicyListByProductResponse, PolicyIdName, @@ -19,12 +23,13 @@ import { ProductPolicyGetEntityTagResponse, ProductPolicyGetOptionalParams, ProductPolicyGetResponse, - PolicyContract, ProductPolicyCreateOrUpdateOptionalParams, ProductPolicyCreateOrUpdateResponse, - ProductPolicyDeleteOptionalParams + ProductPolicyDeleteOptionalParams, + ProductPolicyListByProductNextResponse } from "../models"; +/// /** Class containing ProductPolicy operations. */ export class ProductPolicyImpl implements ProductPolicy { private readonly client: ApiManagementClient; @@ -44,7 +49,100 @@ export class ProductPolicyImpl implements ProductPolicy { * @param productId Product identifier. Must be unique in the current API Management service instance. * @param options The options parameters. */ - listByProduct( + public listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + productId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ProductPolicyListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + productId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + productId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductPolicyListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + productId, + options + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( resourceGroupName: string, serviceName: string, productId: string, @@ -151,6 +249,27 @@ export class ProductPolicyImpl implements ProductPolicy { deleteOperationSpec ); } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + productId: string, + nextLink: string, + options?: ProductPolicyListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, productId, nextLink, options }, + listByProductNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -285,3 +404,25 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept, Parameters.ifMatch1], serializer }; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts index 136caaa802f2..e68452b54f34 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByCounterKeys.ts @@ -117,7 +117,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts index bd18bc65745b..8ad1022d8bce 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/quotaByPeriodKeys.ts @@ -134,7 +134,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts index 81c16f759dd7..82f194ce0532 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signInSettings.ts @@ -167,7 +167,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -195,7 +195,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts index fa8160735c81..1cc4b0428049 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/signUpSettings.ts @@ -167,7 +167,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters66, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -195,7 +195,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters66, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts index 040781d07df3..c55e310e32a3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts @@ -425,7 +425,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters67, + requestBody: Parameters.parameters74, queryParameters: [ Parameters.apiVersion, Parameters.notify, @@ -459,7 +459,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters68, + requestBody: Parameters.parameters75, queryParameters: [ Parameters.apiVersion, Parameters.notify, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts new file mode 100644 index 000000000000..35b284b602dd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagApiLink.ts @@ -0,0 +1,372 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { TagApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagApiLinkContract, + TagApiLinkListByProductNextOptionalParams, + TagApiLinkListByProductOptionalParams, + TagApiLinkListByProductResponse, + TagApiLinkGetOptionalParams, + TagApiLinkGetResponse, + TagApiLinkCreateOrUpdateOptionalParams, + TagApiLinkCreateOrUpdateResponse, + TagApiLinkDeleteOptionalParams, + TagApiLinkListByProductNextResponse +} from "../models"; + +/// +/** Class containing TagApiLink operations. */ +export class TagApiLinkImpl implements TagApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: TagApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec + ); + } + + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, options }, + getOperationSpec + ); + } + + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: TagApiLinkCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, apiLinkId, options }, + deleteOperationSpec + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagApiLinkListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + headersMapper: Mappers.TagApiLinkGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract + }, + 201: { + bodyMapper: Mappers.TagApiLinkContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters76, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts new file mode 100644 index 000000000000..27f77dd5704d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagOperationLink.ts @@ -0,0 +1,379 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { TagOperationLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagOperationLinkContract, + TagOperationLinkListByProductNextOptionalParams, + TagOperationLinkListByProductOptionalParams, + TagOperationLinkListByProductResponse, + TagOperationLinkGetOptionalParams, + TagOperationLinkGetResponse, + TagOperationLinkCreateOrUpdateOptionalParams, + TagOperationLinkCreateOrUpdateResponse, + TagOperationLinkDeleteOptionalParams, + TagOperationLinkListByProductNextResponse +} from "../models"; + +/// +/** Class containing TagOperationLink operations. */ +export class TagOperationLinkImpl implements TagOperationLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagOperationLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: TagOperationLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec + ); + } + + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, operationLinkId, options }, + getOperationSpec + ); + } + + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: TagOperationLinkCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + tagId, + operationLinkId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, operationLinkId, options }, + deleteOperationSpec + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagOperationLinkListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + headersMapper: Mappers.TagOperationLinkGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract + }, + 201: { + bodyMapper: Mappers.TagOperationLinkContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters77, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts new file mode 100644 index 000000000000..aab2f102aedc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tagProductLink.ts @@ -0,0 +1,379 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { TagProductLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagProductLinkContract, + TagProductLinkListByProductNextOptionalParams, + TagProductLinkListByProductOptionalParams, + TagProductLinkListByProductResponse, + TagProductLinkGetOptionalParams, + TagProductLinkGetResponse, + TagProductLinkCreateOrUpdateOptionalParams, + TagProductLinkCreateOrUpdateResponse, + TagProductLinkDeleteOptionalParams, + TagProductLinkListByProductNextResponse +} from "../models"; + +/// +/** Class containing TagProductLink operations. */ +export class TagProductLinkImpl implements TagProductLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class TagProductLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + tagId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: TagProductLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + tagId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + tagId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + tagId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, options }, + listByProductOperationSpec + ); + } + + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, productLinkId, options }, + getOperationSpec + ); + } + + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: TagProductLinkCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + tagId, + productLinkId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, productLinkId, options }, + deleteOperationSpec + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + tagId: string, + nextLink: string, + options?: TagProductLinkListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, tagId, nextLink, options }, + listByProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + headersMapper: Mappers.TagProductLinkGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract + }, + 201: { + bodyMapper: Mappers.TagProductLinkContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters78, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts index ab0c13bb24d9..3909860d0fa6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts @@ -411,7 +411,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters69, + requestBody: Parameters.parameters79, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -441,7 +441,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters80, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts index 15867ab82145..975d9ddf7e8f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantConfiguration.ts @@ -414,7 +414,7 @@ const deployOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters81, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -448,7 +448,7 @@ const saveOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters82, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -482,7 +482,7 @@ const validateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters81, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts index 8aa6945fedab..d3bf4c162b81 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/user.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/user.ts @@ -411,7 +411,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters83, queryParameters: [Parameters.apiVersion, Parameters.notify], urlParameters: [ Parameters.$host, @@ -441,7 +441,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters74, + requestBody: Parameters.parameters84, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -520,7 +520,7 @@ const getSharedAccessTokenOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters85, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts new file mode 100644 index 000000000000..e2e8ba836630 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspace.ts @@ -0,0 +1,466 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Workspace } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WorkspaceContract, + WorkspaceListByServiceNextOptionalParams, + WorkspaceListByServiceOptionalParams, + WorkspaceListByServiceResponse, + WorkspaceGetEntityTagOptionalParams, + WorkspaceGetEntityTagResponse, + WorkspaceGetOptionalParams, + WorkspaceGetResponse, + WorkspaceCreateOrUpdateOptionalParams, + WorkspaceCreateOrUpdateResponse, + WorkspaceUpdateOptionalParams, + WorkspaceUpdateResponse, + WorkspaceDeleteOptionalParams, + WorkspaceListByServiceNextResponse +} from "../models"; + +/// +/** Class containing Workspace operations. */ +export class WorkspaceImpl implements Workspace { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class Workspace class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + options + )) { + yield* page; + } + } + + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + getOperationSpec + ); + } + + /** + * Creates a new workspace or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + parameters: WorkspaceContract, + options?: WorkspaceCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Workspace Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + parameters: WorkspaceContract, + options?: WorkspaceUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + options?: WorkspaceDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + nextLink: string, + options?: WorkspaceListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters86, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceContract, + headersMapper: Mappers.WorkspaceUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters86, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts new file mode 100644 index 000000000000..63fd898e979b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApi.ts @@ -0,0 +1,617 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApi } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ApiContract, + WorkspaceApiListByServiceNextOptionalParams, + WorkspaceApiListByServiceOptionalParams, + WorkspaceApiListByServiceResponse, + WorkspaceApiGetEntityTagOptionalParams, + WorkspaceApiGetEntityTagResponse, + WorkspaceApiGetOptionalParams, + WorkspaceApiGetResponse, + ApiCreateOrUpdateParameter, + WorkspaceApiCreateOrUpdateOptionalParams, + WorkspaceApiCreateOrUpdateResponse, + ApiUpdateContract, + WorkspaceApiUpdateOptionalParams, + WorkspaceApiUpdateResponse, + WorkspaceApiDeleteOptionalParams, + WorkspaceApiListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceApi operations. */ +export class WorkspaceApiImpl implements WorkspaceApi { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApi class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceApiListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + getOperationSpec + ); + } + + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + apiId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + WorkspaceApiCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + apiId, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Update Contract parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + parameters: ApiUpdateContract, + options?: WorkspaceApiUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + options?: WorkspaceApiDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceApiListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.expandApiVersionSet, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders + }, + 202: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders + }, + 204: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.WorkspaceApiUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.deleteRevisions], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts new file mode 100644 index 000000000000..805a4044d77c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiExport.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceApiExport } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ExportFormat, + ExportApi, + WorkspaceApiExportGetOptionalParams, + WorkspaceApiExportGetResponse +} from "../models"; + +/** Class containing WorkspaceApiExport operations. */ +export class WorkspaceApiExportImpl implements WorkspaceApiExport { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiExport class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the details of the API specified by its identifier in the format specified to the Storage Blob + * with SAS Key valid for 5 minutes. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 + * minutes. + * @param exportParam Query parameter required to export the API details. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + format: ExportFormat, + exportParam: ExportApi, + options?: WorkspaceApiExportGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + format, + exportParam, + options + }, + getOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiExportResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.format1, + Parameters.exportParam + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts new file mode 100644 index 000000000000..e5e9ddf216a4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperation.ts @@ -0,0 +1,576 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiOperation } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + OperationContract, + WorkspaceApiOperationListByApiNextOptionalParams, + WorkspaceApiOperationListByApiOptionalParams, + WorkspaceApiOperationListByApiResponse, + WorkspaceApiOperationGetEntityTagOptionalParams, + WorkspaceApiOperationGetEntityTagResponse, + WorkspaceApiOperationGetOptionalParams, + WorkspaceApiOperationGetResponse, + WorkspaceApiOperationCreateOrUpdateOptionalParams, + WorkspaceApiOperationCreateOrUpdateResponse, + OperationUpdateContract, + WorkspaceApiOperationUpdateOptionalParams, + WorkspaceApiOperationUpdateResponse, + WorkspaceApiOperationDeleteOptionalParams, + WorkspaceApiOperationListByApiNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceApiOperation operations. */ +export class WorkspaceApiOperationImpl implements WorkspaceApiOperation { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiOperation class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings + ); + } + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceApiOperationListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the API operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options + }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the API Operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options + }, + getOperationSpec + ); + } + + /** + * Creates a new operation in the API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + parameters: OperationContract, + options?: WorkspaceApiOperationCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the operation in the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Operation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + parameters: OperationUpdateContract, + options?: WorkspaceApiOperationUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified operation in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + options?: WorkspaceApiOperationDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiOperationListByApiNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiOperationGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.WorkspaceApiOperationUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts new file mode 100644 index 000000000000..a68a898ca79c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiOperationPolicy.ts @@ -0,0 +1,546 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiOperationPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspaceApiOperationPolicyListByOperationNextOptionalParams, + WorkspaceApiOperationPolicyListByOperationOptionalParams, + WorkspaceApiOperationPolicyListByOperationResponse, + PolicyIdName, + WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + WorkspaceApiOperationPolicyGetEntityTagResponse, + WorkspaceApiOperationPolicyGetOptionalParams, + WorkspaceApiOperationPolicyGetResponse, + WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + WorkspaceApiOperationPolicyCreateOrUpdateResponse, + WorkspaceApiOperationPolicyDeleteOptionalParams, + WorkspaceApiOperationPolicyListByOperationNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceApiOperationPolicy operations. */ +export class WorkspaceApiOperationPolicyImpl + implements WorkspaceApiOperationPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiOperationPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + public listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByOperationPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByOperationPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options, + settings + ); + } + }; + } + + private async *listByOperationPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceApiOperationPolicyListByOperationResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByOperation( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByOperationNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByOperationPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByOperationPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options + )) { + yield* page; + } + } + + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + private _listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + options + }, + listByOperationOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the API operation policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + options + }, + getEntityTagOperationSpec + ); + } + + /** + * Get the policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates policy configuration for the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the policy configuration at the Api Operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiOperationPolicyDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + policyId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByOperationNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param nextLink The nextLink from the previous successful call to the ListByOperation method. + * @param options The options parameters. + */ + private _listByOperationNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + nextLink: string, + options?: WorkspaceApiOperationPolicyListByOperationNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + operationId, + nextLink, + options + }, + listByOperationNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByOperationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiOperationPolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiOperationPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.operationId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByOperationNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.nextLink, + Parameters.operationId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts new file mode 100644 index 000000000000..acfef6cc1982 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiPolicy.ts @@ -0,0 +1,478 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspaceApiPolicyListByApiNextOptionalParams, + WorkspaceApiPolicyListByApiOptionalParams, + WorkspaceApiPolicyListByApiResponse, + PolicyIdName, + WorkspaceApiPolicyGetEntityTagOptionalParams, + WorkspaceApiPolicyGetEntityTagResponse, + WorkspaceApiPolicyGetOptionalParams, + WorkspaceApiPolicyGetResponse, + WorkspaceApiPolicyCreateOrUpdateOptionalParams, + WorkspaceApiPolicyCreateOrUpdateResponse, + WorkspaceApiPolicyDeleteOptionalParams, + WorkspaceApiPolicyListByApiNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceApiPolicy operations. */ +export class WorkspaceApiPolicyImpl implements WorkspaceApiPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings + ); + } + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceApiPolicyListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the API policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, policyId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, policyId, options }, + getOperationSpec + ); + } + + /** + * Creates or updates policy configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + policyId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the policy configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiPolicyDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + policyId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiPolicyListByApiNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiPolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceApiPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts new file mode 100644 index 000000000000..ae63e101bac3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRelease.ts @@ -0,0 +1,570 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiRelease } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiReleaseContract, + WorkspaceApiReleaseListByServiceNextOptionalParams, + WorkspaceApiReleaseListByServiceOptionalParams, + WorkspaceApiReleaseListByServiceResponse, + WorkspaceApiReleaseGetEntityTagOptionalParams, + WorkspaceApiReleaseGetEntityTagResponse, + WorkspaceApiReleaseGetOptionalParams, + WorkspaceApiReleaseGetResponse, + WorkspaceApiReleaseCreateOrUpdateOptionalParams, + WorkspaceApiReleaseCreateOrUpdateResponse, + WorkspaceApiReleaseUpdateOptionalParams, + WorkspaceApiReleaseUpdateResponse, + WorkspaceApiReleaseDeleteOptionalParams, + WorkspaceApiReleaseListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceApiRelease operations. */ +export class WorkspaceApiReleaseImpl implements WorkspaceApiRelease { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiRelease class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceApiReleaseListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + )) { + yield* page; + } + } + + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByServiceOperationSpec + ); + } + + /** + * Returns the etag of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + options + }, + getEntityTagOperationSpec + ); + } + + /** + * Returns the details of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + options + }, + getOperationSpec + ); + } + + /** + * Creates a new Release for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the release of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Release Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified release in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + options?: WorkspaceApiReleaseDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + releaseId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiReleaseListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiReleaseGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.WorkspaceApiReleaseUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/releases/{releaseId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.releaseId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts new file mode 100644 index 000000000000..ad941036131f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiRevision.ts @@ -0,0 +1,240 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiRevision } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiRevisionContract, + WorkspaceApiRevisionListByServiceNextOptionalParams, + WorkspaceApiRevisionListByServiceOptionalParams, + WorkspaceApiRevisionListByServiceResponse, + WorkspaceApiRevisionListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceApiRevision operations. */ +export class WorkspaceApiRevisionImpl implements WorkspaceApiRevision { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiRevision class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceApiRevisionListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + )) { + yield* page; + } + } + + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByServiceOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiRevisionListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/revisions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiRevisionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId1, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiRevisionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.apiId1, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts new file mode 100644 index 000000000000..99281e64b474 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiSchema.ts @@ -0,0 +1,584 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiSchema } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + SchemaContract, + WorkspaceApiSchemaListByApiNextOptionalParams, + WorkspaceApiSchemaListByApiOptionalParams, + WorkspaceApiSchemaListByApiResponse, + WorkspaceApiSchemaGetEntityTagOptionalParams, + WorkspaceApiSchemaGetEntityTagResponse, + WorkspaceApiSchemaGetOptionalParams, + WorkspaceApiSchemaGetResponse, + WorkspaceApiSchemaCreateOrUpdateOptionalParams, + WorkspaceApiSchemaCreateOrUpdateResponse, + WorkspaceApiSchemaDeleteOptionalParams, + WorkspaceApiSchemaListByApiNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceApiSchema operations. */ +export class WorkspaceApiSchemaImpl implements WorkspaceApiSchema { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiSchema class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options, + settings + ); + } + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceApiSchemaListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + apiId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + apiId, + options + )) { + yield* page; + } + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, options }, + listByApiOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, schemaId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, schemaId, options }, + getOperationSpec + ); + } + + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiSchemaCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + WorkspaceApiSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes the schema configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceApiSchemaDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + apiId, + schemaId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + nextLink: string, + options?: WorkspaceApiSchemaListByApiNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, apiId, nextLink, options }, + listByApiNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiSchemaGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders + }, + 202: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders + }, + 204: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.WorkspaceApiSchemaCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters9, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apis/{apiId}/schemas/{schemaId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.force], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.schemaId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.apiId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts new file mode 100644 index 000000000000..7edbdf45af53 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceApiVersionSet.ts @@ -0,0 +1,520 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceApiVersionSet } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ApiVersionSetContract, + WorkspaceApiVersionSetListByServiceNextOptionalParams, + WorkspaceApiVersionSetListByServiceOptionalParams, + WorkspaceApiVersionSetListByServiceResponse, + WorkspaceApiVersionSetGetEntityTagOptionalParams, + WorkspaceApiVersionSetGetEntityTagResponse, + WorkspaceApiVersionSetGetOptionalParams, + WorkspaceApiVersionSetGetResponse, + WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + WorkspaceApiVersionSetCreateOrUpdateResponse, + ApiVersionSetUpdateParameters, + WorkspaceApiVersionSetUpdateOptionalParams, + WorkspaceApiVersionSetUpdateResponse, + WorkspaceApiVersionSetDeleteOptionalParams, + WorkspaceApiVersionSetListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceApiVersionSet operations. */ +export class WorkspaceApiVersionSetImpl implements WorkspaceApiVersionSet { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceApiVersionSet class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceApiVersionSetListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, versionSetId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, versionSetId, options }, + getOperationSpec + ); + } + + /** + * Creates or Updates a Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + parameters: ApiVersionSetContract, + options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the Api VersionSet specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + parameters: ApiVersionSetUpdateParameters, + options?: WorkspaceApiVersionSetUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes specific Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + options?: WorkspaceApiVersionSetDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + versionSetId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceApiVersionSetListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceApiVersionSetGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters18, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.WorkspaceApiVersionSetUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters19, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/apiVersionSets/{versionSetId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.versionSetId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts new file mode 100644 index 000000000000..e5d0494fb682 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGlobalSchema.ts @@ -0,0 +1,546 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceGlobalSchema } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + GlobalSchemaContract, + WorkspaceGlobalSchemaListByServiceNextOptionalParams, + WorkspaceGlobalSchemaListByServiceOptionalParams, + WorkspaceGlobalSchemaListByServiceResponse, + WorkspaceGlobalSchemaGetEntityTagOptionalParams, + WorkspaceGlobalSchemaGetEntityTagResponse, + WorkspaceGlobalSchemaGetOptionalParams, + WorkspaceGlobalSchemaGetResponse, + WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + WorkspaceGlobalSchemaCreateOrUpdateResponse, + WorkspaceGlobalSchemaDeleteOptionalParams, + WorkspaceGlobalSchemaListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceGlobalSchema operations. */ +export class WorkspaceGlobalSchemaImpl implements WorkspaceGlobalSchema { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGlobalSchema class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceGlobalSchemaListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, schemaId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, schemaId, options }, + getOperationSpec + ); + } + + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceGlobalSchemaCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + schemaId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + WorkspaceGlobalSchemaCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + schemaId, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specific Schema. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceGlobalSchemaDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + schemaId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceGlobalSchemaListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGlobalSchemaGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders + }, + 202: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders + }, + 204: { + bodyMapper: Mappers.GlobalSchemaContract, + headersMapper: Mappers.WorkspaceGlobalSchemaCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters73, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/schemas/{schemaId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.schemaId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GlobalSchemaCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts new file mode 100644 index 000000000000..2a4b328a67b4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroup.ts @@ -0,0 +1,516 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceGroup } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + GroupContract, + WorkspaceGroupListByServiceNextOptionalParams, + WorkspaceGroupListByServiceOptionalParams, + WorkspaceGroupListByServiceResponse, + WorkspaceGroupGetEntityTagOptionalParams, + WorkspaceGroupGetEntityTagResponse, + WorkspaceGroupGetOptionalParams, + WorkspaceGroupGetResponse, + GroupCreateParameters, + WorkspaceGroupCreateOrUpdateOptionalParams, + WorkspaceGroupCreateOrUpdateResponse, + GroupUpdateParameters, + WorkspaceGroupUpdateOptionalParams, + WorkspaceGroupUpdateResponse, + WorkspaceGroupDeleteOptionalParams, + WorkspaceGroupListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceGroup operations. */ +export class WorkspaceGroupImpl implements WorkspaceGroup { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGroup class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceGroupListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + getOperationSpec + ); + } + + /** + * Creates or Updates a group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + parameters: GroupCreateParameters, + options?: WorkspaceGroupCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + parameters: GroupUpdateParameters, + options?: WorkspaceGroupUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes specific group of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + options?: WorkspaceGroupDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceGroupListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceGroupGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters52, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.WorkspaceGroupUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters53, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GroupCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts new file mode 100644 index 000000000000..d82597e3ccc4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceGroupUser.ts @@ -0,0 +1,400 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceGroupUser } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + UserContract, + WorkspaceGroupUserListNextOptionalParams, + WorkspaceGroupUserListOptionalParams, + WorkspaceGroupUserListResponse, + WorkspaceGroupUserCheckEntityExistsOptionalParams, + WorkspaceGroupUserCheckEntityExistsResponse, + WorkspaceGroupUserCreateOptionalParams, + WorkspaceGroupUserCreateResponse, + WorkspaceGroupUserDeleteOptionalParams, + WorkspaceGroupUserListNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceGroupUser operations. */ +export class WorkspaceGroupUserImpl implements WorkspaceGroupUser { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceGroupUser class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceGroupUserListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + workspaceId, + groupId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + groupId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, options }, + listOperationSpec + ); + } + + /** + * Checks that user entity specified by identifier is associated with the group entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCheckEntityExistsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + checkEntityExistsOperationSpec + ); + } + + /** + * Add existing user to existing group + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCreateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + createOperationSpec + ); + } + + /** + * Remove existing user from existing group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, groupId, userId, options }, + deleteOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + nextLink: string, + options?: WorkspaceGroupUserListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + groupId, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.UserCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.UserContract + }, + 201: { + bodyMapper: Mappers.UserContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/groups/{groupId}/users/{userId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.groupId, + Parameters.userId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.UserCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.groupId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts new file mode 100644 index 000000000000..db344ee64ad7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNamedValue.ts @@ -0,0 +1,912 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceNamedValue } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NamedValueContract, + WorkspaceNamedValueListByServiceNextOptionalParams, + WorkspaceNamedValueListByServiceOptionalParams, + WorkspaceNamedValueListByServiceResponse, + WorkspaceNamedValueGetEntityTagOptionalParams, + WorkspaceNamedValueGetEntityTagResponse, + WorkspaceNamedValueGetOptionalParams, + WorkspaceNamedValueGetResponse, + NamedValueCreateContract, + WorkspaceNamedValueCreateOrUpdateOptionalParams, + WorkspaceNamedValueCreateOrUpdateResponse, + NamedValueUpdateParameters, + WorkspaceNamedValueUpdateOptionalParams, + WorkspaceNamedValueUpdateResponse, + WorkspaceNamedValueDeleteOptionalParams, + WorkspaceNamedValueListValueOptionalParams, + WorkspaceNamedValueListValueResponse, + WorkspaceNamedValueRefreshSecretOptionalParams, + WorkspaceNamedValueRefreshSecretResponse, + WorkspaceNamedValueListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceNamedValue operations. */ +export class WorkspaceNamedValueImpl implements WorkspaceNamedValue { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNamedValue class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceNamedValueListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + getOperationSpec + ); + } + + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + WorkspaceNamedValueCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + parameters, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + WorkspaceNamedValueUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specific named value from the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + options?: WorkspaceNamedValueDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * Gets the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + listValue( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueListValueOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, namedValueId, options }, + listValueOperationSpec + ); + } + + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + async beginRefreshSecret( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueRefreshSecretResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + options + }, + spec: refreshSecretOperationSpec + }); + const poller = await createHttpPoller< + WorkspaceNamedValueRefreshSecretResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + async beginRefreshSecretAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams + ): Promise { + const poller = await this.beginRefreshSecret( + resourceGroupName, + serviceName, + workspaceId, + namedValueId, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceNamedValueListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion, + Parameters.isKeyVaultRefreshFailed1 + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceNamedValueGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters58, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters59, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listValueOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}/listValue", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NamedValueSecretContract, + headersMapper: Mappers.WorkspaceNamedValueListValueHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const refreshSecretOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/namedValues/{namedValueId}/refreshSecret", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders + }, + 202: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders + }, + 204: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.WorkspaceNamedValueRefreshSecretHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.namedValueId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NamedValueCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts new file mode 100644 index 000000000000..40b959f6e2cb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotification.ts @@ -0,0 +1,329 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceNotification } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationContract, + WorkspaceNotificationListByServiceNextOptionalParams, + WorkspaceNotificationListByServiceOptionalParams, + WorkspaceNotificationListByServiceResponse, + NotificationName, + WorkspaceNotificationGetOptionalParams, + WorkspaceNotificationGetResponse, + WorkspaceNotificationCreateOrUpdateOptionalParams, + WorkspaceNotificationCreateOrUpdateResponse, + WorkspaceNotificationListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceNotification operations. */ +export class WorkspaceNotificationImpl implements WorkspaceNotification { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotification class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceNotificationListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the details of the Notification specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options + }, + getOperationSpec + ); + } + + /** + * Create or Update API Management publisher notification for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceNotificationListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NotificationContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NotificationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts new file mode 100644 index 000000000000..3324bbb95c05 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientEmail.ts @@ -0,0 +1,261 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceNotificationRecipientEmail } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationName, + WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + WorkspaceNotificationRecipientEmailListByNotificationResponse, + WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientEmailCheckEntityExistsResponse, + WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientEmailCreateOrUpdateResponse, + WorkspaceNotificationRecipientEmailDeleteOptionalParams +} from "../models"; + +/** Class containing WorkspaceNotificationRecipientEmail operations. */ +export class WorkspaceNotificationRecipientEmailImpl + implements WorkspaceNotificationRecipientEmail { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotificationRecipientEmail class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the list of the Notification Recipient Emails subscribed to a notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options + }, + listByNotificationOperationSpec + ); + } + + /** + * Determine if Notification Recipient Email subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options + }, + checkEntityExistsOperationSpec + ); + } + + /** + * Adds the Email address to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Removes the email from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + email, + options + }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByNotificationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RecipientEmailCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RecipientEmailContract + }, + 201: { + bodyMapper: Mappers.RecipientEmailContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientEmails/{email}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.email, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts new file mode 100644 index 000000000000..493ee715d404 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceNotificationRecipientUser.ts @@ -0,0 +1,261 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceNotificationRecipientUser } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + NotificationName, + WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + WorkspaceNotificationRecipientUserListByNotificationResponse, + WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientUserCheckEntityExistsResponse, + WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientUserCreateOrUpdateResponse, + WorkspaceNotificationRecipientUserDeleteOptionalParams +} from "../models"; + +/** Class containing WorkspaceNotificationRecipientUser operations. */ +export class WorkspaceNotificationRecipientUserImpl + implements WorkspaceNotificationRecipientUser { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceNotificationRecipientUser class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets the list of the Notification Recipient User subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + options + }, + listByNotificationOperationSpec + ); + } + + /** + * Determine if the Notification Recipient User is subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options + }, + checkEntityExistsOperationSpec + ); + } + + /** + * Adds the API Management User to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Removes the API Management user from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + notificationName, + userId, + options + }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByNotificationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RecipientUserCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.notificationName, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const checkEntityExistsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "HEAD", + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.RecipientUserContract + }, + 201: { + bodyMapper: Mappers.RecipientUserContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/notifications/{notificationName}/recipientUsers/{userId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.userId, + Parameters.notificationName, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts new file mode 100644 index 000000000000..b243012ae8cc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicy.ts @@ -0,0 +1,442 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspacePolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + PolicyContract, + WorkspacePolicyListByApiNextOptionalParams, + WorkspacePolicyListByApiOptionalParams, + WorkspacePolicyListByApiResponse, + PolicyIdName, + WorkspacePolicyGetEntityTagOptionalParams, + WorkspacePolicyGetEntityTagResponse, + WorkspacePolicyGetOptionalParams, + WorkspacePolicyGetResponse, + WorkspacePolicyCreateOrUpdateOptionalParams, + WorkspacePolicyCreateOrUpdateResponse, + WorkspacePolicyDeleteOptionalParams, + WorkspacePolicyListByApiNextResponse +} from "../models"; + +/// +/** Class containing WorkspacePolicy operations. */ +export class WorkspacePolicyImpl implements WorkspacePolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspacePolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByApiPagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listByApiPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspacePolicyListByApiResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByApi( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByApiNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByApiPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByApiPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByApiOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the workspace policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, policyId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, policyId, options }, + getOperationSpec + ); + } + + /** + * Creates or updates policy configuration for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspacePolicyCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + policyId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the policy configuration at the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspacePolicyDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + policyId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByApiNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByApi method. + * @param options The options parameters. + */ + private _listByApiNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspacePolicyListByApiNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByApiNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByApiOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspacePolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspacePolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByApiNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts new file mode 100644 index 000000000000..7a0d6ca83b29 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspacePolicyFragment.ts @@ -0,0 +1,586 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspacePolicyFragment } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + PolicyFragmentContract, + WorkspacePolicyFragmentListByServiceNextOptionalParams, + WorkspacePolicyFragmentListByServiceOptionalParams, + WorkspacePolicyFragmentListByServiceResponse, + WorkspacePolicyFragmentGetEntityTagOptionalParams, + WorkspacePolicyFragmentGetEntityTagResponse, + WorkspacePolicyFragmentGetOptionalParams, + WorkspacePolicyFragmentGetResponse, + WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + WorkspacePolicyFragmentCreateOrUpdateResponse, + WorkspacePolicyFragmentDeleteOptionalParams, + WorkspacePolicyFragmentListReferencesOptionalParams, + WorkspacePolicyFragmentListReferencesResponse, + WorkspacePolicyFragmentListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspacePolicyFragment operations. */ +export class WorkspacePolicyFragmentImpl implements WorkspacePolicyFragment { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspacePolicyFragment class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspacePolicyFragmentListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspacePolicyFragmentCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + serviceName, + workspaceId, + id, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + WorkspacePolicyFragmentCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + serviceName, + workspaceId, + id, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + ifMatch: string, + options?: WorkspacePolicyFragmentDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentListReferencesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, id, options }, + listReferencesOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspacePolicyFragmentListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion, + Parameters.orderby + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspacePolicyFragmentGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format2], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders + }, + 202: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders + }, + 204: { + bodyMapper: Mappers.PolicyFragmentContract, + headersMapper: Mappers.WorkspacePolicyFragmentCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters62, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listReferencesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}/listReferences", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ResourceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.top, Parameters.skip, Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.id, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyFragmentCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts new file mode 100644 index 000000000000..784cf4e81528 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProduct.ts @@ -0,0 +1,517 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceProduct } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductContract, + WorkspaceProductListByServiceNextOptionalParams, + WorkspaceProductListByServiceOptionalParams, + WorkspaceProductListByServiceResponse, + WorkspaceProductGetEntityTagOptionalParams, + WorkspaceProductGetEntityTagResponse, + WorkspaceProductGetOptionalParams, + WorkspaceProductGetResponse, + WorkspaceProductCreateOrUpdateOptionalParams, + WorkspaceProductCreateOrUpdateResponse, + ProductUpdateParameters, + WorkspaceProductUpdateOptionalParams, + WorkspaceProductUpdateResponse, + WorkspaceProductDeleteOptionalParams, + WorkspaceProductListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceProduct operations. */ +export class WorkspaceProductImpl implements WorkspaceProduct { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProduct class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceProductListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the details of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + getOperationSpec + ); + } + + /** + * Creates or Updates a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + parameters: ProductContract, + options?: WorkspaceProductCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Update existing product details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + parameters: ProductUpdateParameters, + options?: WorkspaceProductUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Delete product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + options?: WorkspaceProductDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + ifMatch, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceProductListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.apiVersion, + Parameters.expandGroups + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceProductGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters68, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.WorkspaceProductUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters69, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.deleteSubscriptions], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts new file mode 100644 index 000000000000..aae4634cc3fa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductApiLink.ts @@ -0,0 +1,431 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceProductApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductApiLinkContract, + WorkspaceProductApiLinkListByProductNextOptionalParams, + WorkspaceProductApiLinkListByProductOptionalParams, + WorkspaceProductApiLinkListByProductResponse, + WorkspaceProductApiLinkGetOptionalParams, + WorkspaceProductApiLinkGetResponse, + WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + WorkspaceProductApiLinkCreateOrUpdateResponse, + WorkspaceProductApiLinkDeleteOptionalParams, + WorkspaceProductApiLinkListByProductNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceProductApiLink operations. */ +export class WorkspaceProductApiLinkImpl implements WorkspaceProductApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + productId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceProductApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + productId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + productId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec + ); + } + + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + options + }, + getOperationSpec + ); + } + + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + apiLinkId, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + nextLink: string, + options?: WorkspaceProductApiLinkListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + nextLink, + options + }, + listByProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract, + headersMapper: Mappers.WorkspaceProductApiLinkGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkContract + }, + 201: { + bodyMapper: Mappers.ProductApiLinkContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters70, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.apiLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductApiLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts new file mode 100644 index 000000000000..647b30f089e9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductGroupLink.ts @@ -0,0 +1,432 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceProductGroupLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + ProductGroupLinkContract, + WorkspaceProductGroupLinkListByProductNextOptionalParams, + WorkspaceProductGroupLinkListByProductOptionalParams, + WorkspaceProductGroupLinkListByProductResponse, + WorkspaceProductGroupLinkGetOptionalParams, + WorkspaceProductGroupLinkGetResponse, + WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + WorkspaceProductGroupLinkCreateOrUpdateResponse, + WorkspaceProductGroupLinkDeleteOptionalParams, + WorkspaceProductGroupLinkListByProductNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceProductGroupLink operations. */ +export class WorkspaceProductGroupLinkImpl + implements WorkspaceProductGroupLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductGroupLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + productId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceProductGroupLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + productId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + productId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + productId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec + ); + } + + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + options + }, + getOperationSpec + ); + } + + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + groupLinkId, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + nextLink: string, + options?: WorkspaceProductGroupLinkListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + nextLink, + options + }, + listByProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract, + headersMapper: Mappers.WorkspaceProductGroupLinkGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkContract + }, + 201: { + bodyMapper: Mappers.ProductGroupLinkContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters71, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/groupLinks/{groupLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.groupLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ProductGroupLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts new file mode 100644 index 000000000000..ecff696905d0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceProductPolicy.ts @@ -0,0 +1,330 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { WorkspaceProductPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + WorkspaceProductPolicyListByProductOptionalParams, + WorkspaceProductPolicyListByProductResponse, + PolicyIdName, + WorkspaceProductPolicyGetEntityTagOptionalParams, + WorkspaceProductPolicyGetEntityTagResponse, + WorkspaceProductPolicyGetOptionalParams, + WorkspaceProductPolicyGetResponse, + PolicyContract, + WorkspaceProductPolicyCreateOrUpdateOptionalParams, + WorkspaceProductPolicyCreateOrUpdateResponse, + WorkspaceProductPolicyDeleteOptionalParams +} from "../models"; + +/** Class containing WorkspaceProductPolicy operations. */ +export class WorkspaceProductPolicyImpl implements WorkspaceProductPolicy { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceProductPolicy class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductPolicyListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, productId, options }, + listByProductOperationSpec + ); + } + + /** + * Get the ETag of the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + options + }, + getEntityTagOperationSpec + ); + } + + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates policy configuration for the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the policy configuration at the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceProductPolicyDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + productId, + policyId, + ifMatch, + options + }, + deleteOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceProductPolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.format], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.WorkspaceProductPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/products/{productId}/policies/{policyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.policyId, + Parameters.productId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts new file mode 100644 index 000000000000..7279b87b357d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceSubscription.ts @@ -0,0 +1,659 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceSubscription } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + SubscriptionContract, + WorkspaceSubscriptionListNextOptionalParams, + WorkspaceSubscriptionListOptionalParams, + WorkspaceSubscriptionListResponse, + WorkspaceSubscriptionGetEntityTagOptionalParams, + WorkspaceSubscriptionGetEntityTagResponse, + WorkspaceSubscriptionGetOptionalParams, + WorkspaceSubscriptionGetResponse, + SubscriptionCreateParameters, + WorkspaceSubscriptionCreateOrUpdateOptionalParams, + WorkspaceSubscriptionCreateOrUpdateResponse, + SubscriptionUpdateParameters, + WorkspaceSubscriptionUpdateOptionalParams, + WorkspaceSubscriptionUpdateResponse, + WorkspaceSubscriptionDeleteOptionalParams, + WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + WorkspaceSubscriptionListSecretsOptionalParams, + WorkspaceSubscriptionListSecretsResponse, + WorkspaceSubscriptionListNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceSubscription operations. */ +export class WorkspaceSubscriptionImpl implements WorkspaceSubscription { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceSubscription class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceSubscriptionListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listOperationSpec + ); + } + + /** + * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetEntityTagOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + getEntityTagOperationSpec + ); + } + + /** + * Gets the specified Subscription entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + getOperationSpec + ); + } + + /** + * Creates or updates the subscription of specified user to the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + parameters: SubscriptionCreateParameters, + options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, parameters, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of a subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + parameters: SubscriptionUpdateParameters, + options?: WorkspaceSubscriptionUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + sid, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + options?: WorkspaceSubscriptionDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * Regenerates primary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regeneratePrimaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + regeneratePrimaryKeyOperationSpec + ); + } + + /** + * Regenerates secondary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regenerateSecondaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + regenerateSecondaryKeyOperationSpec + ); + } + + /** + * Gets the specified Subscription keys. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionListSecretsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, sid, options }, + listSecretsOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceSubscriptionListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityTagOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceSubscriptionGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters74, + queryParameters: [ + Parameters.apiVersion, + Parameters.notify, + Parameters.appType + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.WorkspaceSubscriptionUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters75, + queryParameters: [ + Parameters.apiVersion, + Parameters.notify, + Parameters.appType + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const regeneratePrimaryKeyOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/regeneratePrimaryKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const regenerateSecondaryKeyOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/regenerateSecondaryKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSecretsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/subscriptions/{sid}/listSecrets", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionKeysContract, + headersMapper: Mappers.WorkspaceSubscriptionListSecretsHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.sid, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts new file mode 100644 index 000000000000..5c1768e6f644 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTag.ts @@ -0,0 +1,509 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTag } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagContract, + WorkspaceTagListByServiceNextOptionalParams, + WorkspaceTagListByServiceOptionalParams, + WorkspaceTagListByServiceResponse, + WorkspaceTagGetEntityStateOptionalParams, + WorkspaceTagGetEntityStateResponse, + WorkspaceTagGetOptionalParams, + WorkspaceTagGetResponse, + TagCreateUpdateParameters, + WorkspaceTagCreateOrUpdateOptionalParams, + WorkspaceTagCreateOrUpdateResponse, + WorkspaceTagUpdateOptionalParams, + WorkspaceTagUpdateResponse, + WorkspaceTagDeleteOptionalParams, + WorkspaceTagListByServiceNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceTag operations. */ +export class WorkspaceTagImpl implements WorkspaceTag { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTag class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + public listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByServicePagingAll( + resourceGroupName, + serviceName, + workspaceId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options, + settings + ); + } + }; + } + + private async *listByServicePagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceTagListByServiceResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByService( + resourceGroupName, + serviceName, + workspaceId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByServiceNext( + resourceGroupName, + serviceName, + workspaceId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByServicePagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByServicePagingPage( + resourceGroupName, + serviceName, + workspaceId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + private _listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, options }, + listByServiceOperationSpec + ); + } + + /** + * Gets the entity state version of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityState( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetEntityStateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + getEntityStateOperationSpec + ); + } + + /** + * Gets the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + getOperationSpec + ); + } + + /** + * Creates a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Updates the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + ifMatch, + parameters, + options + }, + updateOperationSpec + ); + } + + /** + * Deletes specific tag of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + options?: WorkspaceTagDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, ifMatch, options }, + deleteOperationSpec + ); + } + + /** + * ListByServiceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param nextLink The nextLink from the previous successful call to the ListByService method. + * @param options The options parameters. + */ + private _listByServiceNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + nextLink: string, + options?: WorkspaceTagListByServiceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, nextLink, options }, + listByServiceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByServiceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion, + Parameters.scope + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityStateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "HEAD", + responses: { + 200: { + headersMapper: Mappers.WorkspaceTagGetEntityStateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.WorkspaceTagUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch1 + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.ifMatch1], + serializer +}; +const listByServiceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts new file mode 100644 index 000000000000..001da61f54d8 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagApiLink.ts @@ -0,0 +1,424 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTagApiLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagApiLinkContract, + WorkspaceTagApiLinkListByProductNextOptionalParams, + WorkspaceTagApiLinkListByProductOptionalParams, + WorkspaceTagApiLinkListByProductResponse, + WorkspaceTagApiLinkGetOptionalParams, + WorkspaceTagApiLinkGetResponse, + WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + WorkspaceTagApiLinkCreateOrUpdateResponse, + WorkspaceTagApiLinkDeleteOptionalParams, + WorkspaceTagApiLinkListByProductNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceTagApiLink operations. */ +export class WorkspaceTagApiLinkImpl implements WorkspaceTagApiLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagApiLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceTagApiLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec + ); + } + + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + options + }, + getOperationSpec + ); + } + + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + apiLinkId, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagApiLinkListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract, + headersMapper: Mappers.WorkspaceTagApiLinkGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkContract + }, + 201: { + bodyMapper: Mappers.TagApiLinkContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters76, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/apiLinks/{apiLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.apiLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagApiLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts new file mode 100644 index 000000000000..d5a5a8e87ebb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagOperationLink.ts @@ -0,0 +1,425 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTagOperationLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagOperationLinkContract, + WorkspaceTagOperationLinkListByProductNextOptionalParams, + WorkspaceTagOperationLinkListByProductOptionalParams, + WorkspaceTagOperationLinkListByProductResponse, + WorkspaceTagOperationLinkGetOptionalParams, + WorkspaceTagOperationLinkGetResponse, + WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + WorkspaceTagOperationLinkCreateOrUpdateResponse, + WorkspaceTagOperationLinkDeleteOptionalParams, + WorkspaceTagOperationLinkListByProductNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceTagOperationLink operations. */ +export class WorkspaceTagOperationLinkImpl + implements WorkspaceTagOperationLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagOperationLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceTagOperationLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec + ); + } + + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + options + }, + getOperationSpec + ); + } + + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + operationLinkId, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagOperationLinkListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract, + headersMapper: Mappers.WorkspaceTagOperationLinkGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkContract + }, + 201: { + bodyMapper: Mappers.TagOperationLinkContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters77, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/operationLinks/{operationLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.operationLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagOperationLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts new file mode 100644 index 000000000000..c98f8d1b79ea --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/workspaceTagProductLink.ts @@ -0,0 +1,424 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { WorkspaceTagProductLink } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClient } from "../apiManagementClient"; +import { + TagProductLinkContract, + WorkspaceTagProductLinkListByProductNextOptionalParams, + WorkspaceTagProductLinkListByProductOptionalParams, + WorkspaceTagProductLinkListByProductResponse, + WorkspaceTagProductLinkGetOptionalParams, + WorkspaceTagProductLinkGetResponse, + WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + WorkspaceTagProductLinkCreateOrUpdateResponse, + WorkspaceTagProductLinkDeleteOptionalParams, + WorkspaceTagProductLinkListByProductNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceTagProductLink operations. */ +export class WorkspaceTagProductLinkImpl implements WorkspaceTagProductLink { + private readonly client: ApiManagementClient; + + /** + * Initialize a new instance of the class WorkspaceTagProductLink class. + * @param client Reference to the service client + */ + constructor(client: ApiManagementClient) { + this.client = client; + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + public listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByProductPagingAll( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options, + settings + ); + } + }; + } + + private async *listByProductPagingPage( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: WorkspaceTagProductLinkListByProductResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByProduct( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByProductNext( + resourceGroupName, + serviceName, + workspaceId, + tagId, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByProductPagingAll( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByProductPagingPage( + resourceGroupName, + serviceName, + workspaceId, + tagId, + options + )) { + yield* page; + } + } + + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + private _listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, options }, + listByProductOperationSpec + ); + } + + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + options + }, + getOperationSpec + ); + } + + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + workspaceId, + tagId, + productLinkId, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByProductNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param nextLink The nextLink from the previous successful call to the ListByProduct method. + * @param options The options parameters. + */ + private _listByProductNext( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + nextLink: string, + options?: WorkspaceTagProductLinkListByProductNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, serviceName, workspaceId, tagId, nextLink, options }, + listByProductNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByProductOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.filter, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract, + headersMapper: Mappers.WorkspaceTagProductLinkGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkContract + }, + 201: { + bodyMapper: Mappers.TagProductLinkContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters78, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/tags/{tagId}/productLinks/{productLinkId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.tagId, + Parameters.productLinkId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByProductNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.TagProductLinkCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.tagId, + Parameters.workspaceId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts index 1efcf25c77c1..b1f78da9525a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/apiExport.ts @@ -23,7 +23,7 @@ export interface ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service instance. * Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 - * minutes. + * minutes. New formats can be added in the future. * @param exportParam Query parameter required to export the API details. * @param options The options parameters. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts index 00a5b5b809c8..721bca6a2090 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/gateway.ts @@ -25,7 +25,14 @@ import { GatewayRegenerateKeyOptionalParams, GatewayTokenRequestContract, GatewayGenerateTokenOptionalParams, - GatewayGenerateTokenResponse + GatewayGenerateTokenResponse, + GatewayInvalidateDebugCredentialsOptionalParams, + GatewayListDebugCredentialsContract, + GatewayListDebugCredentialsOptionalParams, + GatewayListDebugCredentialsResponse, + GatewayListTraceContract, + GatewayListTraceOptionalParams, + GatewayListTraceResponse } from "../models"; /// @@ -168,4 +175,50 @@ export interface Gateway { parameters: GatewayTokenRequestContract, options?: GatewayGenerateTokenOptionalParams ): Promise; + /** + * Action is invalidating all debug credentials issued for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The options parameters. + */ + invalidateDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + options?: GatewayInvalidateDebugCredentialsOptionalParams + ): Promise; + /** + * Create new debug credentials for gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List debug credentials properties. + * @param options The options parameters. + */ + listDebugCredentials( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListDebugCredentialsContract, + options?: GatewayListDebugCredentialsOptionalParams + ): Promise; + /** + * Fetches trace collected by gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters List trace properties. + * @param options The options parameters. + */ + listTrace( + resourceGroupName: string, + serviceName: string, + gatewayId: string, + parameters: GatewayListTraceContract, + options?: GatewayListTraceOptionalParams + ): Promise; } diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts index 83434e88bcd2..8dd3f606af8b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/index.ts @@ -27,11 +27,11 @@ export * from "./apiWiki"; export * from "./apiWikis"; export * from "./apiExport"; export * from "./apiVersionSet"; -export * from "./authorizationServer"; export * from "./authorizationProvider"; export * from "./authorization"; export * from "./authorizationLoginLinks"; export * from "./authorizationAccessPolicy"; +export * from "./authorizationServer"; export * from "./backend"; export * from "./cache"; export * from "./certificate"; @@ -42,6 +42,7 @@ export * from "./apiManagementOperations"; export * from "./apiManagementServiceSkus"; export * from "./apiManagementService"; export * from "./diagnostic"; +export * from "./documentation"; export * from "./emailTemplate"; export * from "./gateway"; export * from "./gatewayHostnameConfiguration"; @@ -76,6 +77,8 @@ export * from "./productSubscriptions"; export * from "./productPolicy"; export * from "./productWiki"; export * from "./productWikis"; +export * from "./productApiLink"; +export * from "./productGroupLink"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; @@ -85,6 +88,9 @@ export * from "./tenantSettings"; export * from "./apiManagementSkus"; export * from "./subscription"; export * from "./tagResource"; +export * from "./tagApiLink"; +export * from "./tagOperationLink"; +export * from "./tagProductLink"; export * from "./tenantAccess"; export * from "./tenantAccessGit"; export * from "./tenantConfiguration"; @@ -93,4 +99,31 @@ export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; export * from "./userConfirmationPassword"; -export * from "./documentation"; +export * from "./workspace"; +export * from "./workspacePolicy"; +export * from "./workspaceNamedValue"; +export * from "./workspaceGlobalSchema"; +export * from "./workspaceNotification"; +export * from "./workspaceNotificationRecipientUser"; +export * from "./workspaceNotificationRecipientEmail"; +export * from "./workspacePolicyFragment"; +export * from "./workspaceGroup"; +export * from "./workspaceGroupUser"; +export * from "./workspaceSubscription"; +export * from "./workspaceApiVersionSet"; +export * from "./workspaceApi"; +export * from "./workspaceApiRevision"; +export * from "./workspaceApiRelease"; +export * from "./workspaceApiOperation"; +export * from "./workspaceApiOperationPolicy"; +export * from "./workspaceApiPolicy"; +export * from "./workspaceApiSchema"; +export * from "./workspaceProduct"; +export * from "./workspaceProductApiLink"; +export * from "./workspaceProductGroupLink"; +export * from "./workspaceProductPolicy"; +export * from "./workspaceTag"; +export * from "./workspaceTagApiLink"; +export * from "./workspaceTagOperationLink"; +export * from "./workspaceTagProductLink"; +export * from "./workspaceApiExport"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts index 84d9f55f2198..f003204a7420 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policy.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PolicyContract, PolicyListByServiceOptionalParams, - PolicyListByServiceResponse, PolicyIdName, PolicyGetEntityTagOptionalParams, PolicyGetEntityTagResponse, PolicyGetOptionalParams, PolicyGetResponse, - PolicyContract, PolicyCreateOrUpdateOptionalParams, PolicyCreateOrUpdateResponse, PolicyDeleteOptionalParams } from "../models"; +/// /** Interface representing a Policy. */ export interface Policy { /** @@ -32,7 +33,7 @@ export interface Policy { resourceGroupName: string, serviceName: string, options?: PolicyListByServiceOptionalParams - ): Promise; + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the Global policy definition in the Api Management service. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts index 171bfa2f20c0..1d71ccad7dd5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/policyFragment.ts @@ -6,15 +6,15 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { + PolicyFragmentContract, PolicyFragmentListByServiceOptionalParams, - PolicyFragmentListByServiceResponse, PolicyFragmentGetEntityTagOptionalParams, PolicyFragmentGetEntityTagResponse, PolicyFragmentGetOptionalParams, PolicyFragmentGetResponse, - PolicyFragmentContract, PolicyFragmentCreateOrUpdateOptionalParams, PolicyFragmentCreateOrUpdateResponse, PolicyFragmentDeleteOptionalParams, @@ -22,6 +22,7 @@ import { PolicyFragmentListReferencesResponse } from "../models"; +/// /** Interface representing a PolicyFragment. */ export interface PolicyFragment { /** @@ -34,7 +35,7 @@ export interface PolicyFragment { resourceGroupName: string, serviceName: string, options?: PolicyFragmentListByServiceOptionalParams - ): Promise; + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of a policy fragment. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts index d32c7d0eb75b..2ab8e758ca2b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/portalConfig.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PortalConfigContract, PortalConfigListByServiceOptionalParams, - PortalConfigListByServiceResponse, PortalConfigGetEntityTagOptionalParams, PortalConfigGetEntityTagResponse, PortalConfigGetOptionalParams, PortalConfigGetResponse, - PortalConfigContract, PortalConfigUpdateOptionalParams, PortalConfigUpdateResponse, PortalConfigCreateOrUpdateOptionalParams, PortalConfigCreateOrUpdateResponse } from "../models"; +/// /** Interface representing a PortalConfig. */ export interface PortalConfig { /** @@ -32,7 +33,7 @@ export interface PortalConfig { resourceGroupName: string, serviceName: string, options?: PortalConfigListByServiceOptionalParams - ): Promise; + ): PagedAsyncIterableIterator; /** * Gets the entity state (Etag) version of the developer portal configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts new file mode 100644 index 000000000000..621e940bf2c1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productApiLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductApiLinkContract, + ProductApiLinkListByProductOptionalParams, + ProductApiLinkGetOptionalParams, + ProductApiLinkGetResponse, + ProductApiLinkCreateOrUpdateOptionalParams, + ProductApiLinkCreateOrUpdateResponse, + ProductApiLinkDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ProductApiLink. */ +export interface ProductApiLink { + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductApiLinkListByProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkGetOptionalParams + ): Promise; + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: ProductApiLinkCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + apiLinkId: string, + options?: ProductApiLinkDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts new file mode 100644 index 000000000000..3daafe58e8e2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productGroupLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductGroupLinkContract, + ProductGroupLinkListByProductOptionalParams, + ProductGroupLinkGetOptionalParams, + ProductGroupLinkGetResponse, + ProductGroupLinkCreateOrUpdateOptionalParams, + ProductGroupLinkCreateOrUpdateResponse, + ProductGroupLinkDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ProductGroupLink. */ +export interface ProductGroupLink { + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + productId: string, + options?: ProductGroupLinkListByProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkGetOptionalParams + ): Promise; + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: ProductGroupLinkCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + productId: string, + groupLinkId: string, + options?: ProductGroupLinkDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts index 9f08f040cfb3..8dd6df7ea846 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/productPolicy.ts @@ -6,20 +6,21 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { + PolicyContract, ProductPolicyListByProductOptionalParams, - ProductPolicyListByProductResponse, PolicyIdName, ProductPolicyGetEntityTagOptionalParams, ProductPolicyGetEntityTagResponse, ProductPolicyGetOptionalParams, ProductPolicyGetResponse, - PolicyContract, ProductPolicyCreateOrUpdateOptionalParams, ProductPolicyCreateOrUpdateResponse, ProductPolicyDeleteOptionalParams } from "../models"; +/// /** Interface representing a ProductPolicy. */ export interface ProductPolicy { /** @@ -34,7 +35,7 @@ export interface ProductPolicy { serviceName: string, productId: string, options?: ProductPolicyListByProductOptionalParams - ): Promise; + ): PagedAsyncIterableIterator; /** * Get the ETag of the policy configuration at the Product level. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts new file mode 100644 index 000000000000..2529567cae02 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagApiLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagApiLinkContract, + TagApiLinkListByProductOptionalParams, + TagApiLinkGetOptionalParams, + TagApiLinkGetResponse, + TagApiLinkCreateOrUpdateOptionalParams, + TagApiLinkCreateOrUpdateResponse, + TagApiLinkDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a TagApiLink. */ +export interface TagApiLink { + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagApiLinkListByProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkGetOptionalParams + ): Promise; + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: TagApiLinkCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + apiLinkId: string, + options?: TagApiLinkDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts new file mode 100644 index 000000000000..84c46191f201 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagOperationLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagOperationLinkContract, + TagOperationLinkListByProductOptionalParams, + TagOperationLinkGetOptionalParams, + TagOperationLinkGetResponse, + TagOperationLinkCreateOrUpdateOptionalParams, + TagOperationLinkCreateOrUpdateResponse, + TagOperationLinkDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a TagOperationLink. */ +export interface TagOperationLink { + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagOperationLinkListByProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkGetOptionalParams + ): Promise; + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: TagOperationLinkCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + operationLinkId: string, + options?: TagOperationLinkDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts new file mode 100644 index 000000000000..c715c4c30473 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/tagProductLink.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagProductLinkContract, + TagProductLinkListByProductOptionalParams, + TagProductLinkGetOptionalParams, + TagProductLinkGetResponse, + TagProductLinkCreateOrUpdateOptionalParams, + TagProductLinkCreateOrUpdateResponse, + TagProductLinkDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a TagProductLink. */ +export interface TagProductLink { + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + tagId: string, + options?: TagProductLinkListByProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkGetOptionalParams + ): Promise; + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: TagProductLinkCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + tagId: string, + productLinkId: string, + options?: TagProductLinkDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts new file mode 100644 index 000000000000..54ab4b0b7b88 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspace.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + WorkspaceContract, + WorkspaceListByServiceOptionalParams, + WorkspaceGetEntityTagOptionalParams, + WorkspaceGetEntityTagResponse, + WorkspaceGetOptionalParams, + WorkspaceGetResponse, + WorkspaceCreateOrUpdateOptionalParams, + WorkspaceCreateOrUpdateResponse, + WorkspaceUpdateOptionalParams, + WorkspaceUpdateResponse, + WorkspaceDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a Workspace. */ +export interface Workspace { + /** + * Lists all workspaces of the API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + options?: WorkspaceListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGetOptionalParams + ): Promise; + /** + * Creates a new workspace or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + parameters: WorkspaceContract, + options?: WorkspaceCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the workspace specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Workspace Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + parameters: WorkspaceContract, + options?: WorkspaceUpdateOptionalParams + ): Promise; + /** + * Deletes the specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + ifMatch: string, + options?: WorkspaceDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts new file mode 100644 index 000000000000..7fef06151f76 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApi.ts @@ -0,0 +1,165 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ApiContract, + WorkspaceApiListByServiceOptionalParams, + WorkspaceApiGetEntityTagOptionalParams, + WorkspaceApiGetEntityTagResponse, + WorkspaceApiGetOptionalParams, + WorkspaceApiGetResponse, + ApiCreateOrUpdateParameter, + WorkspaceApiCreateOrUpdateOptionalParams, + WorkspaceApiCreateOrUpdateResponse, + ApiUpdateContract, + WorkspaceApiUpdateOptionalParams, + WorkspaceApiUpdateResponse, + WorkspaceApiDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceApi. */ +export interface WorkspaceApi { + /** + * Lists all APIs of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiGetOptionalParams + ): Promise; + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiCreateOrUpdateResponse + > + >; + /** + * Creates new or updates existing specified API of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + parameters: ApiCreateOrUpdateParameter, + options?: WorkspaceApiCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Update Contract parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + parameters: ApiUpdateContract, + options?: WorkspaceApiUpdateOptionalParams + ): Promise; + /** + * Deletes the specified API of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + ifMatch: string, + options?: WorkspaceApiDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts new file mode 100644 index 000000000000..d94b80bae004 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiExport.ts @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + ExportFormat, + ExportApi, + WorkspaceApiExportGetOptionalParams, + WorkspaceApiExportGetResponse +} from "../models"; + +/** Interface representing a WorkspaceApiExport. */ +export interface WorkspaceApiExport { + /** + * Gets the details of the API specified by its identifier in the format specified to the Storage Blob + * with SAS Key valid for 5 minutes. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 + * minutes. + * @param exportParam Query parameter required to export the API details. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + format: ExportFormat, + exportParam: ExportApi, + options?: WorkspaceApiExportGetOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts new file mode 100644 index 000000000000..af57497d617a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperation.ts @@ -0,0 +1,155 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + OperationContract, + WorkspaceApiOperationListByApiOptionalParams, + WorkspaceApiOperationGetEntityTagOptionalParams, + WorkspaceApiOperationGetEntityTagResponse, + WorkspaceApiOperationGetOptionalParams, + WorkspaceApiOperationGetResponse, + WorkspaceApiOperationCreateOrUpdateOptionalParams, + WorkspaceApiOperationCreateOrUpdateResponse, + OperationUpdateContract, + WorkspaceApiOperationUpdateOptionalParams, + WorkspaceApiOperationUpdateResponse, + WorkspaceApiOperationDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceApiOperation. */ +export interface WorkspaceApiOperation { + /** + * Lists a collection of the operations for the specified API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiOperationListByApiOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the API Operation specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationGetOptionalParams + ): Promise; + /** + * Creates a new operation in the API or updates an existing one. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + parameters: OperationContract, + options?: WorkspaceApiOperationCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the operation in the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Operation Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + parameters: OperationUpdateContract, + options?: WorkspaceApiOperationUpdateOptionalParams + ): Promise; + /** + * Deletes the specified operation in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + ifMatch: string, + options?: WorkspaceApiOperationDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts new file mode 100644 index 000000000000..0f00c1c574ce --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiOperationPolicy.ts @@ -0,0 +1,139 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + WorkspaceApiOperationPolicyListByOperationOptionalParams, + PolicyIdName, + WorkspaceApiOperationPolicyGetEntityTagOptionalParams, + WorkspaceApiOperationPolicyGetEntityTagResponse, + WorkspaceApiOperationPolicyGetOptionalParams, + WorkspaceApiOperationPolicyGetResponse, + WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams, + WorkspaceApiOperationPolicyCreateOrUpdateResponse, + WorkspaceApiOperationPolicyDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceApiOperationPolicy. */ +export interface WorkspaceApiOperationPolicy { + /** + * Get the list of policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + listByOperation( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + options?: WorkspaceApiOperationPolicyListByOperationOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API operation policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetEntityTagOptionalParams + ): Promise; + /** + * Get the policy configuration at the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + options?: WorkspaceApiOperationPolicyGetOptionalParams + ): Promise; + /** + * Creates or updates policy configuration for the API Operation level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiOperationPolicyCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the policy configuration at the Api Operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param operationId Operation identifier within an API. Must be unique in the current API Management + * service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + operationId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiOperationPolicyDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts new file mode 100644 index 000000000000..7a4954ba15a4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiPolicy.ts @@ -0,0 +1,124 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + WorkspaceApiPolicyListByApiOptionalParams, + PolicyIdName, + WorkspaceApiPolicyGetEntityTagOptionalParams, + WorkspaceApiPolicyGetEntityTagResponse, + WorkspaceApiPolicyGetOptionalParams, + WorkspaceApiPolicyGetResponse, + WorkspaceApiPolicyCreateOrUpdateOptionalParams, + WorkspaceApiPolicyCreateOrUpdateResponse, + WorkspaceApiPolicyDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceApiPolicy. */ +export interface WorkspaceApiPolicy { + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiPolicyListByApiOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the API policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetEntityTagOptionalParams + ): Promise; + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + options?: WorkspaceApiPolicyGetOptionalParams + ): Promise; + /** + * Creates or updates policy configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceApiPolicyCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the policy configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceApiPolicyDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts new file mode 100644 index 000000000000..f9519c8aaf63 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRelease.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApiReleaseContract, + WorkspaceApiReleaseListByServiceOptionalParams, + WorkspaceApiReleaseGetEntityTagOptionalParams, + WorkspaceApiReleaseGetEntityTagResponse, + WorkspaceApiReleaseGetOptionalParams, + WorkspaceApiReleaseGetResponse, + WorkspaceApiReleaseCreateOrUpdateOptionalParams, + WorkspaceApiReleaseCreateOrUpdateResponse, + WorkspaceApiReleaseUpdateOptionalParams, + WorkspaceApiReleaseUpdateResponse, + WorkspaceApiReleaseDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceApiRelease. */ +export interface WorkspaceApiRelease { + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiReleaseListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns the etag of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetEntityTagOptionalParams + ): Promise; + /** + * Returns the details of an API release. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + options?: WorkspaceApiReleaseGetOptionalParams + ): Promise; + /** + * Creates a new Release for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the release of the API specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters API Release Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + parameters: ApiReleaseContract, + options?: WorkspaceApiReleaseUpdateOptionalParams + ): Promise; + /** + * Deletes the specified release in the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + releaseId: string, + ifMatch: string, + options?: WorkspaceApiReleaseDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts new file mode 100644 index 000000000000..940a303f9bb2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiRevision.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApiRevisionContract, + WorkspaceApiRevisionListByServiceOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceApiRevision. */ +export interface WorkspaceApiRevision { + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiRevisionListByServiceOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts new file mode 100644 index 000000000000..36fc60304641 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiSchema.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + SchemaContract, + WorkspaceApiSchemaListByApiOptionalParams, + WorkspaceApiSchemaGetEntityTagOptionalParams, + WorkspaceApiSchemaGetEntityTagResponse, + WorkspaceApiSchemaGetOptionalParams, + WorkspaceApiSchemaGetResponse, + WorkspaceApiSchemaCreateOrUpdateOptionalParams, + WorkspaceApiSchemaCreateOrUpdateResponse, + WorkspaceApiSchemaDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceApiSchema. */ +export interface WorkspaceApiSchema { + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + options?: WorkspaceApiSchemaListByApiOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetEntityTagOptionalParams + ): Promise; + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + options?: WorkspaceApiSchemaGetOptionalParams + ): Promise; + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceApiSchemaCreateOrUpdateResponse + > + >; + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters The schema contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + parameters: SchemaContract, + options?: WorkspaceApiSchemaCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the schema configuration at the Api. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param apiId API revision identifier. Must be unique in the current API Management service instance. + * Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + apiId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceApiSchemaDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts new file mode 100644 index 000000000000..4ae68b6257ba --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceApiVersionSet.ts @@ -0,0 +1,137 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ApiVersionSetContract, + WorkspaceApiVersionSetListByServiceOptionalParams, + WorkspaceApiVersionSetGetEntityTagOptionalParams, + WorkspaceApiVersionSetGetEntityTagResponse, + WorkspaceApiVersionSetGetOptionalParams, + WorkspaceApiVersionSetGetResponse, + WorkspaceApiVersionSetCreateOrUpdateOptionalParams, + WorkspaceApiVersionSetCreateOrUpdateResponse, + ApiVersionSetUpdateParameters, + WorkspaceApiVersionSetUpdateOptionalParams, + WorkspaceApiVersionSetUpdateResponse, + WorkspaceApiVersionSetDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceApiVersionSet. */ +export interface WorkspaceApiVersionSet { + /** + * Lists a collection of API Version Sets in the specified workspace with a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceApiVersionSetListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + options?: WorkspaceApiVersionSetGetOptionalParams + ): Promise; + /** + * Creates or Updates a Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + parameters: ApiVersionSetContract, + options?: WorkspaceApiVersionSetCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the Api VersionSet specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + parameters: ApiVersionSetUpdateParameters, + options?: WorkspaceApiVersionSetUpdateOptionalParams + ): Promise; + /** + * Deletes specific Api Version Set. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management service + * instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + versionSetId: string, + ifMatch: string, + options?: WorkspaceApiVersionSetDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts new file mode 100644 index 000000000000..317b1d605452 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGlobalSchema.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + GlobalSchemaContract, + WorkspaceGlobalSchemaListByServiceOptionalParams, + WorkspaceGlobalSchemaGetEntityTagOptionalParams, + WorkspaceGlobalSchemaGetEntityTagResponse, + WorkspaceGlobalSchemaGetOptionalParams, + WorkspaceGlobalSchemaGetResponse, + WorkspaceGlobalSchemaCreateOrUpdateOptionalParams, + WorkspaceGlobalSchemaCreateOrUpdateResponse, + WorkspaceGlobalSchemaDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceGlobalSchema. */ +export interface WorkspaceGlobalSchema { + /** + * Lists a collection of schemas registered with workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGlobalSchemaListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the Schema specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + options?: WorkspaceGlobalSchemaGetOptionalParams + ): Promise; + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceGlobalSchemaCreateOrUpdateResponse + > + >; + /** + * Creates new or updates existing specified Schema of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + parameters: GlobalSchemaContract, + options?: WorkspaceGlobalSchemaCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes specific Schema. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param schemaId Schema id identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + schemaId: string, + ifMatch: string, + options?: WorkspaceGlobalSchemaDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts new file mode 100644 index 000000000000..6ae9d1be0a0d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroup.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + GroupContract, + WorkspaceGroupListByServiceOptionalParams, + WorkspaceGroupGetEntityTagOptionalParams, + WorkspaceGroupGetEntityTagResponse, + WorkspaceGroupGetOptionalParams, + WorkspaceGroupGetResponse, + GroupCreateParameters, + WorkspaceGroupCreateOrUpdateOptionalParams, + WorkspaceGroupCreateOrUpdateResponse, + GroupUpdateParameters, + WorkspaceGroupUpdateOptionalParams, + WorkspaceGroupUpdateResponse, + WorkspaceGroupDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceGroup. */ +export interface WorkspaceGroup { + /** + * Lists a collection of groups defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceGroupListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupGetOptionalParams + ): Promise; + /** + * Creates or Updates a group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + parameters: GroupCreateParameters, + options?: WorkspaceGroupCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the group specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + parameters: GroupUpdateParameters, + options?: WorkspaceGroupUpdateOptionalParams + ): Promise; + /** + * Deletes specific group of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + ifMatch: string, + options?: WorkspaceGroupDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts new file mode 100644 index 000000000000..157f0fc5e1a6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceGroupUser.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + UserContract, + WorkspaceGroupUserListOptionalParams, + WorkspaceGroupUserCheckEntityExistsOptionalParams, + WorkspaceGroupUserCheckEntityExistsResponse, + WorkspaceGroupUserCreateOptionalParams, + WorkspaceGroupUserCreateResponse, + WorkspaceGroupUserDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceGroupUser. */ +export interface WorkspaceGroupUser { + /** + * Lists a collection of user entities associated with the group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + options?: WorkspaceGroupUserListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Checks that user entity specified by identifier is associated with the group entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCheckEntityExistsOptionalParams + ): Promise; + /** + * Add existing user to existing group + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + create( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserCreateOptionalParams + ): Promise; + /** + * Remove existing user from existing group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + groupId: string, + userId: string, + options?: WorkspaceGroupUserDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts new file mode 100644 index 000000000000..36d234f1bfa5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNamedValue.ts @@ -0,0 +1,240 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NamedValueContract, + WorkspaceNamedValueListByServiceOptionalParams, + WorkspaceNamedValueGetEntityTagOptionalParams, + WorkspaceNamedValueGetEntityTagResponse, + WorkspaceNamedValueGetOptionalParams, + WorkspaceNamedValueGetResponse, + NamedValueCreateContract, + WorkspaceNamedValueCreateOrUpdateOptionalParams, + WorkspaceNamedValueCreateOrUpdateResponse, + NamedValueUpdateParameters, + WorkspaceNamedValueUpdateOptionalParams, + WorkspaceNamedValueUpdateResponse, + WorkspaceNamedValueDeleteOptionalParams, + WorkspaceNamedValueListValueOptionalParams, + WorkspaceNamedValueListValueResponse, + WorkspaceNamedValueRefreshSecretOptionalParams, + WorkspaceNamedValueRefreshSecretResponse +} from "../models"; + +/// +/** Interface representing a WorkspaceNamedValue. */ +export interface WorkspaceNamedValue { + /** + * Lists a collection of named values defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNamedValueListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueGetOptionalParams + ): Promise; + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueCreateOrUpdateResponse + > + >; + /** + * Creates or updates named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + parameters: NamedValueCreateContract, + options?: WorkspaceNamedValueCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueUpdateResponse + > + >; + /** + * Updates the specific named value. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + parameters: NamedValueUpdateParameters, + options?: WorkspaceNamedValueUpdateOptionalParams + ): Promise; + /** + * Deletes specific named value from the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + ifMatch: string, + options?: WorkspaceNamedValueDeleteOptionalParams + ): Promise; + /** + * Gets the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + listValue( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueListValueOptionalParams + ): Promise; + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + beginRefreshSecret( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspaceNamedValueRefreshSecretResponse + > + >; + /** + * Refresh the secret of the named value specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param namedValueId Identifier of the NamedValue. + * @param options The options parameters. + */ + beginRefreshSecretAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + namedValueId: string, + options?: WorkspaceNamedValueRefreshSecretOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts new file mode 100644 index 000000000000..4ac9483b5120 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotification.ts @@ -0,0 +1,69 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + NotificationContract, + WorkspaceNotificationListByServiceOptionalParams, + NotificationName, + WorkspaceNotificationGetOptionalParams, + WorkspaceNotificationGetResponse, + WorkspaceNotificationCreateOrUpdateOptionalParams, + WorkspaceNotificationCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a WorkspaceNotification. */ +export interface WorkspaceNotification { + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceNotificationListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the details of the Notification specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationGetOptionalParams + ): Promise; + /** + * Create or Update API Management publisher notification for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts new file mode 100644 index 000000000000..9c61059cc061 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientEmail.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + NotificationName, + WorkspaceNotificationRecipientEmailListByNotificationOptionalParams, + WorkspaceNotificationRecipientEmailListByNotificationResponse, + WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientEmailCheckEntityExistsResponse, + WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientEmailCreateOrUpdateResponse, + WorkspaceNotificationRecipientEmailDeleteOptionalParams +} from "../models"; + +/** Interface representing a WorkspaceNotificationRecipientEmail. */ +export interface WorkspaceNotificationRecipientEmail { + /** + * Gets the list of the Notification Recipient Emails subscribed to a notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientEmailListByNotificationOptionalParams + ): Promise; + /** + * Determine if Notification Recipient Email subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCheckEntityExistsOptionalParams + ): Promise; + /** + * Adds the Email address to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailCreateOrUpdateOptionalParams + ): Promise; + /** + * Removes the email from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param email Email identifier. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + email: string, + options?: WorkspaceNotificationRecipientEmailDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts new file mode 100644 index 000000000000..032695411cc1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceNotificationRecipientUser.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + NotificationName, + WorkspaceNotificationRecipientUserListByNotificationOptionalParams, + WorkspaceNotificationRecipientUserListByNotificationResponse, + WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams, + WorkspaceNotificationRecipientUserCheckEntityExistsResponse, + WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams, + WorkspaceNotificationRecipientUserCreateOrUpdateResponse, + WorkspaceNotificationRecipientUserDeleteOptionalParams +} from "../models"; + +/** Interface representing a WorkspaceNotificationRecipientUser. */ +export interface WorkspaceNotificationRecipientUser { + /** + * Gets the list of the Notification Recipient User subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param options The options parameters. + */ + listByNotification( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + options?: WorkspaceNotificationRecipientUserListByNotificationOptionalParams + ): Promise; + /** + * Determine if the Notification Recipient User is subscribed to the notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + checkEntityExists( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCheckEntityExistsOptionalParams + ): Promise; + /** + * Adds the API Management User to the list of Recipients for the Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserCreateOrUpdateOptionalParams + ): Promise; + /** + * Removes the API Management user from the list of Notification. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param notificationName Notification Name Identifier. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + notificationName: NotificationName, + userId: string, + options?: WorkspaceNotificationRecipientUserDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts new file mode 100644 index 000000000000..3a5876e4ec30 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicy.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PolicyContract, + WorkspacePolicyListByApiOptionalParams, + PolicyIdName, + WorkspacePolicyGetEntityTagOptionalParams, + WorkspacePolicyGetEntityTagResponse, + WorkspacePolicyGetOptionalParams, + WorkspacePolicyGetResponse, + WorkspacePolicyCreateOrUpdateOptionalParams, + WorkspacePolicyCreateOrUpdateResponse, + WorkspacePolicyDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspacePolicy. */ +export interface WorkspacePolicy { + /** + * Get the policy configuration at the workspace level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByApi( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyListByApiOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the workspace policy specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetEntityTagOptionalParams + ): Promise; + /** + * Get the policy configuration at the API level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + options?: WorkspacePolicyGetOptionalParams + ): Promise; + /** + * Creates or updates policy configuration for the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspacePolicyCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the policy configuration at the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspacePolicyDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts new file mode 100644 index 000000000000..205c96bb7c3d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspacePolicyFragment.ts @@ -0,0 +1,150 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + PolicyFragmentContract, + WorkspacePolicyFragmentListByServiceOptionalParams, + WorkspacePolicyFragmentGetEntityTagOptionalParams, + WorkspacePolicyFragmentGetEntityTagResponse, + WorkspacePolicyFragmentGetOptionalParams, + WorkspacePolicyFragmentGetResponse, + WorkspacePolicyFragmentCreateOrUpdateOptionalParams, + WorkspacePolicyFragmentCreateOrUpdateResponse, + WorkspacePolicyFragmentDeleteOptionalParams, + WorkspacePolicyFragmentListReferencesOptionalParams, + WorkspacePolicyFragmentListReferencesResponse +} from "../models"; + +/// +/** Interface representing a WorkspacePolicyFragment. */ +export interface WorkspacePolicyFragment { + /** + * Gets all policy fragments defined within a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspacePolicyFragmentListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetEntityTagOptionalParams + ): Promise; + /** + * Gets a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentGetOptionalParams + ): Promise; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspacePolicyFragmentCreateOrUpdateResponse + > + >; + /** + * Creates or updates a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param parameters The policy fragment contents to apply. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + parameters: PolicyFragmentContract, + options?: WorkspacePolicyFragmentCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + ifMatch: string, + options?: WorkspacePolicyFragmentDeleteOptionalParams + ): Promise; + /** + * Lists policy resources that reference the policy fragment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param id A resource identifier. + * @param options The options parameters. + */ + listReferences( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + id: string, + options?: WorkspacePolicyFragmentListReferencesOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts new file mode 100644 index 000000000000..4fe4c50fa31b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProduct.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductContract, + WorkspaceProductListByServiceOptionalParams, + WorkspaceProductGetEntityTagOptionalParams, + WorkspaceProductGetEntityTagResponse, + WorkspaceProductGetOptionalParams, + WorkspaceProductGetResponse, + WorkspaceProductCreateOrUpdateOptionalParams, + WorkspaceProductCreateOrUpdateResponse, + ProductUpdateParameters, + WorkspaceProductUpdateOptionalParams, + WorkspaceProductUpdateResponse, + WorkspaceProductDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceProduct. */ +export interface WorkspaceProduct { + /** + * Lists a collection of products in the specified workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceProductListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetEntityTagOptionalParams + ): Promise; + /** + * Gets the details of the product specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGetOptionalParams + ): Promise; + /** + * Creates or Updates a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + parameters: ProductContract, + options?: WorkspaceProductCreateOrUpdateOptionalParams + ): Promise; + /** + * Update existing product details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + parameters: ProductUpdateParameters, + options?: WorkspaceProductUpdateOptionalParams + ): Promise; + /** + * Delete product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + ifMatch: string, + options?: WorkspaceProductDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts new file mode 100644 index 000000000000..edaa74fafd4c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductApiLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductApiLinkContract, + WorkspaceProductApiLinkListByProductOptionalParams, + WorkspaceProductApiLinkGetOptionalParams, + WorkspaceProductApiLinkGetResponse, + WorkspaceProductApiLinkCreateOrUpdateOptionalParams, + WorkspaceProductApiLinkCreateOrUpdateResponse, + WorkspaceProductApiLinkDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceProductApiLink. */ +export interface WorkspaceProductApiLink { + /** + * Lists a collection of the API links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductApiLinkListByProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkGetOptionalParams + ): Promise; + /** + * Adds an API to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + parameters: ProductApiLinkContract, + options?: WorkspaceProductApiLinkCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified API from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Product-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + apiLinkId: string, + options?: WorkspaceProductApiLinkDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts new file mode 100644 index 000000000000..a417c77793dd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductGroupLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ProductGroupLinkContract, + WorkspaceProductGroupLinkListByProductOptionalParams, + WorkspaceProductGroupLinkGetOptionalParams, + WorkspaceProductGroupLinkGetResponse, + WorkspaceProductGroupLinkCreateOrUpdateOptionalParams, + WorkspaceProductGroupLinkCreateOrUpdateResponse, + WorkspaceProductGroupLinkDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceProductGroupLink. */ +export interface WorkspaceProductGroupLink { + /** + * Lists a collection of the group links associated with a product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductGroupLinkListByProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the group link for the product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkGetOptionalParams + ): Promise; + /** + * Adds a group to the specified product via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + parameters: ProductGroupLinkContract, + options?: WorkspaceProductGroupLinkCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified group from the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param groupLinkId Product-Group link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + groupLinkId: string, + options?: WorkspaceProductGroupLinkDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts new file mode 100644 index 000000000000..5678e472e5ca --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceProductPolicy.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + WorkspaceProductPolicyListByProductOptionalParams, + WorkspaceProductPolicyListByProductResponse, + PolicyIdName, + WorkspaceProductPolicyGetEntityTagOptionalParams, + WorkspaceProductPolicyGetEntityTagResponse, + WorkspaceProductPolicyGetOptionalParams, + WorkspaceProductPolicyGetResponse, + PolicyContract, + WorkspaceProductPolicyCreateOrUpdateOptionalParams, + WorkspaceProductPolicyCreateOrUpdateResponse, + WorkspaceProductPolicyDeleteOptionalParams +} from "../models"; + +/** Interface representing a WorkspaceProductPolicy. */ +export interface WorkspaceProductPolicy { + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + options?: WorkspaceProductPolicyListByProductOptionalParams + ): Promise; + /** + * Get the ETag of the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetEntityTagOptionalParams + ): Promise; + /** + * Get the policy configuration at the Product level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + options?: WorkspaceProductPolicyGetOptionalParams + ): Promise; + /** + * Creates or updates policy configuration for the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param parameters The policy contents to apply. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + parameters: PolicyContract, + options?: WorkspaceProductPolicyCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the policy configuration at the Product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param productId Product identifier. Must be unique in the current API Management service instance. + * @param policyId The identifier of the Policy. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + productId: string, + policyId: PolicyIdName, + ifMatch: string, + options?: WorkspaceProductPolicyDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts new file mode 100644 index 000000000000..1a317b961068 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceSubscription.ts @@ -0,0 +1,195 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SubscriptionContract, + WorkspaceSubscriptionListOptionalParams, + WorkspaceSubscriptionGetEntityTagOptionalParams, + WorkspaceSubscriptionGetEntityTagResponse, + WorkspaceSubscriptionGetOptionalParams, + WorkspaceSubscriptionGetResponse, + SubscriptionCreateParameters, + WorkspaceSubscriptionCreateOrUpdateOptionalParams, + WorkspaceSubscriptionCreateOrUpdateResponse, + SubscriptionUpdateParameters, + WorkspaceSubscriptionUpdateOptionalParams, + WorkspaceSubscriptionUpdateResponse, + WorkspaceSubscriptionDeleteOptionalParams, + WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams, + WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams, + WorkspaceSubscriptionListSecretsOptionalParams, + WorkspaceSubscriptionListSecretsResponse +} from "../models"; + +/// +/** Interface representing a WorkspaceSubscription. */ +export interface WorkspaceSubscription { + /** + * Lists all subscriptions of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceSubscriptionListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + getEntityTag( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetEntityTagOptionalParams + ): Promise; + /** + * Gets the specified Subscription entity. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionGetOptionalParams + ): Promise; + /** + * Creates or updates the subscription of specified user to the specified product. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + parameters: SubscriptionCreateParameters, + options?: WorkspaceSubscriptionCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of a subscription specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + parameters: SubscriptionUpdateParameters, + options?: WorkspaceSubscriptionUpdateOptionalParams + ): Promise; + /** + * Deletes the specified subscription. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + ifMatch: string, + options?: WorkspaceSubscriptionDeleteOptionalParams + ): Promise; + /** + * Regenerates primary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regeneratePrimaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegeneratePrimaryKeyOptionalParams + ): Promise; + /** + * Regenerates secondary key of existing subscription of the workspace in an API Management service + * instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + regenerateSecondaryKey( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionRegenerateSecondaryKeyOptionalParams + ): Promise; + /** + * Gets the specified Subscription keys. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param sid Subscription entity Identifier. The entity represents the association between a user and + * a product in API Management. + * @param options The options parameters. + */ + listSecrets( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + sid: string, + options?: WorkspaceSubscriptionListSecretsOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts new file mode 100644 index 000000000000..3f33fedf8e44 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTag.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagContract, + WorkspaceTagListByServiceOptionalParams, + WorkspaceTagGetEntityStateOptionalParams, + WorkspaceTagGetEntityStateResponse, + WorkspaceTagGetOptionalParams, + WorkspaceTagGetResponse, + TagCreateUpdateParameters, + WorkspaceTagCreateOrUpdateOptionalParams, + WorkspaceTagCreateOrUpdateResponse, + WorkspaceTagUpdateOptionalParams, + WorkspaceTagUpdateResponse, + WorkspaceTagDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceTag. */ +export interface WorkspaceTag { + /** + * Lists a collection of tags defined within a workspace in a service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + listByService( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + options?: WorkspaceTagListByServiceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the entity state version of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + getEntityState( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetEntityStateOptionalParams + ): Promise; + /** + * Gets the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagGetOptionalParams + ): Promise; + /** + * Creates a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates the details of the tag specified by its identifier. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param parameters Update parameters. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + parameters: TagCreateUpdateParameters, + options?: WorkspaceTagUpdateOptionalParams + ): Promise; + /** + * Deletes specific tag of the workspace in an API Management service instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + ifMatch: string, + options?: WorkspaceTagDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts new file mode 100644 index 000000000000..3d2eac6c1065 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagApiLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagApiLinkContract, + WorkspaceTagApiLinkListByProductOptionalParams, + WorkspaceTagApiLinkGetOptionalParams, + WorkspaceTagApiLinkGetResponse, + WorkspaceTagApiLinkCreateOrUpdateOptionalParams, + WorkspaceTagApiLinkCreateOrUpdateResponse, + WorkspaceTagApiLinkDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceTagApiLink. */ +export interface WorkspaceTagApiLink { + /** + * Lists a collection of the API links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagApiLinkListByProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the API link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkGetOptionalParams + ): Promise; + /** + * Adds an API to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + parameters: TagApiLinkContract, + options?: WorkspaceTagApiLinkCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified API from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param apiLinkId Tag-API link identifier. Must be unique in the current API Management service + * instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + apiLinkId: string, + options?: WorkspaceTagApiLinkDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts new file mode 100644 index 000000000000..06bd8954941d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagOperationLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagOperationLinkContract, + WorkspaceTagOperationLinkListByProductOptionalParams, + WorkspaceTagOperationLinkGetOptionalParams, + WorkspaceTagOperationLinkGetResponse, + WorkspaceTagOperationLinkCreateOrUpdateOptionalParams, + WorkspaceTagOperationLinkCreateOrUpdateResponse, + WorkspaceTagOperationLinkDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceTagOperationLink. */ +export interface WorkspaceTagOperationLink { + /** + * Lists a collection of the operation links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagOperationLinkListByProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the operation link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkGetOptionalParams + ): Promise; + /** + * Adds an operation to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + parameters: TagOperationLinkContract, + options?: WorkspaceTagOperationLinkCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified operation from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param operationLinkId Tag-operation link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + operationLinkId: string, + options?: WorkspaceTagOperationLinkDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts new file mode 100644 index 000000000000..6e26dd0aaad0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operationsInterfaces/workspaceTagProductLink.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TagProductLinkContract, + WorkspaceTagProductLinkListByProductOptionalParams, + WorkspaceTagProductLinkGetOptionalParams, + WorkspaceTagProductLinkGetResponse, + WorkspaceTagProductLinkCreateOrUpdateOptionalParams, + WorkspaceTagProductLinkCreateOrUpdateResponse, + WorkspaceTagProductLinkDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceTagProductLink. */ +export interface WorkspaceTagProductLink { + /** + * Lists a collection of the product links associated with a tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param options The options parameters. + */ + listByProduct( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + options?: WorkspaceTagProductLinkListByProductOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the product link for the tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkGetOptionalParams + ): Promise; + /** + * Adds a product to the specified tag via link. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param parameters Create or update parameters. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + parameters: TagProductLinkContract, + options?: WorkspaceTagProductLinkCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified product from the specified tag. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param serviceName The name of the API Management service. + * @param workspaceId Workspace identifier. Must be unique in the current API Management service + * instance. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param productLinkId Tag-product link identifier. Must be unique in the current API Management + * service instance. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + serviceName: string, + workspaceId: string, + tagId: string, + productLinkId: string, + options?: WorkspaceTagProductLinkDeleteOptionalParams + ): Promise; +} diff --git a/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/apimanagement/arm-apimanagement/tsconfig.json b/sdk/apimanagement/arm-apimanagement/tsconfig.json index f92121c033f6..3e6ae96443f3 100644 --- a/sdk/apimanagement/arm-apimanagement/tsconfig.json +++ b/sdk/apimanagement/arm-apimanagement/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-apimanagement": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"